科尔多瓦建设:请安装Android的目标:" Android的22 QUOT ;.我不想要的android-22。我希望Android的19 - 我该怎么办?我不、我该、科尔、目标

2023-09-05 00:06:36 作者:別那么任性

我挣扎与我的PhoneGap的设置,建设我的第一个应用程序。

I'm struggling with my phonegap setup and building my first app.

我创建了一个hello1项目。我加入了Android项目

I created a hello1 project. I added the android project

Android平台已经添加了

Platform android already added

现在,当我运行科尔多瓦构建,我得到的错误 -

Now when I run the cordova build, I get the error -

错误:请安装Android的目标:机器人-22

Error: Please install Android target: "android-22"

我没有Android的22。我确实有机器人-19。我希望我的项目,与Android-19建造。我怎样才能做到这一点?

I do not have android-22. I do have android-19. I want my project to be built with android-19. How can I make that happen?

我的android-22,我卸载(用于固定一个更大的问题)。我不明白哪个文件,我应该在做这个工作的变化。 该 project.properties 项目涉及这一步后,它会自动包含目标为Android为22。

I had android-22 which I uninstalled (for fixing a bigger problem). I do not understand which file should I be making a change in for this to work. The project.properties in the project comes after this step and it automatically contains the target as android-22.

我已经正确添加我的ENV变量。 C:\用户\用户\ Android的软件开发工具包\平台工具; C:\用户\用户\ Android的软件开发工具包\工具

I have added my env variables correctly. C:\Users\user\android-sdks\platform-tools;C:\Users\user\android-sdks\tools

这并没有帮助。这是一个更大的问题,我试图调试只是其中的一部分。请帮忙。

It doesn't help. This is just part of a bigger problem that I'm trying to debug. Please help.

推荐答案

对于SDK 21 (的android-21

$ cordova platforms remove android
$ cordova platforms add android@3.7.1

对于SDK 22 (安卓4.1.1,的android-22

For SDK 22 (Android 4.1.1, "android-22")

$ cordova platforms remove android
$ cordova platforms add android@4.1.1

更多信息:的https://cordova.apache.org/announcements/2015/07/21/cordova-android-4.1.0.html

 
精彩推荐
图片推荐