resources.ap_ does not exist when compile my android project

前端 未结 28 2749
慢半拍i
慢半拍i 2020-12-13 06:01

Compile Error: Error generating final archive: java.io.FileNotFoundException: ..\\bin\\resources.ap_ does not exist.

Compile other simple sample works. Same source f

相关标签:
28条回答
  • 2020-12-13 06:34

    Did you do a Project > Clean? If that doesn't work, try forcing Eclipse to build the project again. Restart Eclipse if that still doesn't work.

    0 讨论(0)
  • 2020-12-13 06:34

    Delete any 9 patch drawables created in gimp and refresh.

    0 讨论(0)
  • 2020-12-13 06:35

    Try going to Window->Android SDK manager and update Tools and Android 4.0. This solved my issues.

    If that doesnt work, try updating everything.

    That totally worked for me!

    Reference: Error generating final archive: java.io.FileNotFoundException: xxx\bin\resources.ap_ does not exist

    0 讨论(0)
  • 2020-12-13 06:40

    Finally i found the reason. The update aapt tool treat the format string without order as build error. e.g. "%s %d" should be "%1$s %2$d".

    0 讨论(0)
  • 2020-12-13 06:40

    first try

    clean,build automatically from eclipse

    and if not resolved then try uder solution

    i found solution why R.class not made by eclipse after making again-2 clean,build etc.

    problem is here in strings.xml:

    Hello World, HelloAutoComplete!

    HelloAutoComplete these are by default created by the eclipse when you create an projects

    definitly you are changing the strings.xml for your own requirment sometimes you cleare the string.xmls these two lines from your codes.

    it is making problem in AndroidManifest.xml file

    so it cant communicating strings.xml

    dont delete these two lines from strings.xml

    android:icon="@drawable/icon" android:label="@string/app_name"
    
    android:name=".HelloAutoComplete"
    
    android:label="@string/app_name"
    

    regards aarifmohammadkhan@gmail.com

    if any one have nay problem in android

    welcome for asking questions

    Regards aarifmkhan

    0 讨论(0)
  • 2020-12-13 06:40

    Try run your Eclipse as administrator.

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