yöntemini içermeyen bir Grapli sürümünü kullanıyor olabilir. Eclipse ADT'de özgün olarak yapılmış bir projeyi çalıştırmaya çalışırken bu sorunla karşılaşıyorum.Proje, 'compileSdkVersion()'
Error:(17, 0) Gradle DSL method not found: 'compileSdkVersion()'
Possible causes:<ul><li>The project 'TaxiAndroidOpen-master' may be using a version of Gradle that does not contain the method.
<a href="open.wrapper.file">Open Gradle wrapper file</a></li><li>The build file may be missing a Gradle plugin.
<a href="apply.gradle.plugin">Apply Gradle plugin</a></li>
Zaten Android Studio gradle sisteme bu dönüştürdü.
Ama bunu çalıştırmak, ne de çünkü bu hatanın, bunu derleme olamaz, burada gradle oluşturulan var:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
}
}
allprojects {
repositories {
jcenter()
}
}
ext {
compileSdkVersion 17
buildToolsVersion '18.1.0'
}
dependencies {
}
Ben benzer hatalarla, SO burada diğer bazı mesajları bulduk ama kimse görmedi Bu özel olanı.
Android Studio 1.0.2, x86 kullanıyorum.
Bu konuda biraz ışık tutabilir mi?
Şimdiden teşekkürler!
DÜZENLEME
Güncelleme build.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 17
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.opentaxi.android"
minSdkVersion 9
targetSdkVersion 19
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
compile project(':comtaxibulgariamap_mapsforge_044201406271417533')
compile files('libs/littlefluffylocationlibrary_r15.jar')
}
/build.gradle yerine – NeoVe
Oh ve "yanlış minifyEnabled" hayır runProguard ama orada "proguardFiles getDefaultProguardFile ('proguard-android.txt'), 'proguard-rules.txt'" herhangi bir fikir ? – NeoVe
Bu sorunlara neden olmaz. Uygulamanızı/build.gradle gönderebilir misiniz? Muhtemelen sorun olanı. –