Plugin with id 'com.android.application' not found.
2018-02-12 20:03
465 查看
在Gradle Scripts里的build.gradleapply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.example.middle"
minSdkVersion 15
targetSdkVersion 25
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:25.1.0'
}
在下面加入几行代码
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
//注意:更换成自己的AS的版本
}
}
allprojects {
repositories {
jcenter()
}
}
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.example.middle"
minSdkVersion 15
targetSdkVersion 25
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:25.1.0'
}
在下面加入几行代码
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
//注意:更换成自己的AS的版本
}
}
allprojects {
repositories {
jcenter()
}
}
相关文章推荐
- Android studio Error:(1, 0) Plugin with id 'com.Android.application' not found.Open File
- plugin with id 'com.android.application' not found
- plugin with id com.android.application not found 错误
- Plugin with id 'com.android.application' not found.
- Android Studio导入项目出现出现Error:(1, 0) Plugin with id ‘com.android.application’ not found.
- AndroidStudio遇到Gradle sync failed: Plugin with id 'com.android.application' not found.
- 解决android studio错误 --> Error:(1, 0) Plugin with id 'com.android.application' not found
- Error:(1, 0) Plugin with id 'com.android.application' not found
- Error:(1, 0) Plugin with id 'com.android.application' not found.
- Plugin with id com.android.application not found
- Error:(1, 0) Plugin with id 'com.android.application' not found
- Plugin with id 'com.android.application' not found.
- android 错误 Plugin with id 'com.android.application' not found.
- Error:(1, 0) Plugin with id 'com.android.application' not found. <a href="openFile:F:\AndroidCode\Ji
- 错误:android studio ---> Error:(1, 0) Plugin with id 'com.android.application' not found.
- Plugin with id 'com.android.application' not found.
- (Plugin with id com.android.application not found)问题解决
- Android studio 导入包时出现错误Error:(1, 0) Plugin with id 'com.android.application' not found.
- 解决办法: Error:(2, 0) Plugin with id 'com.github.dcendents.android-maven' not found.
- 导入XUTILS库是出现Plugin with id 'com.github.dcendents.android-maven' not found.