简体   繁体   中英

Android apps failed to launch after updating Eclipse

I created a simple "Hello, World" Android app. Then I checked for updates in Eclipse. A lot of updates were installed. After installing them and restarting Eclipse I got an error in my Android app. The main activity page is not loaded and I see the message Unable to resolve target 'android-16' until the SDK is loaded.

If I click Window->Preferences and navigate to "Android", it shows me "No target available" . I remember, that before that, there was something there instead of "No target available" . I found out that during the update file "adb.exe" was moved from C:\\Program Files (x86)\\Android\\android-sdk to C:\\Program Files (x86)\\Android\\android-sdk\\platform-tools . I tried to change the directory in the properties ( Window->Preferences ) to ...\\platform-tools , but it gave me the message Could not find folder 'tools' in ...

The Android SDK manager fails to launch. When I click Window->Android SDK Manager , it says Starting ... but nothing happens afterwards.

At Stackoverflow I found several questions regarding this problem. BUT none of the solutions worked for me. Here is the list of similar questions solutions to which didn't help me:
Android Problem: Eclipse cannot find ADB.exe
Could not find adb.exe - after upgrade to Android SDK 2.3
Unable to set up Android Target in Eclipse
Could not find folder 'tools' inside SDK

Please help me to solve this problem!

Can you navigate to your SDK directory and launch the SDK Manager and confirm that you have platforms installed in this SDK directory. If not then install them. Then confirm you have properly set the SDK directory in eclipse. Window->Preferences->Android

我完全重新安装了Android SDK,它提供了帮助。

Reinstall Eclipse (if you save the zip as me, only redecompress :) ). Then set the android sdk path again.

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