Issue
This Content is from Stack Overflow. Question asked by brook yonas
my flutter app works on debug mode getting data from api and all. but after I built the app in release mode and try to open it on my actual phone. It is not working getting the data from the api.
Things I have tried:
<uses-permission android:name="android.permission.INTERNET" />
andandroid:usesCleartextTraffic="true"
//added in AndroidManifest.xmlflutter clean
andflutter build apk --release
andflutter build apk --split-per-abi --no-sound-null-safety
added
shrinkResources
andminifyEnabled
in android/app/build.gradle file.buildTypes { release { signingConfig signingConfigs.config shrinkResources false //here minifyEnabled false //here }
}
Any help is appreciated
Solution
If you wanted to find your error run it on direct release mode it can show what is cussing the error/crash
This Question was asked in StackOverflow by brook yonas and Answered by MohitJadav86 It is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.