Developing for Android in Eclipse: R.java not regenerating

前端 未结 30 3099
孤城傲影
孤城傲影 2020-11-21 07:04

I\'ve found out that my R.java is never updated, so it doesn\'t contain information about my new resources, so I decided to delete it and thought that Eclipse would generate

30条回答
  •  不思量自难忘°
    2020-11-21 08:05

    OK so it's clear that there can be a lot of causes for this problem. If you're on a 64 bit linux machine and you are just setting up the ADT for the first time, you may get this problem where R is not automatically generating. Check the console tab and you may see an error similar to:

     'No such file or directory' while attempting to get adb version from '/home/patrick/code/android-sdks/platform-tools/adb'
    

    If that's the case you need to install ia32-libs, using something like:

     sudo apt-get install ia32-libs
    

    See here for details: Android adb not found

提交回复
热议问题