I've imported Module to Android Studio using steps posted this question: Problems importing project into Android Studio regarding ActionBarSherlock
The IDE is working well, but It doesn't affect the build. From Android Studio: Are Library Project dependencies picked from project.properties?
If you use Gradle, project.properties is completely ignored. You should not use the Module Settings to add dependencies now as it only changes the IDE but not the Gradle based build system (we'll fix this in later versions).
I've modified dependencies of build.gradle
dependencies {
compile files('libs/android-support-v4.jar')
compile project(":ActionBarSherlock")
}
But it build prints different error now: Gradle:
FAILURE: Build failed with an exception.
* Where:
Build file '...PATH.../PROJECT_NAME/PROJECT_NAME/build.gradle' line: 13
* What went wrong:
A problem occurred evaluating project ':PROJECT_NAME'.
> Project with path ':ActionBarSherlock' could not be found in project ':PROJECT_NAME'.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.