im using Android Studio since a few days! I want to use my phone(nexus 5 android version:4.4.3) as app-tester and debugger. I've set my phone in target Device. There aren't usb-driver problem. The device is recognized by PC. Ok!Now i've this problem:
Waiting for device.
Target device: lge-nexus_5-04e2b217251fce16
Uploading file
local path: C:\Users\chaw359\AndroidStudioProjects\UGHO\app\build\outputs\apk\app-debug.apk
remote path: /data/local/tmp/com.example.chaw359.ugho
Installing com.example.chaw359.ugho
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.chaw359.ugho"
pkg: /data/local/tmp/com.example.chaw359.ugho
Failure [INSTALL_FAILED_OLDER_SDK]
My app is a simple "Hello World", nothing problem with code! I want to understand why the installation fails!
You can modified your build.gradle
According to me:
modified the minSdkVersion low.
defaultConfig {
applicationId "com.example.myapplication1"
minSdkVersion 11
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
-Go to built.gradle(module:app) inside gradle scripts
-Check the SDK or API version of the virtual device or the real device that you
are using
-set the the minSdkVersion to be less than or equal to that of your devices API/SDK version
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.