Eclipse JUNO + ADT 23.0.2 Resources $ NotFoundException

After I recently installed the latest Eclipse ADT package, I get some errors in the old project that I was working on:

No known package when getting value for resource number 0x7f080028
android.content.res.Resources$NotFoundException: String resource ID #0x7f080028
at android.content.res.Resources.getText(Resources.java:222)
at android.content.res.Resources.getString(Resources.java:275)
at android.content.Context.getString(Context.java:183)
...

My R file has the correct connection between the string I'm looking for and the resource identifier.

I tried a few things to solve my problem:

  • clear all projects
  • rename all resource names to lower case names
  • to restart a computer.

I used "adt-bundle-windows-x86_64-20130522" (it compiled without runtime errors) and downloaded "adt-bundle-windows-x86_64-20140702" due to an error that occurred during the update.

Any suggestions?

+4
source share
2

: , (21.0.2), ! , , aapt.exe.


: Android SDK Build-tools. , 21 21.0.1 - , , .

:

. , , , , , , . , zip , . zip , .

, Android SDK Build-tools ( 21 21.0.1), APK, Zip ( , ). zip , , ZIP 13 . , .

. , project.properties sdk.buildtools=20 ( Eclipse) build.gradle buildToolsVersion "20" android ( Android Studio). 20 , , 21 . Android SDK Build-tools Android SDK Manager "".

+6

3 , Google -.

, ( : R)

gradel 21.0, 21.0.1, 21.0.2 21.1

21.1.1.

IDE Android .

  • Gradel Scripts.
  • build.gradel() { build.gradel( " mainActivity" ).
  • build.gradel(app),

             CHANGE the buildToolsVersion to "21.1.1" from your old buildToolsVersion..
    

    4.Sync . 5. .

.

0

All Articles