我正在开发一款应用.在我的应用程序中,代码中没有错误,但是当我尝试运行我的项目时,它会出现以下错误.
错误:(1,1)评估项目':app'时出现问题.
无法应用插件[id'com.android.application']
无法创建"AppPlugin"类型的插件.
我试试这个也是Gradle发出错误"无法创建'AppPlugin'类型的插件'"
以下是我的build.gradle文件
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 23
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.praval.healthfreak"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.2.1'
compile 'com.google.android.gms:play-services:8.3.0'
compile 'de.hdodenhof:circleimageview:1.3.0'
compile 'com.android.support:design:23.2.1'
compile files('libs/YouTubeAndroidPlayerApi.jar')
}
Run Code Online (Sandbox Code Playgroud) 当我在 Android 项目中升级到 Gradle 7.0 并想在 jitpack.io 中发布 aar 库时,我遇到了
Script '/script/maven-plugin.gradle' line: 2
* What went wrong:
A problem occurred evaluating script.
> Failed to apply plugin 'com.github.dcendents.android-maven'.
> Could not create plugin of type 'AndroidMavenPlugin'.
> Could not generate a decorated class for type AndroidMavenPlugin.
> org/gradle/api/publication/maven/internal/MavenPomMetaInfoProvider
Run Code Online (Sandbox Code Playgroud)
查看完整日志https://jitpack.io/com/github/appdevnext/moka/0.7.1/build.log