How to change the target version of android in android studio -
How to change the target version of android in android studio -
i import eclipse project android studio. original project's target android-14, studio's mimimum api version 21. , don't want download api 14, how should solve problem?
you must have downloaded sdk configured compilesdkversion
. sdk configured minsdkversion
can lower version such api 14.
in android studio configuration realized in build.grade
file. example:
apply plugin: 'com.android.application' android { compilesdkversion 21 buildtoolsversion "22.0.1" defaultconfig { minsdkversion 14 targetsdkversion 21 versioncode 1 versionname "1.0" } buildtypes { release { minifyenabled true proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile project(":lib") compile 'com.android.support:appcompat-v7:19.0.1' compile filetree(dir: 'libs', include: ['*.jar']) }
android
Comments
Post a Comment