无法在Android Studio上生成发布签名的apk

时间:2015-08-29 09:58:07

标签: android android-studio

我实际上无法在Android Studio中生成签名的Apk文件。

单击菜单中的点Gradle正在运行并运行。最长的时间是在我杀死这个过程后30分钟。 unsigned apk非常好用。

如果已经使用gradlew assembleRelease --debug进行了尝试,并且此时会冻结:

writing android/support/; size 0...
writing android/support/v7/; size 0...
writing android/support/v7/recyclerview/; size 0...
writing android/support/v7/util/; size 0...
writing android/support/v7/widget/; size 0...
writing android/support/v7/widget/helper/; size 0...
writing android/support/v7/widget/util/; size 0...
writing classes.dex; size 291624...

有没有人遇到同样的问题或我如何解决它?

请帮忙: - (

这是我的Gradle文件:

apply plugin: 'com.android.application'

android {

useLibrary 'org.apache.http.legacy'

compileSdkVersion 23
buildToolsVersion '23.0.0'
defaultConfig {
applicationId "mypackage"
minSdkVersion 14
targetSdkVersion 21
versionCode 23
versionName "1.5.1"

}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}

}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.google.android.gms:play-services-maps:7.8.0'
compile 'com.google.android.gms:play-services-location:7.8.0'
compile 'com.afollestad:material-dialogs:0.7.8.1'
compile('com.mikepenz:materialdrawer:4.0.0@aar') {
transitive = true
}
compile 'com.mikepenz:google-material-typeface:1.2.0.1@aar'
compile 'com.github.paolorotolo:appintro:3.2.0'
compile 'com.android.support:appcompat-v7:23.0.0'
compile 'com.android.support:design:23.0.0'
compile 'com.android.support:cardview-v7:23.0.0'
}

0 个答案:

没有答案