Fail to find annotations.jar after updating to ADT 23

前端 未结 9 1310
無奈伤痛
無奈伤痛 2020-12-05 12:52

So, seeing that the new Android L is out, I said I should give it a try. I installed the new ADT update from SDK tools and then from the updates. After Eclipse restart, I ge

相关标签:
9条回答
  • 2020-12-05 13:04

    Uninstall/install Support library didn't help, so I did this:

    Found ..\android-sdk\extras\android\support\annotations\android-support-annotations.jar and copied it to ..\android-sdk\tools\support\annotations.jar

    The problem is gone since then. Doesn't look as incredibly awesome solution but at least now I can build my project in Eclipse.

    0 讨论(0)
  • 2020-12-05 13:09

    On Eclipse - After updating ADT or Updating Google SDK version, we find problem for the existing version of Google Play Service Lib.

    From the help of Above answers and other search, found the following way to correct it.

    From Project menu of Eclipse, uncheck 'Build Automatically'

    1) Delete the existing lib project of 'google-play-services_lib'.

    2) Eclipse Menu --> File --> Import --> 'Existing Android Code Into Workspace'

    select the project from 'android-sdk\extras\google\google_play_services\libproject\google-play-services_lib'

    3) Select the same project by checkbox in 'Project to Import'

    4) Also check 'Copy projects into workspace'

    5) When the project appears in 'package explorer', right click on it and select Properties.

    Select 'Android'

    ( as solution of 'Gavin Chen' ) - select the latest platform and Api level for this library project and click OK to close properties

    5) again right click on same lib project from 'Package Explorer', click on 'Build project'

    Now you will find the Google Play Service Library is built properly.

    Then you may build your other projects, which are dependent on it. You may also need to 'Remove' and 'Add' the google-play-service_lib, from your project -- properties -- Android -- Library.

    You may re select 'Build Automatically' option from 'Project' Menu.

    0 讨论(0)
  • 2020-12-05 13:14

    If you use build.gradle script, then just set the "compileSdkVersion" to 19.

    ... android {

    compileSdkVersion 19
    buildToolsVersion "19.1.0"
    
    sourceSets {
    

    ...

    0 讨论(0)
  • 2020-12-05 13:15

    I have already answered it here : https://stackoverflow.com/a/25785428/2178259

    I think Google has changed the location of that jar file from <SDK_DIR>/extras/android/support/annotations.jar to <SDK_DIR>/extras/android/support/annotations/android-support-annotations.jar

    To solve this issue, I followed these steps on all projects and libraries in my workspace using this jar:

    • Just removed the file from Java Build Path -> Libray Tab,
    • then Add External Jars
    • Chose file from the given location above.
    0 讨论(0)
  • 2020-12-05 13:16

    Right click on your project --> project.properties --> target=android-19

    0 讨论(0)
  • 2020-12-05 13:18

    A temporary solution from someone at google has been posted on the issue tracker: http://code.google.com/p/android/issues/detail?id=72419#c12

    Please wait for an updated version within a day or two. Until then, your workaround is to do download one of:

    • http://dl.google.com/android/android-sdk_r22.6.2-linux.tgz
    • http://dl.google.com/android/android-sdk_r22.6.2-windows.zip
    • http://dl.google.com/android/android-sdk_r22.6.2-macosx.zip

    and copy over the following files:

    • tools/hprof-conv
    • tools/support/annotations.jar
    • tools/proguard
    0 讨论(0)
提交回复
热议问题