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解决办法

更多相关文章

  1. 编译错误:com.android.dex.DexException:
  2. Android(安卓)Studio 插件之 Exynap
  3. imx8开发之~源码编译
  4. android编译时报错
  5. Gradle version 与 Android(安卓)Plugin Version 对应的问题
  6. cocos2d-x 3.0 bata for android环境配置
  7. 导入github ViewPagerIndicator 项目到 android studio
  8. Libgdx Android项目——图像的绘制1
  9. React Native跳转android原生界面

随机推荐

  1. Android(安卓)P按键静音流程
  2. android开发中@+id/和android:id用法的区
  3. Android几种FrameWork(Manager)的用法
  4. Android之SharedPreferences详解与原理分
  5. Android百度地图(一):百度地图定位sdk 类
  6. Android的全屏问题
  7. android 仿QQ登陆界面实现
  8. Android(安卓)NDK开发
  9. 微信支付(一)
  10. android 借助AccessibilityService实现模