zmieniłem wszystko inne w zależności od potrzeb w moich Gradle plików, ale mam trafienia jeden błąd nie wydaje się rozwiązać:Android Studio 1.0 Gradle Błąd 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.
Jeśli jest jakiejkolwiek pomocy tutaj jest mój główny plik build.gradle:
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')
}
Co wersja Gradle dla pluginu Android używasz? Jeśli jest to tradycyjny projekt Android Studio, będzie to plik 'build.gradle' najwyższego poziomu. Dlaczego nie używasz zależności dla Gson i RecyclerView? Lub mój CWAC-AndDown, zakładając, że to właśnie odnosi się do 'libs: anddown'? – CommonsWare