AAPT工具扼流圈一个全新的Android项目 [英] Aapt tool chokes on a brand new Android project
本文介绍了AAPT工具扼流圈一个全新的Android项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
此行为已被复制上既是一个命令行和一个Eclipse的新项目。我没碰过的东西。
This behavior has been reproduced on both a command-line and an eclipse new project. I have not touched a thing.
aapt p -M AndroidManifest.xml -S res -v
Locale/Vendor pairs:
/
/
/
/
Files:
drawable-hdpi/icon.png
Src: res/drawable-hdpi/icon.png
drawable-ldpi/icon.png
Src: res/drawable-ldpi/icon.png
drawable-mdpi/icon.png
Src: res/drawable-mdpi/icon.png
layout/main.xml
Src: res/layout/main.xml
values/strings.xml
Src: res/values/strings.xml
AndroidManifest.xml
Src: AndroidManifest.xml
applyFileOverlay for drawable
applyFileOverlay for layout
applyFileOverlay for anim
applyFileOverlay for animator
applyFileOverlay for interpolator
applyFileOverlay for xml
applyFileOverlay for raw
applyFileOverlay for color
applyFileOverlay for menu
applyFileOverlay for mipmap
(new resource id icon from res/drawable-hdpi/icon.png)
(new resource id icon from res/drawable-ldpi/icon.png)
(new resource id icon from res/drawable-mdpi/icon.png)
(new resource id main from res/layout/main.xml)
res/layout/main.xml:2: error: No resource identifier found for attribute 'orientation' in package 'android'
res/layout/main.xml:2: error: No resource identifier found for attribute 'layout_width' in package 'android'
res/layout/main.xml:2: error: No resource identifier found for attribute 'layout_height' in package 'android'
res/layout/main.xml:7: error: No resource identifier found for attribute 'layout_width' in package 'android'
res/layout/main.xml:7: error: No resource identifier found for attribute 'layout_height' in package 'android'
res/layout/main.xml:7: error: No resource identifier found for attribute 'text' in package 'android'
在64位的Ubuntu运行Android平台的工具版本3 2.3.3 SDK。
On 64-bit Ubuntu running Android Platform-Tools version 3 with 2.3.3 SDK.
感谢您的帮助!大部分AP preciated!
Thanks for your help! Much appreciated!
推荐答案
您没有包括Android框架资源。使用-I选项用在哪里可以找到的框架资源.apk文件的路径。
You are not including the Android framework resources. Use the -I option with the path of where to find the framework resources .apk.
这篇关于AAPT工具扼流圈一个全新的Android项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文