将现有的 android 支持转换为 androidX [英] Converting existing android support to androidX

查看:41
本文介绍了将现有的 android 支持转换为 androidX的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在处理一个现有的项目.我想将我的 android 项目(oreo)从支持库转换为 androidX 库.我尝试了很多技巧和窍门,但一点进展都没有.

最简单的方法是什么?

解决方案

  • 更新你的安卓工作室

  • 在 build.grade(project:X) 中设置 com.android.tools.build:gradle:3.2.0最低 3.2 的依赖

  • 转到重构 -> 迁移到 androidX

I am working on an existing project. I want to convert my android project(oreo) from the support library to androidX library. I have tried many tricks and tips but no progress at all.

What is the easiest approach to do that?

解决方案

  • Update your android studio

    https://developer.android.com/studio

  • Set compileSdkVersion to 28

  • Set com.android.tools.build:gradle:3.2.0 in build.grade(project:X) in dependencies to min 3.2

  • Go to Refactor-> Migrate to androidX

这篇关于将现有的 android 支持转换为 androidX的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆