Unable to load class 'org.gradle.api.internal.component.Usage
16lz
2021-01-26
Unable to load class 'org.gradle.api.internal.component.Usage
AndroidStudio 编译时出现的问题:
Build Log :
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project
您的项目可能正在使用第三方插件,该插件与项目中的其他插件或项目请求的Gradle版本不兼容
查看引用plugin:
apply plugin: 'com.novoda.bintray-release'
查看Project 的build.gradle
dependencies { classpath 'com.android.tools.build:gradle:3.4.0' classpath 'com.novoda:bintray-release:0.3.4' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files}
com.novoda:bintray-release这个库的作用?
这是将库发布到bintray的工具。 它旨在帮助配置与maven和bintray相关的东西。 目前它适用于Android库项目,普通Java和普通Groovy项目,但该库重点是主要支持Android项目。
详细:
Android 上传自己的开源库到Bintray
进入Github 该项目地址
更新Project 的build.gradle中的bintray-release的版本
dependencies { classpath 'com.android.tools.build:gradle:3.4.0' classpath 'com.novoda:bintray-release:0.9.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files}
然后重新编译
参考:无法加载类 org.gradle.api.internal.component.Usage解决办法
更多相关文章
- 编译错误:com.android.dex.DexException:
- Android(安卓)Studio 插件之 Exynap
- imx8开发之~源码编译
- android编译时报错
- Gradle version 与 Android(安卓)Plugin Version 对应的问题
- cocos2d-x 3.0 bata for android环境配置
- 导入github ViewPagerIndicator 项目到 android studio
- Libgdx Android项目——图像的绘制1
- React Native跳转android原生界面