I changed everything else as needed in my gradle files, but I ended up with one error that I cannot solve:
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 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.
If this helps, here is my main build.gradle file:
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') }
user2589370
source share