gradle - Reference a library project without copying on Android Studio - Error:Configuration with name 'default' not found -
I am trying to migrate my Android projects from Eclipse to Android Studio Is a Library Project which is used in other projects and that is why I want to separate it (not copy in project). To do this, I followed but I get the following error:
Error: Configuration with name 'default' was not found.
I tried and tried all the answers on the Internet on this error, but nothing was fixed on my problem.
settings.gradle
Include: my_android_app 'Include: my_android_project_lib' project (': my_android_project_lib') .proDDir = new file ( Settings settings settings settings build.gradle my_android_app module Com.android.application 'android {compileSdkVersion 19 buildToolsVersion "21.1.2" default config {applicationId "my.android.app" minSdkVersion 15 targetSdkVersion 19} buildTypes {release {minifyEnabled false proguardFiles getDefaultProguardFile (' proguard-android.txt) ') , 'Proguard-rules.txt'}}} dependency {collection project (path: 'my_android_project_lib')}
my_android_app project For build.gradle
buildscript {repositories {jcenter ()} dependency {classpath 'com.android .tools.build: gradle: 1.0.0'}} All projects {repositories {jcenter ()}}
edit: helped me fix the problem by adding dependencies to the build.gradle file of the project It used to be.
Can you "work slowly"
Cheers! < / P>