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" />
and android:usesCleartextTraffic="true"
//added in AndroidManifest.xml
flutter clean
and flutter build apk --release
and flutter build apk --split-per-abi --no-sound-null-safety
added shrinkResources
and minifyEnabled
in android/app/build.gradle file.
buildTypes { release { signingConfig signingConfigs.config shrinkResources false //here minifyEnabled false //here }
}
Any help is appreciated
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.