Value In Brief – by Abanoub Hanna
All You Need To Know Explained In Brief

Posts Tagged with Flutter

Strict Secure Cookie policy does not allow setting a secure cookie for apps targeting >= R

Android Java Kotlin Flutter Dart Error fixing Tips & Tricks
After updating my app to compile with API level 30 (Android R, 11), I can’t see AdMob test ads, and I’m receiving this error in the log: Strict Secure Cookie policy does not allow setting a secure cookie for http://googleads.g.doubleclick.net/ for apps targeting >= R. Please either use the ‘https:’ scheme for this URL or omit the ‘Secure’ directive in the cookie value. I’m using the lastest AdMob version, and I don’t have “org.

Flutter Gradle task assembleDebug failed with exit code 1 zip END header not found

Flutter Error fixing
The error code is this. exception in thread "main" java.util.zip.ZipException: zip END header not found at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1567) at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1462) at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1469) at java.base/java.util.zip.ZipFile$Source.(ZipFile.java:1274) at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1237) at java.base/java.util.zip.ZipFile$CleanableResource.(ZipFile.java:727) at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:844) at java.base/java.util.zip.ZipFile.(ZipFile.java:247) at java.base/java.util.zip.ZipFile.(ZipFile.java:177) at java.base/java.util.zip.ZipFile.(ZipFile.java:191) at org.gradle.wrapper.Install.unzip(Install.java:214) at org.gradle.wrapper.Install.access$600(Install.java:27) at org.gradle.wrapper.Install$1.call(Install.java:74) at org.gradle.wrapper.Install$1.call(Install.java:48) at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65) at org.gradle.wrapper.Install.createDist(Install.java:48) at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128) at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61) Exception: Gradle task assembleDebug failed with exit code 1 This Problem came from gradle file is corrupted in your system.

10 Tips to optimize Flutter mobile app

Android Flutter Dart Code Optimization Tips & Tricks
Use the Flutter Profiler to identify performance issues. Use the Flutter DevTools to debug your app. Reduce the number of widgets in your app and use lazy loading where possible. Use the Dart compiler to optimize your code for faster execution. Use the latest version of Flutter and its dependencies for better performance. Avoid using large images and videos in your app, instead use smaller versions or thumbnails where possible.