Ich bin nicht in der Lage, signierte Apk in Android Studio zu generieren. Sein Wurffehler wie - Information: Gradle Aufgaben [: avakaash: assembleRelease] Fehler: java.lang.NullPointerException (keine Fehlermeldung) Information: BUILD FAILED.NullPointerException beim Generieren von signierten Apk in Android Studio
Es funktioniert gut beim Debuggen und Ausführen von Anwendung auf Gerät und Emulator. Ich kann also keine signierte Apk generieren. mein Projekt gradle sieht aus wie -
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '25.0.0'
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.inbridge.avakaash"
minSdkVersion 16
targetSdkVersion 25
multiDexEnabled true
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
buildTypes {
release {
minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
dexOptions {
javaMaxHeapSize "4g"
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile project(':library')
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile project(':payUMoneysdk')
compile files('libs/httpclient-win-4.4.1.jar')
compile files('libs/httpmime-4.2.3.jar')
compile files('libs/gcm.jar')
compile files('libs/itextpdf-5.5.9.jar')
compile files('libs/mail.jar')
compile files('libs/additionnal.jar')
compile files('libs/activation.jar')
compile 'com.android.support:appcompat-v7:25.1.1'
compile 'com.google.android.gms:play-services:10.0.1'
compile 'com.google.android.gms:play-services-auth:10.0.1'
compile 'com.google.android.gms:play-services-analytics:10.0.1'
compile 'com.google.firebase:firebase-messaging:10.0.1'
compile 'com.google.firebase:firebase-core:10.0.1'
compile 'com.google.firebase:firebase-ads:10.0.1'
compile 'com.google.firebase:firebase-database:10.0.1'
compile 'com.android.support:multidex:1.0.1'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.facebook.android:facebook-android-sdk:4.6.0'
compile 'com.android.support:support-v4:25.1.1'
}
apply plugin: 'com.google.gms.google-services'
und Haupt gradle Blick wie-
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.google.gms:google-services:3.0.0'
}
}
allprojects {
repositories {
jcenter()
mavenCentral()
}
}
geschossen und gradle Konsole Report- mir bitte helfen, dieses Problem zu lösen Fehler, danke im Voraus.
Ihre volle logcat zeigen. sauber und neu aufbauen. Sie können 'buildToolsVersion '25 .0.1'' –
Ausnahme wird klar erwähnt. Klicken Sie auf Jetzt synchronisieren, warten Sie, bis der Vorgang abgeschlossen ist. – SachinSarawgi
können Sie mehr Details in Gradle-Konsole –