1
나는 많은 답변을 확인했지만 그들 중 누구도 내가 5.1.1 안드로이드를 실행하고, 빌드하고앱 release.apk "오류를 구문 분석하십시오 problm 구문 분석 응용 프로그램이"보여주는
도움이되지는. 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 : 내 앱을 완성한 다음 스튜디오에서 수동으로 서명하고 app-release.apk을 만든 다음 기기에이 apk를 설치하려고 시도한 다음이 오류가 발생했습니다. – MobiAppStudioz
내 기기에서도 "알 수없는 출처에서 설치"를 선택하여 문제가 없는지 확인하십시오. – MobiAppStudioz