wumke / react-native-exit-app

Exit,close,kill,shutdown app completely for React Native on iOS and Android.
MIT License
388 stars 102 forks source link

Execution failed for task ':react-native-exit-app:verifyReleaseResources'. #24

Closed ibrhm-mnf closed 5 years ago

ibrhm-mnf commented 5 years ago

An error happened while generating apk file using './gradlew assembleRelease' command.

App perfectly exits when tested using a virtual machine.

capturea

autotrof commented 5 years ago

i get that message too

wumke commented 5 years ago

I've not seen this one myself yet, did you try getting more info out of the logs? --stacktrace or --debug, as the logs tell us. Anyone found more clues or possible reasons for the error or solutions?

(Also I see you use windows, which I've never used to develop Android apps.)

Samykills commented 5 years ago

Hi,

Those still having this issue, check https://github.com/wumke/react-native-exit-app/pull/25

vitormomberg commented 5 years ago

I have the same problem, the #25 work for me

redshadow0 commented 5 years ago

I solved changing build.gradle of ./node_modules/react-native-exit-app/android

`apply plugin: 'com.android.library'

android { compileSdkVersion 28 buildToolsVersion '28.0.3'

defaultConfig {
    minSdkVersion 16
    targetSdkVersion 28
    versionCode 2
    versionName "1.1"
    ndk {
        abiFilters "armeabi-v7a", "x86"
    }
}
lintOptions {
   warning 'InvalidPackage'
}

}

dependencies { compile 'com.facebook.react:react-native:+' } `

kpratik2015 commented 5 years ago

Not sure why this still hasn't been merged. It prevented me from making a build.

wumke commented 5 years ago

merged now (I'm to busy at the moment and forgot to merge!)... use latest github commit instead of npm version to get latest changes.