मैं सब कुछ के रूप में मेरे Gradle फाइलों में जरूरत बदल के साथ 1.0 Gradle त्रुटि, लेकिन मैं एक त्रुटि मार कर रहा हूँ मैं हल नहीं कर पा रहे:एंड्रॉयड स्टूडियो 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.
यह किसी भी मदद की है तो , यहां मेरा मुख्य 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')
}
एंड्रॉयड प्लगइन के लिए क्या Gradle के संस्करण का उपयोग कर रहे हैं? यदि यह एक पारंपरिक एंड्रॉइड स्टूडियो प्रोजेक्ट है, जो शीर्ष-स्तर 'build.gradle' फ़ाइल में होगा। इसके अलावा, आप जीसन और रीसाइक्लर व्यू के लिए निर्भरताओं का उपयोग क्यों नहीं कर रहे हैं? या मेरा सीडब्ल्यूएसी-एंडडाउन, यह मानते हुए कि 'libs: anddown' क्या है? – CommonsWare