APK上传到Play商店,得到0支持的设备,但没有错误
我要发布我的应用程序Play商店的Alpha版,但我正在逐渐0支持的设备,这是令人沮丧,因为我看不到的bug。
I am trying to publish an Alpha version of my app to the Play Store, but I am getting 0 supported devices and it is frustrating as I don't see the bug.
该项目是一个新的样式(gradle这个)和API声明和版本是在定义的build.gradle
The project is a new style (gradle) and the API declaration and versions are defined in the build.gradle.
您可以在这里 https://github.com/Coinomi/coinomi-android获取应用程序>
下面是我的清单文件:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.coinomi.wallet"
android:installLocation="internalOnly" >
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.NFC" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.BROADCAST_STICKY" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.BLUETOOTH" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.hardware.nfc"
android:required="false" />
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.front"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.autofocus"
android:required="false" />
<uses-feature
android:name="android.hardware.camera.flash"
android:required="false" />
<uses-feature
android:name="android.hardware.screen.landscape"
android:required="false" />
<uses-feature
android:name="android.hardware.bluetooth"
android:required="false" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<application
android:name=".WalletApplication"
android:allowBackup="false"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme" >
<activity
android:name=".ui.WalletActivity"
android:label="@string/app_name"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ui.IntroActivity"
android:theme="@style/NoTitleBar"
android:screenOrientation="portrait"
android:windowSoftInputMode="adjustResize" >
</activity>
<activity
android:name=".ui.ScanActivity"
android:configChanges="orientation|keyboard|keyboardHidden"
android:theme="@style/NoTitleBar"
android:screenOrientation="landscape"
android:stateNotNeeded="true"
android:windowSoftInputMode="stateAlwaysHidden" />
<service
android:name=".service.CoinServiceImpl"
android:exported="false" />
</application>
</manifest>
我你有一个想法,请帮助,因为我从昨天卡住了。
I you have an idea please help because I am stuck from yesterday.
谢谢!
最后,它是一个依赖编译com.lambdaworks:scrypt:1.4.0
这是造成的问题。
Finally it was a dependency compile 'com.lambdaworks:scrypt:1.4.0'
that was causing the issue.
如果你偶然发现这个问题,检查是否在APK详细信息对话框在谷歌,如果你有玩:
If you stumble upon this issue, check if in the APK DETAILS dialog in Google Play if you have:
的本地平台的x86_64 的
这是,我认为,这个问题,因为当我删除了依赖,去除部分x86_64的,得到了6814支持的设备。
This was, I think, the problem because when I removed the dependency, the x86_64 part was removed and got 6814 supported devices.
更新
问题的根源是,依赖已经pcompiled的.so库,但没有对Android原生$ P $。我不得不从源代码的平台与NDK重新编译:armeabi-V7A和armeabi
The root of the problem was that the dependency had native precompiled .so libraries but none for Android. I had to recompile with NDK from source for the platforms: armeabi-v7a and armeabi