“Unable to get system library for project” after I upgraded to Android SDK 2.3 and ADT 8.0

前端 未结 26 1269
眼角桃花
眼角桃花 2021-01-31 13:25

Today I upgraded to Android SDK 2.3 and I also upgraded the Eclipse Plugin Androi Developer Tools 8.0 (from 0.9.9). I also upgraded my Java Development Kit to 1.6_22.

No

相关标签:
26条回答
  • 2021-01-31 14:11

    The best way here as I tried before, is to create a new project and choose :

    create a project from an existing source and choose the location of the android project that you want to import, then next, you will see the build target of android like : 2.3.3 or 2.1 ..

    Just choose one of them then finish!

    You are done! ..

    0 讨论(0)
  • 2021-01-31 14:11

    Had the same issue (red erros all over my java source files) Solution was simple:

    • step 1. In the manifest file raise the version to android:minSdkVersion="8" (I created a new empty project and looked in it's manifest file) (it was originally android:minSdkVersion="4" because i want to support older android versions.)
    • step 2. right click the project and select Build
    • step 3. just to be safe: On the menu: Project Clean and check my project
    • step 4: finally I changed back In the manifest file to android:minSdkVersion="4" and it had no errors.

    Hope it works for you.

    0 讨论(0)
  • 2021-01-31 14:12

    my case was not created the right AVD

    after AVD created, go to project Property and find Android, select the right SDK version and then go to JAVA Build Path, delete the library (Unable to get system library for project) and add android library.

    0 讨论(0)
  • 2021-01-31 14:12

    In my case the issue was related with the missing library path from the properties>android>library.

    I cleared and re-entered the library paths in project.properties file

    0 讨论(0)
  • 2021-01-31 14:13

    i have also encoutered this and solve it by changing the android choice in project properties. My error is because the project can't find proper lib from the android SDK. Then fix the project using android fix tool in right click of project, clean it and then correct.

    0 讨论(0)
  • 2021-01-31 14:15

    I had this problem even though I had a valid target selected. I fixed it by changing to a different target, applying changes and then changing back. That seems to have sorted it.

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