Since Android Studio will be used by default for the IDE for Android Development, I decided to transfer my existing project to Android-studio. The structure of the project looks different, and the folder hierarchy in my project is as follows:
Complete Project
->.idea
-> build
-> Facebook SDK
-> MainProject
-> ... (Other Libraries)
build.gradle
local.properties
settings.gradle
...
External Libraries
-> Android API 8 Platform
-> Android API 18 Platform
-> Android API 19 Platform
-> 1.7 Java
-> support-v4-19.1.0
My MainProject has a libs folder that contains various banks used in the project. Surprisingly it does not contain the android-support-v4 jar that was present in my eclipse project. Thus, it seems that the external library folder in the root folder should take care of this.
But after importing, when I tried to compile the project, I started throwing a "Symbol not found error" for some classes related to the Android support library.
: Android Studio NotificaitonCompat android.support.v4.app.NotificationCompat, ,
: (17, 30) : NotificationCompat : ': app: compileDebugJava'. > ; . .
. build.gradle MainProject, .
, .
EDIT:
Gradle
build.gradle MainProject
apply plugin: 'com.android.application'
android {
compileSdkVersion 19
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "package.app"
minSdkVersion 8
targetSdkVersion 19
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
configurations {
all*.exclude group: 'com.android.support', module: 'support-v4'
}
dependencies {
compile project(':facebookSDK')
compile project(':library')
compile project(':volley')
compile 'com.google.android.gms:play-services:+'
compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
compile 'com.android.support:support-v4:19.1.0'
compile files('libs/FlurryAnalytics_3.3.3.jar')
compile files('libs/universal-image-loader-1.8.4.jar')
....
}