xml - Failure [INSTALL_FAILED_OLDER_SDK] Android Studio -
i'm new android , i'm using android studio. i've created new project show hello world! can't working on avd because of error: failure [install_failed_older_sdk].
i searched answer , know it's build.gradle , minsdkversion of answers worked me.
this androidmanifest.xml :
<?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.scoelli.test" > <application android:allowbackup="true" android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/apptheme" > <activity android:name=".myactivity" android:label="@string/app_name" > <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> </application> </manifest>
and build.gradle :
apply plugin: 'com.android.application' android { compilesdkversion 'android-l' buildtoolsversion "20.0.0" defaultconfig { applicationid "com.example.scoelli.test" minsdkversion 8 targetsdkversion 'l' versioncode 1 versionname "1.0" } buildtypes { release { runproguard false proguardfiles getdefaultproguardfile('proguard-android.txt'), 'proguard-rules.pro' } } } dependencies { compile filetree(dir: 'libs', include: ['*.jar']) }
i appreciate not answer explanation.
thank you!
unless know want using android l developer preview application, not target , compile it. still preview release, , appears though applications targeting , compiling preview cause error non-l device.
update these lines in build.gradle stick latest stable release (android 4.4, api 19):
android { compilesdkversion 19 defaultconfig { targetsdkversion 19 } }
Comments
Post a Comment