Android 错误:当我试图用2.2运行项目时,它给出了错误

Android 错误:当我试图用2.2运行项目时,它给出了错误,android,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/ResourceT

我使用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'

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

编辑

~/.netbean/6.9/build.properties

并在类似于以下内容的行中查找“aapt”:

platforms.Android_2.2____谷歌_API.aapt=/opt/Android-sdk-linux_86/platforms/Android-2.1/tools/aapt


然后将“安卓-2.1”替换为“安卓-8”,你应该这样做。

请在你的帖子中发布
chart.xml
(我猜你忘了前缀
android:
)的内容。