我完成了我的项目,但现在它出错了:<attr name =“targetClass”> </attr>中的未知格式名称'string'

时间:2010-10-27 09:24:09

标签: android

某些行的副本....:

        eclipse.buildId=
        java.version=1.6.0_18
        java.vendor=Sun Microsystems Inc.
        BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=tr_TR
        Framework arguments:  -product org.eclipse.epp.package.pulsar.product
        Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.pulsar.product

        This is a continuation of log file D:\Huseyin\PROJECTS\Android\.metadata\.bak_0.log
        Created Time: 2010-10-27 12:15:23.242


        Error
        Wed Oct 27 12:15:24 EEST 2010
        Unknown format name 'string' in <attr name="targetClass">, file 'D:\Huseyin\TOOLS\Android\android-sdk-windows\platforms\android-4\data\res\values\attrs_manifest.xml'.

        java.lang.IllegalArgumentException: No enum const class com.android.ide.eclipse.adt.editors.layout.gscripts.IAttributeInfo$Format.STRİNG
        at java.lang.Enum.valueOf(Unknown Source)
        at com.android.ide.eclipse.adt.editors.layout.gscripts.IAttributeInfo$Format.valueOf(Unknown Source)
        at com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseAttributeTypes(Unknown Source)
        at com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseAttr(Unknown Source)
        at com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseDeclaredStyleable(Unknown Source)
        at com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseResources(Unknown Source)
        at com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.preload(Unknown Source)
        at com.android.ide.eclipse.adt.internal.sdk.AndroidTargetParser.run(Unknown Source)
        at com.android.ide.eclipse.adt.internal.sdk.Sdk$5.run(Unknown Source)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)


    eclipse.buildId=
    java.version=1.6.0_18
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=tr_TR
    Framework arguments:  -product org.eclipse.epp.package.pulsar.product
    Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.pulsar.product

    This is a continuation of log file D:\Huseyin\PROJECTS\Android\.metadata\.bak_0.log
    Created Time: 2010-10-27 12:15:23.242


    Error
    Wed Oct 27 12:15:24 EEST 2010
    Unknown format name 'string' in <attr name="data">, file 'D:\Huseyin\TOOLS\Android\android-sdk-windows\platforms\android-4\data\res\values\attrs_manifest.xml'.

    java.lang.IllegalArgumentException: No enum const class com.android.ide.eclipse.adt.editors.layout.gscripts.IAttributeInfo$Format.STRİNG
    at java.lang.Enum.valueOf(Unknown Source)
    at com.android.ide.eclipse.adt.editors.layout.gscripts.IAttributeInfo$Format.valueOf(Unknown Source)
    at com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseAttributeTypes(Unknown Source)
    at com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseAttr(Unknown Source)
    at com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseDeclaredStyleable(Unknown Source)
    at com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseResources(Unknown Source)
    at com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.preload(Unknown Source)
    at com.android.ide.eclipse.adt.internal.sdk.AndroidTargetParser.run(Unknown Source)
    at com.android.ide.eclipse.adt.internal.sdk.Sdk$5.run(Unknown Source)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)




    eclipse.buildId=
java.version=1.6.0_18
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=tr_TR
Framework arguments:  -product org.eclipse.epp.package.pulsar.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.pulsar.product

This is a continuation of log file D:\Huseyin\PROJECTS\Android\.metadata\.bak_0.log
Created Time: 2010-10-27 12:15:23.242


Error
Wed Oct 27 12:15:24 EEST 2010
Unknown format name 'integer' in <attr name="updatePeriodMillis">, file 'D:\Huseyin\TOOLS\Android\android-sdk-windows\platforms\android-4\data\res\values\attrs.xml'.

java.lang.IllegalArgumentException: No enum const class com.android.ide.eclipse.adt.editors.layout.gscripts.IAttributeInfo$Format.İNTEGER
at java.lang.Enum.valueOf(Unknown Source)
at com.android.ide.eclipse.adt.editors.layout.gscripts.IAttributeInfo$Format.valueOf(Unknown Source)
at com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseAttributeTypes(Unknown Source)
at com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseAttr(Unknown Source)
at com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseDeclaredStyleable(Unknown Source)
at com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.parseResources(Unknown Source)
at com.android.ide.eclipse.adt.internal.resources.AttrsXmlParser.preload(Unknown Source)
at com.android.ide.eclipse.adt.internal.sdk.AndroidTargetParser.run(Unknown Source)
at com.android.ide.eclipse.adt.internal.sdk.Sdk$5.run(Unknown Source)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

2 个答案:

答案 0 :(得分:4)

这是因为你有一个土耳其操作系统。我也有同样的问题。字符串在土耳其语操作系统中被感知为STRİNG而不是STRING!所以区别在于我和我......

答案 1 :(得分:1)

您可能会错误地转换某些变量,或者未正确声明它们。

您可以发布代码片段吗?