當(dāng)前位置:
首頁(yè) >
AndroidStudio中提示:This project uses AndroidX dependencies, but the ‘android.useAndroidX‘ property is
發(fā)布時(shí)間:2025/3/19
30
豆豆
生活随笔
收集整理的這篇文章主要介紹了
AndroidStudio中提示:This project uses AndroidX dependencies, but the ‘android.useAndroidX‘ property is
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
場(chǎng)景
Android Studio中在新建項(xiàng)目時(shí)勾選了
Use legacy android.support licrary
?
然后在運(yùn)行項(xiàng)目時(shí)提示:
This project uses AndroidX dependencies, but the ‘a(chǎn)ndroid.useAndroidX‘ property is not enabled
?
博客:
https://blog.csdn.net/badao_liumang_qizhi
關(guān)注公眾號(hào)
霸道的程序猿
獲取編程相關(guān)電子書、教程推送與免費(fèi)下載。
實(shí)現(xiàn)
打開項(xiàng)目下gradle.properties
添加如下兩行代碼
android.useAndroidX=true android.enableJetifier= true添加位置如下
?
總結(jié)
以上是生活随笔為你收集整理的AndroidStudio中提示:This project uses AndroidX dependencies, but the ‘android.useAndroidX‘ property is的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: AndroidStudio中Attatc
- 下一篇: Android中怎样使用Navicat可