Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dont work Permission_handler in release mode #406

Closed
1 task
MonsterDKing opened this issue Oct 27, 2020 · 13 comments
Closed
1 task

Dont work Permission_handler in release mode #406

MonsterDKing opened this issue Oct 27, 2020 · 13 comments
Labels
P2 Important issues not at the top of the work list. platform: android Issue is related to the Android platform. status: closed (missing info) Indicates the issue was automatically closed due to a lack of information. status: needs more info We need more information before we can continue work on this issue. type: bug Something isn't working

Comments

@MonsterDKing
Copy link

馃悰 Bug Report

Expected behavior

that such currently in debug mode works perfectly but at the moment of launching a release the allow_handler is totally without response

Reproduction steps

Build apk
install apk
Freezing

Configuration

image
image

Version: 1.x
permission_handler: ^5.0.1+1

Platform:

  • 馃摫 iOS
  • [x ] 馃 Android

Example :

image

i have this logs in debug mode all execute correctly

but in release mode

nothing returns

@ashleymooney123
Copy link

I am having the same issue! Everything works in debug mode (android simulator & syncing app too my iPhone) but not when I upload to AppStore.

@kustraslawomir
Copy link

Same issue here!

@MonsterDKing
Copy link
Author

help ?

@ashleymooney123
Copy link

Any news or suggestions to try?

@vitoramerico
Copy link

Any news or suggestions to try?

try to do that in gradle.properties
android.enableR8=true
change to
android.enableR8=false

@Eliander
Copy link

Same problem, works perfectly in debug mode, no response in release mode.

@jhonantanErnane
Copy link

jhonantanErnane commented Nov 12, 2020

try to do that in gradle.properties
android.enableR8=true
change to
android.enableR8=false

thank you so much!!! I was searching for two days for any possible solutions, and was the only way that worked on my project.

@ktos
Copy link

ktos commented Jan 10, 2021

It looks like it's some problem with minification/shrinking/ProGuard.

Solved it with:

minifyEnabled false
useProguard false
shrinkResources false

added to release build type in android/app/build.gradle.

@simone40love
Copy link

Same issue. Using Visual Studio Code.

android.enableR8=false doesn't work.

I don't use proguard.

Please advise,

@vitoramerico
Copy link

this should solve

1- change this in android/gradle.properties
org.gradle.jvmargs=-Xmx1536M
android.useAndroidX=true
android.enableJetifier=true

2- add this in android/app/build.gradle
buildTypes {
release {
minifyEnabled false
useProguard false
shrinkResources false
}
}

3 - (optional) my versions in android/app/build.gradle
compileSdkVersion 30
minSdkVersion 21
targetSdkVersion 30

4 - version of the package i use
permission_handler: ^5.1.0+2

@erayhamurlu
Copy link

2- add this in android/app/build.gradle
buildTypes {
release {
minifyEnabled false
useProguard false
shrinkResources false
}
}

work fine Thanks

@JDDV
Copy link
Contributor

JDDV commented Apr 13, 2021

I tried to reproduce the same issue by running the example app in release mode on a Samsung S20 FE (Android 11), I could not reproduce the issue though, the app didn't freeze. I used the newest version of the plug-in (version: ^6.1.1). Please let us know if the solutions mentioned here above don't work and this is still an issue that occurs. Thanks in advance!

@JeroenWeener JeroenWeener added platform: android Issue is related to the Android platform. status: needs more info We need more information before we can continue work on this issue. type: bug Something isn't working P2 Important issues not at the top of the work list. labels Aug 17, 2023
@github-actions
Copy link

github-actions bot commented Sep 6, 2023

Without additional information, we are unfortunately not able to resolve this issue. Therefore, we reluctantly closed this issue for now. If you run into this issue later, feel free to file a new issue with a reference to this issue. Add a description of detailed steps to reproduce, expected and current behaviour, logs and the output of 'flutter doctor -v'. Thanks for your contribution.

@github-actions github-actions bot added the status: closed (missing info) Indicates the issue was automatically closed due to a lack of information. label Sep 6, 2023
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 Important issues not at the top of the work list. platform: android Issue is related to the Android platform. status: closed (missing info) Indicates the issue was automatically closed due to a lack of information. status: needs more info We need more information before we can continue work on this issue. type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests