简体   繁体   中英

Android version downgrade

Please I am trying to build a small android app with ionic but I downloaded android SDK 5.1.1 .
I wish to deploy to a device that has android version 2.3.3 but it won't even build .

It keeps telling me that the target app is android-22. I want it to build for a lower version like android-8.

Please any help will really be appreciated.
I only want it to be able to build for a lower version

I tried to edit the version in the androidManifest.xml files on my project but still I get errors

->First of all, let`s make sure you have downloaded the plateform for Android 2.2 using Android SDK Manager. ->Set android:minSdkVersion to 8 in androidManifest.xml ->Verify the BuidTarget attribute, since it specifies the development tool of which api to provide you.

->Your problem seems to be the absence of API8 in your SDK.

您可能需要在build.gradle中更改您的minSdk

in the app build.gradle file set the min sdk version as 8.

defaultConfig {
    applicationId "com.etrade.mobilepro.activity"
    minSdkVersion 8
     versionCode 87
     versionName "4.5"

}

Since the app is not building I guess you don't have that particular sdk.I would suggest downloading the sdk through sdk manager.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM