简体   繁体   English

Android SDK未安装软件包

[英]Android SDK Not Installing Packages

I am having trouble using the android SDK, and I am running it 'As Administrator' when I start it up. 我在使用android SDK时遇到问题,并且在启动时以“以管理员身份”运行。

Here is a good example, just now I selected the item 这是一个很好的例子,刚才我选择了该项

'EDK 1.2 by Sony Ericsson Mobile Communications AB' “索尼爱立信移动通信公司的EDK 1.2”

It says it was installing, and at the end I have it in my list twice like this, 它说它正在安装,最后我将它两次​​列在清单中,

EDK 1.2 by Sony Ericsson Mobile Communications AB 10 1     Not Installed
EDK 1.2 by Sony Ericsson Mobile Communications AB 10 1     Installed

It seems to be confused. 似乎很困惑。 In this case when I refreshed the list it said that the item was installed, but I am having a lot of cases where it just refuses to install the item. 在这种情况下,当我刷新列表时,它说该项目已安装,但是在很多情况下,它只是拒绝安装该项目。

I also had a case where in the list it said an item was installed, but when I came back later it wasn't installed. 我还遇到一种情况,在列表中它说一个项目已安装,但是后来我回来时却没有安装。

This is a "name doesn't match" issue which also happens when you download other add-ons like addon-dual_screen_apis-kyocera_corporation, addon-galaxy_tab-samsung_electronics and addon-real3d-lge, you can fix it by the following steps: 当您下载其他插件(如addon-dual_screen_apis-kyocera_corporation,addon-galaxy_tab-samsung_electronics和addon-real3d-lge)时,也会发生此“名称不匹配”的问题,您可以通过以下步骤进行修复:

Step 0: if you've downloaded more than one copy of the same add-on then keep only one and remove all the others. 步骤0:如果您下载了同一附加组件的多个副本,则仅保留其中一个副本,然后删除所有其他副本。

Android SDK:\add-ons\addon-edk_1_2-sony_ericsson_mobile_communications_ab-10
Android SDK:\add-ons\addon-edk_1_2-sony_ericsson_mobile_communications_ab-10-1 (remove it)

Step 1. Find out the real add-on name and the vendor name 步骤1.找出真实的附件名称和供应商名称

Open the add-on's source.properties as a text file and you can find the url to the repository 打开加载项的source.properties作为文本文件,您可以找到存储库的URL

Android SDK:\\add-ons\\addon-edk_1_2-sony_ericsson_mobile_communications_ab-10\\source.properties Android SDK:\\ add-ons \\ addon-edk_1_2-sony_ericsson_mobile_communications_ab-10 \\ source.properties

...
Pkg.SourceUrl=http\://developer.sonyericsson.com/edk/android/repository.xml
...

then browse the url: 然后浏览网址:

http://developer.sonyericsson.com/edk/android/repository.xml http://developer.sonyericsson.com/edk/android/repository.xml

...
<sdk:name>EDK 1.2</sdk:name>
...
<sdk:vendor>Sony Ericsson Mobile Communications AB</sdk:vendor>
...

Step 2. Edit the manifest of the add-on to match the names found in step 1. 步骤2.编辑加载项的清单以匹配在步骤1中找到的名称。

Android SDK:\\add-ons\\addon-edk_1_2-sony_ericsson_mobile_communications_ab-10\\manifest.ini Android SDK:\\ add-ons \\ addon-edk_1_2-sony_ericsson_mobile_communications_ab-10 \\ manifest.ini

name=EDK 1.2
vendor=Sony Ericsson Mobile Communications AB

Then restart the SDK Manager you will see that the SDK is marked as "Installed" 然后重新启动SDK Manager,您会看到SDK被标记为“已安装”

Regards 问候

Ziteng Chen 陈子腾

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

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