错误而上传的APK Android电子市场电子市场、错误、上传、APK

2023-09-05 07:40:30 作者:ツ倾听花落声↘

我想我的应用程序添加到Android Market。但我面临着以下错误:

I am trying to add my app to the android market. but i am facing the following error:

的文件是无效的:W /的ResourceType(17963):未能获得为0x7f050003(T = 4 E = 3)项中包0(错误-75)错误让'机器人:图标属性:属性是不是一个字符串值

我的清单文件是:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.shaer.Hadith"
    android:versionCode="1"
    android:versionName="1.0" >

    <uses-sdk android:minSdkVersion="8" />

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity
            android:label="@string/app_name"
            android:name=".HadithActivity" 
            android:screenOrientation="portrait">"
            <intent-filter >
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity
            android:name=".HadithsList">
        </activity>
     <activity
            android:name=".Hadith">
        </activity>   
    </application>
</manifest>

ic_launcher被包括在解析度/抽拉-HDPI,RES /抽拉-LDPI和解析度/抽拉-MDPI目录。

"ic_launcher" is included in the "res/drawable-hdpi", "res/drawable-ldpi" and "res/drawable-mdpi" directories.

我跟着这个职位,但它并没有为我工作。 "ERROR获得机器人:图标属性:属性不是一个字符串值&QUOT;试图上传到Android Market 时

I followed this post but it didn't work for me. "ERROR getting 'android:icon' attribute: attribute is not a string value" when trying to upload to the Android Market

感谢很多提前。

我创建了一个RES /绘制目录,并在里面加了我的图标ic_launcher,但仍然没有什么区别。

I created a "res/drawable" directory and added my icon "ic_launcher" in it but still no difference.

推荐答案

最后,已经解决了。

该应用程序定位于两种语言。所以,我有三个字符串的文件(/res/values​​/strings.xml,/res/values​​-en/strings.xml和/res/values​​-fr/stings.xml)。

The app was localized in two languages. So, I had three string file ("/res/values/strings.xml", "/res/values-en/strings.xml" and "/res/values-fr/stings.xml").

我在这两个变量定义的英语和法语字符串的文件。该程序运行正常,因为我试图在英语和法语模拟器。

I defined variables in the two the english and french string files. The program worked fine as i tried it on english and french emulators.

但一些字符串没有在默认的strings.xml文件中定义!!!!

but some strings weren't defined in the default strings.xml file!!!!

这是一个愚蠢的错误,但是从Android Market的错误会令人误解=)

It is a silly mistake but the error from the android market is misleading =)

希望这个答案可以帮助一些新的开发人员(像我=)),并节省时间一些时间

hope this answer will help some new developers (like me =) ) and save time some time

 
精彩推荐
图片推荐