ERROR: Unable to load class 'org.gradle.api.internal.component.Usage'.
程序员文章站
2022-07-06 09:38:14
...
1.错误如下:
ERROR: Unable to load class 'org.gradle.api.internal.component.Usage'
2.解决方法:
将:
classpath 'com.novoda:bintray-release:0.3.4'
改为:
classpath 'com.novoda:bintray-release:0.5.0'
然后同步一下
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }//必须添加这行
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
// classpath 'com.android.tools.build:gradle:3.5.1'
// classpath 'com.novoda:bintray-release:0.3.4'
classpath 'com.novoda:bintray-release:0.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven { url "https://jitpack.io" }//必须添加这行
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
3.涉及到的项目:
https://github.com/guangzq/StepDialog
一行代码实现ofo app首次注册时的步骤控件
https://github.com/eoinfogarty/Onboarding
向用户介绍您的应用程序的一种好方法
https://www.jianshu.com/p/4caff07b6dca 十四个功能强大的 Android 引导视图 分享
当然你可以在github上搜索Onboarding
主要用于APP引导、启动等功能
推荐阅读
-
ERROR: Unable to load class 'org.gradle.api.internal.component.Usage'.
-
IntelliJ IDEA新建java文件报错: Unable to parse template "Class" Error Message : 0
-
变异测试工具Pitest(maven配置),并解决无法加载主类问题 INFO : MINION : Error: Could not find or load main class org.
-
phoenix启动报错:Error: org.apache.hadoop.hbase.DoNotRetryIOException: Unable to load configured region s