Failed to load properties file for android project

2020-03-24 04:09发布

I finally was able to build and debug the android platform with this tutorial. I imported my project in eclipse, and afterwards installed ADT. Then I converted my imported project to android project (Android Tools -> Convert To Android Project). And now I'm having Failed to load properties file for project 'droid-platform' error. Session data:

eclipse.buildId=M20100211-1343
java.version=1.5.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=ru_UA
Command-line arguments:  -os linux -ws gtk -arch x86

Does anyone know, how do I deal with this?

13条回答
贼婆χ
2楼-- · 2020-03-24 04:22

The solution to this problem is to setup some System Environment Variables.

  1. Right click on "My Computer" and select "Properties"

  2. Select the "Advanced" tab

  3. Click the "Environment Variables" button

  4. Under "System Variables" find "Path", select is and then click "edit"

  5. Scroll to the far right, now you need to add two paths, "C:\Documents and Settings\YOUR_USER_NAME\.android\avd" and "C:\Program Files\Java\jdk1.7.0_01\bin", you need to add a ; at the end of each path. Click "Ok" when done.

  6. Select the "New" button, for variable name enter "ANDROID_SDK_HOME", and for variable value enter your SDK install path (Default is "C:\Program Files\Android\android-sdk") and then click "Ok"

  7. Restart Eclipse and it should work!

查看更多
Melony?
3楼-- · 2020-03-24 04:25

What fixed the problem for me was going into eclipse sdk manager and installing the tools there even though I had them installed on my sdk manager. It seems that there 2 separate sdk managers with different files, so try directly going into the sdk manager in Eclipse and seeing if you have the tools installed there.

查看更多
爱情/是我丢掉的垃圾
4楼-- · 2020-03-24 04:30

Use the contextual menu on the Project in error, "Android Tools"-->"Fix project properties", I also tried "Refresh (F5)" in the same pass, than it worked again.

查看更多
我只想做你的唯一
5楼-- · 2020-03-24 04:30

I had this error when I manually tried editing the manifest file, "AndroidManifest.xml". When I made changes using the little GUI provided for editing the file, it works fine.

Make changes via the Manifest General Attributes and Manifest Extras sections that opens up when you double click the "AndroidManifest.xml" file. Yet beware of changes made directly to the xml, even if they are identical!

查看更多
再贱就再见
6楼-- · 2020-03-24 04:32

ADT does not work good with the platform itself. Actually, the platform is not an android project itself.

查看更多
唯我独甜
7楼-- · 2020-03-24 04:37

I really struggled with this one and finally solved it using the solution here: "Debug certificate expired" error in Eclipse Android plugins

I also had the error message you mention, but somehow, deleting the keystore fixed everything.

p.s. do a clean after deleting the keystore.

Yusuf

查看更多
登录 后发表回答