Is anyone having any issues on Android with the flutter update on August 1st? I updated yesterday and ever since I have not been able to run on Android emulators while iOS is fine. I get the error:
[ERROR:flutter/shell/gpu/gpu_surface_gl.cc(161)] Could not wrap onscreen surface.
flutter doctor results below:
[✓] Flutter (on Mac OS X 10.12.5 16F73, locale en-US, channel alpha)
• Flutter at /Users/kyles/flutter
• Framework revision bbcfb8d51a (3 days ago), 2017-08-01 14:50:29 -0700
• Engine revision f2af347363
• Tools Dart version 1.25.0-dev.7.0
[✓] Android toolchain - develop for Android devices (Android SDK 26.0.0)
• Android SDK at /Users/kyles/Library/Android/sdk
• Platform android-26, build-tools 26.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] iOS toolchain - develop for iOS devices (Xcode 8.3.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 8.3.3, Build version 8E3004b
• ios-deploy 1.9.1
• CocoaPods version 1.2.1
[✓] Android Studio (version 2.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] IntelliJ IDEA Community Edition (version 2017.2.1)
• Flutter plugin version 16.0
• Dart plugin version 172.3544.34
[✓] Connected devices
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 8.0.0 (API 26) (emulator)
Also, I transferred the code to my laptop which has the previous version of flutter installed and it compiles and runs perfectly fine.
Fixed
Eric Seidel from Google explained this has been fixed, but has not been pushed down to the alpha channel yet. In the meantime, it is possible to just use 'flutter channel master' to switch to the latest code with the fix
Related
So I was testing my application on this, and noticed it was unbearably sluggish.
I tried installing a version specific to armeabi-v7 by using split, but to no luck. After which I though maybe it was something wrong with my code so create a fresh new project and tried installing it. This also resulted in the same performance issue.
I tried looking for an issue regarding this in flutter's repo, but couldn't find any thing relevant. So am I missing something?
[✓] Flutter (Channel stable, 1.22.2, on macOS 11.1 20C69, locale en-US)
• Flutter version 1.22.2 at /Users/riteshakya037/Projects/flutter
• Framework revision 84f3d28555 (3 months ago), 2020-10-15 16:26:19 -0700
• Engine revision b8752bbfff
• Dart version 2.10.2
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/riteshakya037/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_HOME = /Users/riteshakya037/Library/Android/sdk
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 12.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.2, Build version 12B45b
• CocoaPods version 1.10.0
[!] Android Studio (version 4.1)
• Android Studio at /Applications/Android Studio.app/Contents
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] VS Code (version 1.52.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.18.1
[✓] Connected device (2 available)
• AOSP on IA Emulator (mobile) • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
• sdk phone armv7 (mobile) • emulator-5556 • android-arm • Android 6.0 (API 23) (emulator)
Specs for the device can be found this
I'm facing this problem after upgrading to latest stable version 1.20.4
Earlier I was using Flutter 1.12.13+hotfix.5 and debug/run speed was good enough.
Is anyone else also facing this issue? Or could anyone help by suggesting some solutions or reasons as to why this is happening?
I am using a Windows 10 machine.
Running flutter doctor -v yields the following output
• Flutter version 1.20.4 at D:\flutter
• Framework revision fba99f6cf9 (8 days ago), 2020-09-14 15:32:52 -0700
• Engine revision d1bc06f032
• Dart version 2.9.2
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Android SDK at C:\Users\amani\AppData\Local\Android\Sdk
• Platform android-29, build-tools 29.0.2
• ANDROID_HOME = C:\Users\amani\AppData\Local\Android\Sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
• All Android licenses accepted.
[√] Android Studio (version 3.5)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
[√] VS Code (version 1.49.1)
• VS Code at C:\Users\amani\AppData\Local\Programs\Microsoft VS Code
• Flutter extension version 3.14.1
[√] Connected device (1 available)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 10 (API 29) (emulator)
• No issues found!```
i had a simular issue , for me i return to the previous stable version and everything goes good ,
run flutter downgrade to return to the previous fluter version install on your machine
Solved the issue by deleting Flutter SDK and then replacing it with newly downloaded SDK.
It seems that upgrade caused some files to get corrupted in the SDK directory.
I used flutter to make a small app, I publish it on the play store. Problem is, I can't install on any avd I have. I get the "your device is not compatible with this version" (or a similar message depending on the android version I tried with).
I just followed the instructions on how to make an apk and an app bundle (they both didn't work). How can I make it downloadable and usable in an play store enabled avd ?
Here is a flutter doctor -v
[✓] Flutter (Channel stable, v1.5.4-hotfix.2, on Mac OS X 10.14.5 18F132, locale
fr-FR)
• Flutter version 1.5.4-hotfix.2 at /Users/moo/development/flutter
• Framework revision 7a4c33425d (6 weeks ago), 2019-04-29 11:05:24 -0700
• Engine revision 52c7a1e849
• Dart version 2.3.0 (build 2.3.0-dev.0.5 a1668566e5)
[✓] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/moo/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-28, build-tools 28.0.3
• Java binary at: /Applications/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1343-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.2.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.2.1, Build version 10E1001
• ios-deploy 1.9.4
• CocoaPods version 1.7.1
[✓] Android Studio (version 3.4)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 36.0.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build
1.8.0_152-release-1343-b01)
[✓] VS Code (version 1.35.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.1.0
[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 7.0 (API
24) (emulator)
You can't install an apk from the store written in flutter on the emulator because the ABI of the emulator is x86, and the apk in release mode(the mode that is on the store) can't be installed on devices with x86 ABI.
You can't even run the application in release mode on the emulator
I am stuck with this error when trying to run my Flutter app on a Pixel 2 emulator with Android 28. It worked the day before, but then it stopped working. Thanks for the help.
Here's the full error message:
Execution failed for task ':app:preDebugBuild'.
Android dependency 'com.android.support:support-core-utils' has different version for the compile (27.1.1) and runtime (28.0.0-rc01) classpath. You should manually set the same version via DependencyResolution
Flutter doctor:
/work/sdk/flutter/bin/flutter doctor --verbose
[✓] Flutter (Channel stable, v1.0.0, on Mac OS X 10.14.3 18D109, locale en-BE)
• Flutter version 1.0.0 at /work/sdk/flutter
• Framework revision 5391447fae (3 months ago), 2018-11-29 19:41:26 -0800
• Engine revision 7375a0f414
• Dart version 2.1.0 (build 2.1.0-dev.9.4 f9ebf21297)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.3)
• Android SDK at /work/sdk/Android
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.3
• ANDROID_HOME = /work/sdk/Android
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
• All Android licenses accepted.
[✓] iOS toolchain - develop for iOS devices (Xcode 10.1)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.1, Build version 10B61
• ios-deploy 1.9.4
• CocoaPods version 1.6.0
[✓] Android Studio (version 3.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 33.0.1
• Dart plugin version 182.5215
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1248-b01)
[!] IntelliJ IDEA Ultimate Edition (version 2018.3.4)
• IntelliJ at /Applications/IntelliJ IDEA.app
✗ Flutter plugin not installed; this adds Flutter specific functionality.
✗ Dart plugin not installed; this adds Dart specific functionality.
• For information about installing plugins, see
https://flutter.io/intellij-setup/#installing-the-plugins
[✓] Connected device (1 available)
• Android SDK built for x86 • emulator-5554 • android-x86 • Android 9 (API 28) (emulator)
! Doctor found issues in 1 category.
Got the latest & greatest Flutter & I'm seeing a black screen on my Android emulator and the following errors in the console.
Any ideas on how to fix this?
E/flutter ( 4538): [ERROR:flutter/shell/gpu/gpu_surface_gl.cc(161)] Could not wrap onscreen surface.
E/flutter ( 4538): [ERROR:flutter/shell/gpu/gpu_surface_gl.cc(161)] Could not wrap onscreen surface.
I/chatty ( 4538): uid=10086(u0_a86) gpu_thread identical 50 lines
Flutter doctor results:
[✓] Flutter (on Mac OS X 10.12.6 16G29, locale en-US, channel alpha)
• Flutter at /Users/michaelrtraverso/dev/flutter
• Framework revision bbcfb8d51a (6 days ago), 2017-08-01 14:50:29 -0700
• Engine revision f2af347363
• Tools Dart version 1.25.0-dev.7.0
[✓] Android toolchain - develop for Android devices (Android SDK 26.0.1)
• Android SDK at /Users/michaelrtraverso/dev/android-sdk-macosx
• Platform android-26, build-tools 26.0.1
• ANDROID_HOME = /Users/michaelrtraverso/dev/android-sdk-macosx
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] iOS toolchain - develop for iOS devices (Xcode 8.3.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 8.3.3, Build version 8E3004b
• ios-deploy 1.9.1
• CocoaPods version 1.2.1
[✓] Android Studio
• Android Studio at /Applications/Android Studio 3.0 Preview.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-884-b01)
[✓] Android Studio (version 2.3)
• Android Studio at /Applications/Android Studio.app/Contents
• Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)
[✓] IntelliJ IDEA Ultimate Edition (version 2017.2)
• Flutter plugin version 15.2
• Dart plugin version 172.3317.48
[✓] Connected devices
• Android SDK built for x86 • emulator-5554 • android-x86 • Android O (API 25) (emulator)
OK so it's not a fix but the latest Flutter build in the alpha channel seems busted. Switching to the master channel brings Android apps back to life. In your terminal:
flutter channel master
then re-run and you should be able to be back in business.