gpt4 book ai didi

java - 找不到ID为 'Android'的插件

转载 作者:行者123 更新时间:2023-12-03 04:37:45 26 4
gpt4 key购买 nike

我已经完成了从Eclipse和

imported it into android studio. I get the error: Plugin with id 'Android' cannot be found



我发现了一些对此错误的引用,但是建议对我没有用,下面是我的build.gradle文件:
apply plugin: 'android'

dependencies {
classpath 'com.android.tools.build:gradle:0.11.+'
compile fileTree(dir: 'libs', include: '*.jar')
compile project(':Panic Phase 2:PanicPhase2:PanicAndroid:facebook-android-sdk-master:facebook')
compile project(':google_play_services:libproject:google-play-services_lib')
}

android {
compileSdkVersion 11
buildToolsVersion "23.0.0 rc3"

sourceSets {
main {
manifest.srcFile 'AndroidManifest.xml'
java.srcDirs = ['src']
resources.srcDirs = ['src']
aidl.srcDirs = ['src']
renderscript.srcDirs = ['src']
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}

// Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests')

// Move the build types to build-types/<type>
// For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ...
// This moves them out of them default location under src/<type>/... which would
// conflict with src/ being used by the main source set.
// Adding new build types or product flavors should be accompanied
// by a similar customization.
debug.setRoot('build-types/debug')
release.setRoot('build-types/release')
}
}

最佳答案

看来您弄错了Gradle插件标识符。

尝试将apply plugin: 'android'替换为apply plugin: 'com.android.application'

关于java - 找不到ID为 'Android'的插件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32208935/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com