0
对于一些未知的我的原因,Android工作室一直在调试模式下建立签名APK,因此我无法在谷歌Play商店发布它。Android工作室 - 持续生成调试签名APK
我把我所有的模块构建变量来发布,因为你可以在图像中看到上面。
我建立签署APK,按BUILD - >生成签名APK
我做构建类型选择释放,一旦生成APK,它甚至包含在其名称中“释放”。
将不胜感激的一些帮助,谢谢。
编辑:
AndroidManifest.xml中
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-sdk
android:minSdkVersion="15"
android:targetSdkVersion="16" />
<uses-feature android:glEsVersion="0x00020000" android:required="true"/>
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Theme.NoBackground" >
<activity
android:name=".ConstructionCityActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|mcc|mnc"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<!--Include the AdActivity configChanges and theme. -->
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"
android:theme="@android:style/Theme.Translucent" />
<!-- Required activities for playback of Vungle video Ads -->
<activity android:name="com.vungle.publisher.VideoFullScreenAdActivity"
android:configChanges="keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"/>
<activity android:name="com.vungle.publisher.MraidFullScreenAdActivity"
android:configChanges="keyboardHidden|orientation|screenSize|screenLayout|smallestScreenSize"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"/>
</application>
的build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.heavyfall.constructioncity"
minSdkVersion 15
targetSdkVersion 23
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/notice.txt'
exclude 'META-INF/ASL2.0'
}
buildTypes {
release {
minifyEnabled true
proguardFiles 'proguard-project.txt'
}
debug {
debuggable false
}
}
}
repositories {
maven {
name "Fyber's maven repo"
url "https://fyber.bintray.com/maven"
}
flatDir {
dirs "libs"
}
}
dependencies {
compile(name: 'heyzap-unified-platform-10.0.9', ext: 'aar')
compile 'com.google.firebase:firebase-core:9.6.1'
compile 'com.google.firebase:firebase-ads:9.6.1'
compile project(':andEngine')
compile project(':andEngineTexturePackerExtension')
compile project(':andEnginePhysicsBox2DExtension')
compile files('libs/bolts-android-1.2.1.jar')
compile files('libs/dagger-2.7.jar')
compile files('libs/javax.inject-1.jar')
compile files('libs/nineoldandroids-2.4.0.jar')
compile files('libs/Parse-1.10.3.jar')
compile files('libs/vungle-publisher-adaptive-id-4.0.3.jar')
}
apply plugin: 'com.google.gms.google-services'
尝试将其上传到Play商店时出现什么错误? “ – earthw0rmjim
”您上传了一个可调试的APK,出于安全原因,您需要先停用调试功能,然后才能在Google Play中发布它,详细了解可调试的APK。感谢您的回答 – Matim
请将您的Manifest和您的应用程序级gradle文件发布。 – earthw0rmjim