关于android studio 升级4.4之后的坑Unable to load class 'org.gradle.api.internal.component.Usage'
16lz
2021-01-26
今天无聊把android stuido 升级了下然后把项目导进去clean后出现问题
顺着提示往下走,会遇到如下情况:
主要原因是因为把根目录下的gradle/wrapper/gradle-wrapper.properties文件下的distributionUrl自动更新为
distributionUrl=https://services.gradle.org/distributions/gradle-4.4-all.zip ,而build.gradle文件下的插件classpath ‘com.novoda:bintray-release:0.3.4’版本过低与现在的gradle不兼容导致的
解决方法
网上说把classpath ‘com.novoda:bintray-release:0.3.4’改为classpath ‘com.novoda:bintray-release:0.5.0’
但是本人试了还是不行 估计是因为我的版本的问题
最终我把classpath ‘com.novoda:bintray-release:0.3.4’改为 了classpath ‘com.novoda:bintray-release:0.8.0’
进行编译,发现编译通过,Build APK 也成功了
更多相关文章
- 【ndk】直接使用ndk提供的arm-linux-androideabi-gcc编译android
- FFmepg编译及CMake 集成到 Android
- Android(安卓)Studio22-NDK-LLDB调试
- Android(安卓)Donut Makefile分析
- android反编译工具Apktool安装与使用
- Android(安卓)Studio导入Fresco项目编译报错unable to expand TA
- 用 Eclipse + GDB调试Android中C/C++程序
- Compile a native C Android(安卓)application
- 编译安卓源码以及下载Android内核