错误:当我尝试使用2.2运行运行项目时,它会出错

时间:2010-09-02 09:29:22

标签: android

我使用1.5 SDK构建并运行我的项目 但是当我在安装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'

1 个答案:

答案 0 :(得分:1)

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

修改

〜/ .netbean / 6.9 / build.properties

并在与此类似的行中寻找“aapt”:

  

platforms.Android_2.2 ___ Google_APIs.aapt = /选择/ Android的SDK-linux_86 /平台/机器人-2.1 /工具/ AAPT

然后用“android-8”替换“android-2.1”,你应该完成。