Gradle DSL method not found
2018-01-12 15:41
155 查看
Gradle DSL method not found: ‘android()’
去掉根目录的build.gradle中的
android {
compileSdkVersion 23
buildToolsVersion “23.0.3”
}
Gradle DSL method not found: ‘google()’
方法1:
在gradle-wrapper.properties 设置distributionUrl=https://services.gradle.org/distributions/gradle-4.1-all.zip
在根目录中的build.grale中设置
dependencies {classpath ‘com.android.tools.build:gradle:3.0.1’ }
方法2:
在根目录中的
repositories {
google()
}
替换成
repositories {
maven {
url ‘https://maven.google.com’
}
}
Gradle Dsl method not found:‘ compile()’
去掉根目录的build.gradle中的
dependencies {
compile fileTree(include: [‘*.jar’], dir: ‘libs’)
testCompile ‘junit:junit:4.12’
compile ‘com.android.support:appcompat-v7:23.2.0’
compile ‘com.android.support:design:23.2.0’
}
去掉根目录的build.gradle中的
android {
compileSdkVersion 23
buildToolsVersion “23.0.3”
}
Gradle DSL method not found: ‘google()’
方法1:
在gradle-wrapper.properties 设置distributionUrl=https://services.gradle.org/distributions/gradle-4.1-all.zip
在根目录中的build.grale中设置
dependencies {classpath ‘com.android.tools.build:gradle:3.0.1’ }
方法2:
在根目录中的
repositories {
google()
}
替换成
repositories {
maven {
url ‘https://maven.google.com’
}
}
Gradle Dsl method not found:‘ compile()’
去掉根目录的build.gradle中的
dependencies {
compile fileTree(include: [‘*.jar’], dir: ‘libs’)
testCompile ‘junit:junit:4.12’
compile ‘com.android.support:appcompat-v7:23.2.0’
compile ‘com.android.support:design:23.2.0’
}
相关文章推荐
- 4. Gradle DSL method not found runProguard
- Gradle DSL method not found
- Gradle DSL method not found: 'runProguard()'
- Gradle DSL method not found: 'runProguard'
- Gradle DSL method not found: 'android()
- Gradle DSL method not found
- Anroid studio遇到的问题4---Gradle DSL method not found runProguard
- Gradle DSL method found: ‘android()’错误
- [原创] Gradle DSL method not found: 'android()' 和 buildToolsVersion is not specified 的解决办法。
- 解决android studio报Error:Gradle DSL method not fount: 'compile()'
- Unsupported Gradle DSL method found: 'exclude()'
- Android studio Gradle sdl method not found ...
- Gradle DSL method not found: 'runProguard()'
- Gradle sync failed: Could not find method android() for arguments [build_aj7feyco0x5e5hj3g6wttaj6$_
- Unable to make the module: related gradle configuration was not found. Please, re-import the Gradle
- NDK开发(二):java.lang.UnsatisfiedLinkError: Native method not found
- Caused by: java.lang.ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor
- Gradle DSL method not found: 'implementation()'错误解决
- 解决Gradle DSL method not found: ‘android()’
- 解决Gradle DSL method not found: ‘android()’