I have project which needs to be ported in Gradle build, I have done most of work but not able to change the target SDK for the build, since my application is heavily dependent on third party SDK. It is present in addons directory of SDK manager.
Here is the Eclipse project structure
project build target in eclipse is
The Gradle project structure is
build.gradle in app directory
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "22.0.1"
defaultConfig {
applicationId "com.name.appname"
minSdkVersion 15
targetSdkVersion 22
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
//compile 'com.android.support:appcompat-v7:22.2.1'
}
I have following queries
Where to make the changes in which file or directory?
Do I need to add addon library sdk in the gradle build, If yes, then where??
Thank you for being helpful and down voting, at-least explain why you down voted.