【问题标题】:Google Play rejects APK based on package nameGoogle Play 根据包名拒绝 APK
【发布时间】:2014-04-15 12:16:46
【问题描述】:

一直在麻省理工学院的 App Inventor 中构建一个应用程序(我知道在这个网站上)。我昨天将第一个版本上传到了 Google Play,一切都很顺利。今天早上尝试将新的 APK 推送到生产环境,但出现此错误;

http://i.stack.imgur.com/GzBD9.png

(抱歉没有足够的代表来发布图片)

一头雾水,我继续反编译了APK,得到了这个;

   <?xml version="1.0" encoding="utf-8"?>
<manifest android:versionCode="2" android:versionName="1.0.1" package="appinventor.ai_benjamdavidstocker.IGSoundboard"
  xmlns:android="http://schemas.android.com/apk/res/android">
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.VIBRATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <application android:label="IGSoundboard" android:icon="@drawable/ya" android:debuggable="false">
        <activity android:name=".Screen1" android:configChanges="keyboardHidden|orientation" android:windowSoftInputMode="stateHidden">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="appinventor.ai_benjamdavidstocker.IGSoundboard.Board" android:configChanges="keyboardHidden|orientation" android:windowSoftInputMode="stateHidden">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
        </activity>
        <activity android:name="com.google.appinventor.components.runtime.ListPickerActivity" android:screenOrientation="behind" android:configChanges="keyboardHidden|orientation" />
        <activity android:name="com.google.appinventor.components.runtime.WebViewActivity" android:screenOrientation="behind" android:configChanges="keyboardHidden|orientation">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
            </intent-filter>
        </activity>
    </application>
</manifest>

如您所见,package="appinventor.ai_benjamdavidstocker.IGSoundboard" 与 Google Play 请求的匹配。那么有什么问题呢?

【问题讨论】:

    标签: android google-play package publish package-name


    【解决方案1】:

    SoundBoard 中的大写字母在 Board 上有所不同

    而不是

    appinventor.ai_benjamdavidstocker.IGSoundboard
    

    应该是

    appinventor.ai_benjamdavidstocker.IGSoundBoard
    

    大写字母“B”的 IGSoundBoard

    【讨论】:

    • 欢迎您,当我长时间编程时,这种事情总是发生在我身上:)
    • 如果包是package="appinventor.ai_benjamdavidstocker"怎么办? gradle(Android Studio)中的applicationId是否只是“appinventor.ai_benjamdavidstocker”?
    猜你喜欢
    • 1970-01-01
    • 2017-07-07
    • 1970-01-01
    • 1970-01-01
    • 2017-02-27
    • 1970-01-01
    • 1970-01-01
    • 2019-12-28
    • 1970-01-01
    相关资源
    最近更新 更多