How to change project build target in Android Gradle project -


i have project needs ported in gradle build, have done of work not able change target sdk build, since application heavily dependent on third party sdk. present in addons directory of sdk manager.

here eclipse project structure

eclipse structure

project build target in eclipse is

project build target eclipse

the gradle project structure

gradle structure

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

  1. where make changes in file or directory?

  2. do need add addon library sdk in gradle build, if yes, where??

thank being helpful , down voting, at-least explain why down voted.

this need change in order compile through different sdk, in build.gradle present in app directory. e.g \app\build.gradle

change compilesdkversion. eg

android {     compilesdkversion 'taztag:tazpad3 add-on tuvalu_01.01.346:16'     // sdk version mentioned above sdk want add     // please specify correct sdk build     buildtoolsversion "22.0.1" } 

use compilesdkversion number when going android project target.

thank down-voted, without understanding problem, helped me...i did myself.

feel free query if have trouble regarding solution.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -