我编译了我的应用程序,它曾经工作正常。当我正常构建时,它会在bin文件夹中创建一个APK文件。什么都没有。
[2010-11-30 12:06:58 - MyProject] Removing generated java classes.
[2010-11-30 12:06:58 - MyProject] Refreshing resource folders.
[2010-11-30 12:06:58 - MyProject] Starting full Pre Compiler.
[2010-11-30 12:06:58 - MyProject] Removing generated java classes.
[2010-11-30 12:06:58 - MyProject] Preparing generated java files for update/creation.
[2010-11-30 12:06:58 - MyProject] C:\dev\android-sdk-windows\platforms\android-4\tools\aapt.exe package -m -v -J C:\svn\MyProject\gen -M C:\svn\MyProject\AndroidManifest.xml -S C:\svn\MyProject\res -I C:\dev\android-sdk-windows\platforms\android-4\android.jar
[2010-11-30 12:06:58 - MyProject] Locale/Vendor pairs:
[2010-11-30 12:06:58 - MyProject] /
[2010-11-30 12:06:58 - MyProject] /
[2010-11-30 12:06:58 - MyProject] /
[2010-11-30 12:06:58 - MyProject] /
[2010-11-30 12:06:58 - MyProject]
[2010-11-30 12:06:58 - MyProject] Files:
... truncated ...
[2010-11-30 12:06:58 - MyProject] Src: C:\svn\MyProject\res\values\strings.xml
[2010-11-30 12:06:58 - MyProject] xml\settings.xml
[2010-11-30 12:06:58 - MyProject] Src: C:\svn\MyProject\res\xml\settings.xml
[2010-11-30 12:06:58 - MyProject] AndroidManifest.xml
[2010-11-30 12:06:58 - MyProject] Src: C:\svn\MyProject\AndroidManifest.xml
[2010-11-30 12:06:58 - MyProject] Including resources from package: C:\dev\android-sdk-windows\platforms\android-4\android.jar
[2010-11-30 12:06:58 - MyProject] applyFileOverlay for drawable
[2010-11-30 12:06:58 - MyProject] applyFileOverlay for layout
[2010-11-30 12:06:58 - MyProject] applyFileOverlay for anim
[2010-11-30 12:06:58 - MyProject] applyFileOverlay for xml
[2010-11-30 12:06:58 - MyProject] applyFileOverlay for raw
[2010-11-30 12:06:58 - MyProject] applyFileOverlay for color
[2010-11-30 12:06:58 - MyProject] applyFileOverlay for menu
... truncated ...
[2010-11-30 12:06:58 - MyProject] Writing symbols for class R.
[2010-11-30 12:06:58 - MyProject] Nothing to pre compile!
[2010-11-30 12:07:00 - MyProject] Refreshing resource folders.
[2010-11-30 12:07:00 - MyProject] Starting incremental Pre Compiler: Checking resource changes.
[2010-11-30 12:07:00 - MyProject] Nothing to pre compile!
直到最后一行,一切似乎都很好。打开了详细信息。
知道什么是错的吗?
感谢。
答案 0 :(得分:2)
删除项目然后清理并重新导入,解决了问题。
答案 1 :(得分:1)
这与我在R.drawable。*中无法识别的问题一起发生。我通过删除以下导入和清理我的项目来修复它。
import android.R;
希望这也解决了你的问题。