1
私は多くの答えをチェックしているが、それらのどれもが、私はそれがアンドロイド5.1.1実行している、とのビルドでいアプリ-release.apkは「解析エラー:アプリケーションを解析problmがあります」と表示
を助けません。それは動作するはずですので、それは15としてminSdkVersionです。
app-debug.apkを同じデバイスで問題なく実行できます。
その後、私はapkファイルの名前を変更していません。私はアンドロイドスタジオで手動で初めて署名しました。
は、プラグインを適用する: '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:私は自分のアプリを完成させてから、すべてのinstrustを追って手動でスタジオからサインインしてapp-release.apkを作りました。このapkを私のデバイスにインストールしようとしましたが、このエラーが発生しました – MobiAppStudioz
また、 「不明なソースからインストールする」をチェックしてください – MobiAppStudioz