安卓常见修改版本号
程序员文章站
2022-03-03 16:06:30
...
参考 cainiao
1 先修改:gradle-wrapper 和 gradle-wrapper.jar
2 再修改 compileSdkVersion 和 buildscript { 两个配置文件
3 修改dependy
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
implementation 'androidx.appcompat:appcompat:1.1.0' //必须 1.0.0 以上
implementation 'androidx.cardview:cardview:1.0.0'
implementation'androidx.recyclerview:recyclerview:1.1.0'
~~~
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'com.youth.banner:banner:2.0.11'
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
implementation'androidx.recyclerview:recyclerview:1.1.0'
implementation 'com.squareup.retrofit2:retrofit:2.6.1'
implementation 'com.squareup.retrofit2:converter-gson:2.6.1'
implementation 'org.projectlombok:lombok:1.16.18' //添加lombok依赖@Data
implementation 'org.glassfish:javax.annotation:10.0-b28' //java注解
implementation 'com.facebook.fresco:fresco:0.12.0'
implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1'
implementation 'com.scwang.smart:refresh-header-classics:2.0.1' //经典刷新头
implementation 'com.scwang.smart:refresh-header-material:2.0.1' //谷歌官方(swipe)
implementation 'com.scwang.smart:refresh-footer-ball:2.0.1' //球脉冲加载
implementation 'com.scwang.smart:refresh-footer-classics:2.0.1' //经典加载
implementation 'com.github.d-max:spots-dialog:0.7@aar'//正在加载load...
implementation 'de.hdodenhof:circleimageview:3.1.0'
~~~
customshop
报错:
This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled.
https://blog.csdn.net/weixin_44135826/article/details/105981267
https://blog.csdn.net/qq_32138419/article/details/85159584
研究下 sdk== ~
菜鸟新闻-乱码: as乱码解决方式
https://blog.csdn.net/weixin_37826412/article/details/105555837
查看依赖版本
报错: implementation 'com.android.support:recyclerview-v7:28.0.0'
https://blog.csdn.net/qq_38875767/article/details/89963175
这里改成:
implementation'androidx.recyclerview:recyclerview:1.1.0'
文件必须有 build.gradle (两个 project和 module的)
CainiaoShop-master 配置文件可以
本例学习 1 访问后台post接口
bug+不用数据库~~,写死
1 先修改:gradle-wrapper 和 gradle-wrapper.jar
2 再修改 compileSdkVersion 和 buildscript { 两个配置文件
3 修改dependy
import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
implementation 'androidx.appcompat:appcompat:1.1.0' //必须 1.0.0 以上
implementation 'androidx.cardview:cardview:1.0.0'
implementation'androidx.recyclerview:recyclerview:1.1.0'
~~~
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'com.google.android.material:material:1.1.0'
implementation 'com.youth.banner:banner:2.0.11'
implementation 'com.github.bumptech.glide:glide:4.11.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0'
implementation'androidx.recyclerview:recyclerview:1.1.0'
implementation 'com.squareup.retrofit2:retrofit:2.6.1'
implementation 'com.squareup.retrofit2:converter-gson:2.6.1'
implementation 'org.projectlombok:lombok:1.16.18' //添加lombok依赖@Data
implementation 'org.glassfish:javax.annotation:10.0-b28' //java注解
implementation 'com.facebook.fresco:fresco:0.12.0'
implementation 'com.scwang.smart:refresh-layout-kernel:2.0.1'
implementation 'com.scwang.smart:refresh-header-classics:2.0.1' //经典刷新头
implementation 'com.scwang.smart:refresh-header-material:2.0.1' //谷歌官方(swipe)
implementation 'com.scwang.smart:refresh-footer-ball:2.0.1' //球脉冲加载
implementation 'com.scwang.smart:refresh-footer-classics:2.0.1' //经典加载
implementation 'com.github.d-max:spots-dialog:0.7@aar'//正在加载load...
implementation 'de.hdodenhof:circleimageview:3.1.0'
~~~
customshop
报错:
This project uses AndroidX dependencies, but the 'android.useAndroidX' property is not enabled.
https://blog.csdn.net/weixin_44135826/article/details/105981267
https://blog.csdn.net/qq_32138419/article/details/85159584
研究下 sdk== ~
菜鸟新闻-乱码: as乱码解决方式
https://blog.csdn.net/weixin_37826412/article/details/105555837
查看依赖版本
报错: implementation 'com.android.support:recyclerview-v7:28.0.0'
https://blog.csdn.net/qq_38875767/article/details/89963175
这里改成:
implementation'androidx.recyclerview:recyclerview:1.1.0'
文件必须有 build.gradle (两个 project和 module的)
CainiaoShop-master 配置文件可以
本例学习 1 访问后台post接口
bug+不用数据库~~,写死
上一篇: Oracle SQL Developer 3.2.2 发布
下一篇: 我为什么放弃移动开发?
推荐阅读