每当我将我的应用apk直接放到手机上它工作正常并且不会崩溃但是当我上传到Google Play并从那里下载时,它会在启动时崩溃,有时会在应用程序中随机崩溃。< / p>
不知道是什么导致了这个问题,该应用程序适用于其他人的Android手机,但在我的HTC Desire 530上,它一直在崩溃。
有没有人有任何类似的问题,有没有人知道我在哪里可以找到这个问题?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="preferExternal" package="com.gemproduction" android:versionCode="46" android:versionName="1.14">
<uses-sdk android:minSdkVersion="17" android:targetSdkVersion="27" />
<application android:label="Gem" android:largeHeap="@bool/largeheap" android:icon="@drawable/icon" android:allowBackup="false">
<receiver android:name="com.onesignal.GcmBroadcastReceiver" android:permission="com.google.android.c2dm.permission.SEND">
<intent-filter>
<action android:name="com.google.android.c2dm.intent.RECEIVE" />
<category android:name="android" />
</intent-filter>
</receiver>
</application>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="android.permission.CALL_PRIVILEGED" />
<uses-permission android:name="android.permission.PROCESS_OUTGOING_CALLS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.MODIFY_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<permission android:name="android.permission.C2D_MESSAGE" android:protectionLevel="signature" />
<uses-permission android:name="android.permission.C2D_MESSAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.MANAGE_DOCUMENTS" />
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" />
从Google Play登录:
#00 pc 000000000004d3a2 /data/app/com.gemproduction-1/lib/arm /libsqlcipher.so (validate_license_key+33)
#01 pc 000000000004d883 /data/app/com.gemproduction-1/lib/arm/libsqlcipher.so (sqlcipher_license_key_status+66)
#02 pc 000000000005f48f /data/app/com.gemproduction-1/lib/arm/libsqlcipher.so
#03 pc 0000000000092bff /data/app/com.gemproduction-1/lib/arm/libsqlcipher.so
#04 pc 0000000000085459 /data/app/com.gemproduction-1/lib/arm/libsqlcipher.so
#05 pc 000000000007fa93 /data/app/com.gemproduction-1/lib/arm/libsqlcipher.so
#06 pc 000000000005abcb /data/app/com.gemproduction-1/lib/arm/libsqlcipher.so
#07 pc 000000000007ecdb /data/app/com.gemproduction-1/lib/arm/libsqlcipher.so
#08 pc 000000000005a2bb /data/app/com.gemproduction-1/lib/arm/libsqlcipher.so
#09 pc 000000000005a41b /data/app/com.gemproduction-1/lib/arm/libsqlcipher.so
#10 pc 000000000005a4d1 /data/app/com.gemproduction-1/lib/arm/libsqlcipher.so (sqlite3_prepare16_v2+16)
#11 pc 00000000000006c0 <unknown>
我没有使用ProGuard。
答案 0 :(得分:1)
您的应用是否需要权限?
如果您的答案是肯定的,请尝试手动添加,但请记住在您的应用中请求权限。
为什么会这样?或者为什么有必要?
当您通过apk应用程序安装应用程序时,所有权限都被授予,否则,通过Google Play,同样不会发生。