ich alles verändert anders als in meiner gradle Dateien benötigt, aber Ich schlage ein Fehler kann ich nicht zu lösen scheinen:Android Studio 1.0 Gradle Fehler mit getConfiguration()
Error:Unable to find method 'org.gradle.api.internal.project.ProjectInternal.getConfigurations()Lorg/gradle/api/internal/artifacts/configurations/ConfigurationContainerInternal;'.
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
Wenn es keine Hilfe ist hier ist meine Haupt build.gradle Datei:
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.1"
defaultConfig {
minSdkVersion 16
targetSdkVersion 21
versionCode 9
versionName "1.6"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile files('libs/gson-2.2.4.jar')
compile project('libs:anddown')
compile 'com.android.support:appcompat-v7:21.0.2'
compile files('libs/android-support-v7-recyclerview.jar')
}
Welche Version des Gradle für Android-Plugin verwenden Sie? Wenn es sich um ein traditionelles Android Studio-Projekt handelt, befindet sich das in der 'build.gradle' -Datei der obersten Ebene. Warum verwenden Sie keine Abhängigkeiten für Gson und RecyclerView? Oder mein CWAC-AndDown, wenn man davon ausgeht, dass sich "libs: anddown" darauf bezieht? – CommonsWare