2010-09-02 47 views
0

我建立并运行我的项目与1.5 SDK 但是,当我试图在安装2.2后运行我的项目。我得到这个错误。 请帮忙;这个错误是什么意思 ?我该如何解决它?错误:当我试图运行与2.2运行项目,然后它给出了错误

W/ResourceType(2680): Bad string block: string #8 extends to 1575, past end at 60 
W/ResourceType(2680): Bad string block: string #7 extends to 2075, past end at 60 
W/ResourceType(2680): Bad string block: string #6 extends to 1303, past end at 60 
W/ResourceType(2680): Bad string block: string #5 extends to 1299, past end at 60 
W/ResourceType(2680): Bad string block: string #4 extends to 1295, past end at 60 
W/ResourceType(2680): Bad string block: string #3 extends to 1553, past end at 60 
W/ResourceType(2680): Bad string block: string #2 extends to 1292, past end at 60 
W/ResourceType(2680): Bad string block: string #1 extends to 516, past end at 60 
W/ResourceType(2680): Bad string block: string #0 extends to 1029, past end at 60 
res\layout\chart.xml:2: error: No resource identifier found for attribute 'id' in package 'android' 
res\layout\chart.xml:2: error: No resource identifier found for attribute 'layout_width' in package 'android' 
res\layout\chart.xml:2: error: No resource identifier found for attribute 'layout_height' in package 'android' 
res\layout\chart.xml:2: error: No resource identifier found for attribute 'orientation' in package 'android' 
res\layout\chart.xml:9: error: No resource identifier found for attribute 'id' in package 'android' 
res\layout\chart.xml:9: error: No resource identifier found for attribute 'layout_width' in package 'android' 
res\layout\chart.xml:9: error: No resource identifier found for attribute 'layout_height' in package 'android' 
res\layout\chart.xml:9: error: No resource identifier found for attribute 'text' in package 'android' 
+0

请发表'chart.xml'的内容(我想你忘了前缀'android:') – WarrenFaith 2010-09-02 09:44:30

回答

1

您可能正在使用NetBeans,它使用2.1中的aapt和2.2中的JAR。

编辑

〜/ .netbean/6.9 /在一条线上build.properties

并查找 “AAPT” 与此类似:

platforms.Android_2.2___Google_APIs.aapt=/opt/android-sdk-linux_86/platforms/android-2.1/tools/aapt

然后更换 “的Android 2.1”与“android-8”,你应该完成。

+0

请[不要使用签名或标语](http://stackoverflow.com/faq#signatures)你的帖子。 – meagar 2010-12-05 05:15:34

+0

你是男人!你解决了我的问题。谢谢! – 2010-12-25 10:04:18

相关问题