1
我檢查了很多答案,但沒有人幫助APP-release.apk顯示「解析錯誤:有一個problm分析應用」
我運行它的Android 5.1.1,以及在建。 gradle它是minSdkVersion 15,所以它應該工作。
我可以在同一臺設備上運行app-debug.apk,沒有任何問題。
我沒有重命名apk文件後,我已經在android studio中手動首次簽名。
應用插件: 'com.android.application'
android { compileSdkVersion 23 buildToolsVersion "23.0.3" defaultConfig { applicationId "com.example.raghav.pokemonfinder" minSdkVersion 15 targetSdkVersion 23 versionCode 1 versionName "1.0" } buildTypes { release { minifyEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } packagingOptions { exclude 'META-INF/LICENSE' exclude 'META-INF/LICENSE-FIREBASE.txt' exclude 'META-INF/NOTICE' } } dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:appcompat-v7:23.4.0' compile 'com.google.android.gms:play-services:9.0.2' compile 'com.android.support:design:23.4.0' apply plugin: 'com.google.gms.google-services' compile 'com.firebase:firebase-client-android:2.4.0' compile 'com.google.android.gms:play-services-location:9.0.2' compile 'me.sargunvohra.lib:pokekotlin:2.2.3' }
這裏是我的AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.raghav.pokemonfinder">
<!--
The ACCESS_COARSE/FINE_LOCATION permissions are not required to use
Google Maps Android API v2, but you must specify either coarse or fine
location permissions for the 'MyLocation' functionality.
-->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:name="Utils.PokeMonFinder"
android:allowBackup="true"
android:icon="@drawable/icon2"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/MyMaterialTheme">
<!--
The API key for Google Maps-based APIs is defined as a string resource.
(See the file "res/values/google_maps_api.xml").
Note that the API key is linked to the encryption key used to sign the APK.
You need a different API key for each encryption key, including the release key that is used to
sign the APK for publishing.
You can define the keys for the debug and release targets in src/debug/ and src/release/.
-->
<meta-data
android:name="com.google.android.geo.API_KEY"
android:value="@string/google_maps_key" />
<activity
android:name=".MapsActivity"
android:label="@string/title_activity_maps" />
<activity android:name=".MapsShowActivity" />
<activity
android:name=".SplashScreenActivity"
android:theme="@android:style/Theme.Light.NoTitleBar.Fullscreen">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".SubmitPokemon" />
<activity android:name=".PokemonDetailActivity" />
<activity
android:name=".HomeActivity"
android:label="@string/title_activity_home"
android:theme="@style/MyMaterialTheme" />
<activity android:name=".MyPokemonActivity" />
</application>
</manifest>
您在哪裏以及如何得到錯誤? –
@ s-hunter:我完成了我的應用程序,然後從工作室手動簽署了它,然後我嘗試在我的設備上安裝這個apk,然後我得到了這個錯誤 – MobiAppStudioz
同樣在我的設備上我有「從未知來源安裝」選中,所以這也不成問題 – MobiAppStudioz