Failed to load properties file for android project

前端 未结 13 1746
予麋鹿
予麋鹿 2021-01-13 01:12

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 p

相关标签:
13条回答
  • 2021-01-13 01:35

    In my case, I just add to import the R.java (ex:import com.exercise.teste.R;) to my class files by right clicking on ex: R.id.mybutton and choose import ex; your.package.name.R, then CLEAN, BUILD.

    0 讨论(0)
  • 2021-01-13 01:39

    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.

    0 讨论(0)
  • 2021-01-13 01:40

    Just create a new file called project.properties in the root of your project.

    Add the line:

    target=android-10
    

    Or modify it to whatever version of the Android you're targeting.

    0 讨论(0)
  • 2021-01-13 01:41

    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!

    0 讨论(0)
  • 2021-01-13 01:41

    So easy just choose the project that has an error, and then go to menu>project>build Project

    0 讨论(0)
  • 2021-01-13 01:48

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

    0 讨论(0)
提交回复
热议问题