简体   繁体   English

应用程序在我的设备上运行,但当我将其发布到 Google Play 商店进行 Beta 测试时不起作用

[英]App working on my device but when I publish it to Google Play Store for Beta Testing not working

Yesterday I published my app on the Google Play Store as Beta Testing.昨天我在 Google Play 商店发布了我的应用程序作为 Beta 测试。 When I run it from Eclipse on my device it works great, but when I download it from the Google Play Store it doesn't work.当我在我的设备上从 Eclipse 运行它时它运行良好,但是当我从 Google Play 商店下载它时它不起作用。

The first screen is an Splash Fragment which shows the Facebook Login button, when I click it it asks for the permissions and then it goes back to the Splash Fragment (It should hide the Fragment).第一个屏幕是一个显示 Facebook 登录按钮的 Splash Fragment,当我点击它时它会要求权限,然后它返回到 Splash Fragment(它应该隐藏 Fragment)。

I tested it on another device and it hides the Splash Fragment, enters to the MainActivity and it tells me that I am not online.我在另一台设备上对其进行了测试,它隐藏了 Splash Fragment,进入 MainActivity 并告诉我我不在线。

I don't underestand why it does work when I run it from my Eclipse but it doesn't work when I run the version that I download from the Google Play Store.我不明白为什么当我从 Eclipse 运行它时它可以工作,但是当我运行从 Google Play 商店下载的版本时它不起作用。

Here is my Manifest:这是我的清单:

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

<uses-sdk
    android:minSdkVersion="7"
    android:targetSdkVersion="15" />

<permission
    android:name="com.tokensapp.tokens.permission.MAPS_RECEIVE"
    android:protectionLevel="signature" />

<uses-permission android:name="com.tokensapp.tokens.permission.MAPS_RECEIVE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="com.google.android.providers.gsf.permission.READ_GSERVICES" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" >
</uses-permission>
<uses-permission android:name="android.permission.GET_TASKS" >
</uses-permission>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" >
</uses-permission>
<uses-permission android:name="android.permission.BLUETOOTH" >
</uses-permission>

<uses-feature
    android:glEsVersion="0x00020000"
    android:required="true" />

<application
    android:name=".ScrumptiousApplication"
    android:icon="@drawable/ic_launcher"
    android:label="@string/tokens" >
    <uses-library
        android:name="com.google.android.maps"
        android:required="true" />

    <service android:name="com.tokensapp.tokens.NotificationService" />

    <activity
        android:name="com.apphance.android.LauncherActivity"
        android:theme="@android:style/Theme.Translucent.NoTitleBar" >
    </activity>
    <activity
        android:name="com.apphance.android.ui.LoginActivity"
        android:launchMode="singleInstance" >
    </activity>
    <activity
        android:name="com.apphance.android.ui.TestCycleActivity"
        android:launchMode="singleInstance" >
    </activity>
    <activity
        android:name="com.apphance.android.ui.ProblemActivity"
        android:configChanges="orientation"
        android:launchMode="singleInstance" >
    </activity>
    <activity
        android:name="com.tokensapp.tokens.ActSplash"
        android:label="@string/tokens"
        android:noHistory="true"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar" >
    </activity>
    <activity
        android:name="com.tokensapp.tokens.ActLoginFb"
        android:label="@string/tokens"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar" />
    <activity
        android:name="com.tokensapp.tokens.ActWelcome"
        android:label="@string/tokens"
        android:noHistory="true"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar" />
    <activity
        android:name="com.tokensapp.tokens.ActMain"
        android:label="@string/tokens"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar" />
    <activity
        android:name="com.tokensapp.tokens.ActMain2"
        android:label="@string/tokens"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar" >
    </activity>
    <activity
        android:name="com.tokensapp.tokens.ActProfile"
        android:label="@string/tokens"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar" >
    </activity>
    <activity
        android:name="com.tokensapp.tokens.ActCompose"
        android:label="@string/tokens"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar"
        android:windowSoftInputMode="stateAlwaysHidden" />
    <activity
        android:name="com.tokensapp.tokens.ActViewToken"
        android:label="@string/tokens"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar" />
    <activity
        android:name="com.tokensapp.tokens.ActSettings"
        android:label="@string/tokens"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar" />
    <activity
        android:name="com.tokensapp.tokens.ActFriendChooser"
        android:label="@string/tokens"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar" />
    <activity
        android:name="com.tokensapp.tokens.BasicMapActivity"
        android:label="@string/title_activity_main" />

    <receiver android:name="com.tokensapp.tokens.BootReceiver" >
        <intent-filter>
            <action android:name="android.intent.action.BOOT_COMPLETED" />
            <action android:name="android.intent.action.QUICKBOOT_POWERON" />
        </intent-filter>
    </receiver>

    <meta-data
        android:name="com.google.android.maps.v2.API_KEY"
        android:value="@string/maps_key" />
    <meta-data
        android:name="com.facebook.sdk.ApplicationId"
        android:value="@string/app_id" />

    <activity
        android:name="com.tokensapp.tokens.ActLoginFb2"
        android:label="@string/tokens"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar" >
    </activity>
    <activity
        android:name="com.facebook.LoginActivity"
        android:label="@string/tokens"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar" >
    </activity>
    <activity
        android:name="com.tokensapp.tokens.MainActivity"
        android:label="@string/tokens"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar" >
        <intent-filter>
            <action android:name="com.apphance.android.LAUNCH" >
            </action>

            <category android:name="android.intent.category.DEFAULT" >
            </category>
        </intent-filter>
    </activity>
    <activity
        android:name="PickerActivity"
        android:label="@string/app_name" />
    <activity
        android:name="com.tokensapp.tokens.ActMyTokens"
        android:label="@string/tokens"
        android:screenOrientation="portrait"
        android:theme="@android:style/Theme.NoTitleBar" >
    </activity>

    <activity-alias
        android:name=".ApphanceLauncherActivity"
        android:targetActivity="com.apphance.android.LauncherActivity" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" >
            </action>

            <category android:name="android.intent.category.LAUNCHER" >
            </category>
        </intent-filter>
    </activity-alias>
</application>

<instrumentation
    android:name="com.apphance.android.ApphanceInstrumentation"
    android:targetPackage="com.tokensapp.tokens" >
</instrumentation>

Google Maps requires that the API key be built to the Application Signing Key. Google Maps 要求将 API 密钥构建为应用程序签名密钥。 That means that the Maps API key you use for debugging (running through Eclipse) will be different than the Maps API key which will work on apps exported from Eclipse and signed to post on the Play Store.这意味着您用于调试(通过 Eclipse 运行)的 Maps API 密钥将不同于 Maps API 密钥,后者适用于从 Eclipse 导出并签名发布到 Play 商店的应用程序。 All you need to do is get an updated Maps API key using the same key you sign your app with!您需要做的就是使用与您签署应用程序的密钥相同的密钥获取更新的 Maps API 密钥!

Also, see this for a method of creating one Maps API key for both Debug and Release versions of your signed package.另外,请参阅为您签名的软件包的Debug和Release版本创建一个地图API密钥的方法。

确保您的 Facebook 应用程序处于实时模式。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 当我在 Android 设备上部署应用程序但不是通过 Play 商店部署时,谷歌地图不起作用 - google map not working when i deploy the app in android device but not via play store Google Play alpha / beta测试网址无效 - Google play alpha/beta testing url is not working 自动将 Beta Android 应用发布到 Google Play 商店 - Automatic publish Beta Android app to the Google Play store 如何获取我的Android应用的Google Play商店Beta测试版的更新警报 - How to get update alert for google play store beta testing version of my android app 我在Play商店中的android应用说您的设备与该版本不兼容,但是当我尝试从apk安装它时 - My android app in play store says your device isn't compatible with the version, but when i try to install it from apk it is working 将Android应用程序用户添加到Google Play商店的Beta测试列表中 - Add an Android app user to beta testing list on Google play store 如何在Google Play商店中删除Beta测试应用程序? - How to delete a beta testing app in google play store? 使用 Android Studio Android 应用程序在设备上运行 Google plus 但从 Play 商店下载时不起作用 - Using Android Studio Android app Working Google plus on device but when downloaded from play store Not Work 当我的应用仍处于定时发布状态时,如何在Google Play中发布测试版? - How can I publish a beta in Google Play while my app is still in Timed publishing? 测试admob在Google Play上发布之前在我的设备上添加 - Testing admob adds on my device pre google play publish
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM