简体   繁体   English

Android版本降级

[英]Android version downgrade

Please I am trying to build a small android app with ionic but I downloaded android SDK 5.1.1 . 请尝试使用ionic构建一个小型android应用程序,但我下载了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 . 我希望部署到具有Android 2.3.3版的设备,但什至无法构建。

It keeps telling me that the target app is android-22. 它一直告诉我目标应用是android-22。 I want it to build for a lower version like android-8. 我希望它构建为像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 我尝试在项目的androidManifest.xml文件中编辑版本,但仍然出现错误

->First of all, let`s make sure you have downloaded the plateform for Android 2.2 using Android SDK Manager. ->首先,确保已使用Android SDK Manager下载了适用于Android 2.2的平台。 ->Set android:minSdkVersion to 8 in androidManifest.xml ->Verify the BuidTarget attribute, since it specifies the development tool of which api to provide you. ->在androidManifest.xml中将android:minSdkVersion设置为8->验证BuidTarget属性,因为它指定了为您提供哪种api的开发工具。

->Your problem seems to be the absence of API8 in your SDK. ->您的问题似乎是您的SDK中缺少API8。

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

in the app build.gradle file set the min sdk version as 8. 在应用程序build.gradle文件中,将最小SDK版本设置为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. 由于该应用程序尚未构建,我想您没有该特定的sdk。我建议您通过sdk管理器下载sdk。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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