Android SDK Not Installing Packages

て烟熏妆下的殇ゞ 提交于 2019-12-12 03:07:29

问题


I am having trouble using the android SDK, and I am running it 'As Administrator' when I start it up.

Here is a good example, just now I selected the item

'EDK 1.2 by Sony Ericsson Mobile Communications AB'

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.


回答1:


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:

Step 0: if you've downloaded more than one copy of the same add-on then keep only one and remove all the others.

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

Open the add-on's source.properties as a text file and you can find the url to the repository

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

...
<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.

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"

Regards

Ziteng Chen



来源:https://stackoverflow.com/questions/8936461/android-sdk-not-installing-packages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!