I can actually not Generate Signed Apk files in Android Studio.
When I click the point in the menu Gradle is running and running. The longest time was 30min after that I killed the process. The unsigned apk works very good.
If have tried it with gradlew assembleRelease --debug
and it freeze by this point:
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...
Does anyone had the same problem or how I can fix it?
Please help :-(
Here my Gradle File:
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'
}