I have this error :
A Generating signed Bundle requires you to update the Android Gradle plugin to version 3.2.0 or higher.
But i have enter image description here
And :
Android Studio Electric Eel | 2022.1.1
Build #AI-221.6008.13.2211.9477386, built on January 11, 2023
Runtime version: 11.0.15+0-b2043.56-8887301 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 12
Registry:
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false
Non-Bundled Plugins:
Dart (221.6096)
io.flutter (71.2.4)
Some Idea ?
i'm on win 11
Related
my flutter project is not rendering properly. if I have forgot to add the semicolon, So not getting error in that line but after run the project or hot reload so that time getting error in consol. and also not getting hint option for wrap widgets on existing widgets. I'm using the latest android studio version.
Android studio version : Android Studio Electric Eel | 2022.1.1
Build #AI-221.6008.13.2211.9477386, built on January 11, 2023
Runtime version: 11.0.15+0-b2043.56-8887301 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 13.1
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 8
Registry: external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false
Non-Bundled Plugins:
com.github.dhaval2404.material_icon_generator (1.3)
Dart (221.6091)
pl.pszklarska.pubversionchecker (1.3.5)
io.flutter (71.2.4)
you can see in below image.
After this issue work speed is very low, So please help me to find out the issue.
At the bottom of the Android Studio,There is a tab called: Dart Analysis. Click on it to open the tab.
On the left hand side of the Dart Analysis screen that opens is a settings Icon. Click on the icon.
On the settings screen, make sure that "Scope Analysis to the Current Package" is ticked on.
Restart your IDE
Today when I start debugging the flutter(v3.0.5) project, the android studio could not connect to the iPhone XR emulator, shows error like this:
Failed to connect to the VM observatory service at: ws://127.0.0.1:52452/GWMOmzXIoTo=/ws
java.io.IOException: Failed to connect: ws://127.0.0.1:52452/GWMOmzXIoTo=/ws
Caused by: de.roderick.weberknecht.WebSocketException: error while creating socket to ws://127.0.0.1:52452/GWMOmzXIoTo=/ws
Caused by: java.net.NoRouteToHostException: Can't assign requested address (Address not available)
Application finished.
And the emulator stay withh a white blank page.what should I do to avoid this problem? this is the android studio info:
Android Studio Chipmunk | 2021.2.1 Patch 2
Build #AI-212.5712.43.2112.8815526, built on July 10, 2022
Runtime version: 11.0.12+0-b1504.28-7817840 aarch64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.5.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2280M
Cores: 10
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: Dart (212.5744), com.thoughtworks.gauge (212.4746.52), org.moe.community (1.4.10), org.jetbrains.kotlin (212-1.7.10-release-333-AS5457.46), io.flutter (69.0.2)
as Apple announced that Xcode Cloud is now available for all developers, I tried to set it up for a Kotlin Multiplatform project. The start was a little bit hard tbh. Currently I am facing following problem during a simple test action:
The operation couldn’t be completed. Unable to locate a Java Runtime.
Please visit http://www.java.com for information on installing Java.
Command PhaseScriptExecution failed with a nonzero exit code
So I tried to install a jdk during the ci_post_clone.sh phase. The output of java -version after the installation on the Xcode Cloud is the following:
openjdk version "17.0.2" 2022-01-18
OpenJDK Runtime Environment (build 17.0.2+8-86)
OpenJDK 64-Bit Server VM (build 17.0.2+8-86, mixed mode, sharing)
Installed java
also ./gradlew -v output:
Showing All Messages
------------------------------------------------------------
Gradle 7.4.2
------------------------------------------------------------
Kotlin: 1.5.31
Groovy: 3.0.9
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 17.0.2 (Oracle Corporation 17.0.2+8-86)
OS: Mac OS X 12.4 x86_64
Nevertheless, I still get the same error. Is this maybe a restriction by Apple?
Any ideas?
The list with icons (IconData) takes a very long time to load, about a minute. Previously, there was no such problem - the list was loaded in a couple of seconds. I tried reinstalling Flutter and Android Studio on an SSD, but it didn't help.
How can this be fixed?
Android Studio Arctic Fox | 2020.3.1 Patch 3
Build #AI-203.7717.56.2031.7784292, built on October 1, 2021
Runtime version: 11.0.10+0-b96-7249189 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 16
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: com.intellij.marketplace, Dart, com.thoughtworks.gauge, org.jetbrains.kotlin, io.flutter, org.intellij.plugins.markdown
Dart: 203.8452
Flutter: 62.0.1
The developers have fixed this bug in one of the recent updates.
only need to update your android Studio, go to Setting-update-check Now
then update if need it will work smoothly after that
I'm trying to set up flutter on my Ubuntu 19.10 machine.
When I run flutter doctor --android-licenses It prompts me to update the SDK like so -
A newer version of the Android SDK is required. To update, run:
/home/<username>/Android/SDK/tools/bin/sdkmanager --update
When I run it, I encounter an Exception - java.lang.NoClassDefFoundError
This answer suggests changing DEFAULT_JVM_OPTS in sdkmanager to
DEFAULT_JVM_OPTS='"-Dcom.android.sdklib.toolsdir=$APP_HOME" --add-modules java.xml.bind'
This seems to work in Java 9/10. However, I use Java 11 and unfortunately the java.xml.bind module and java.se.ee module has been discontinued from Java 11 -
java version "11.0.6" 2020-01-14 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.6+8-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.6+8-LTS, mixed mode)
Is there a way to fix this in Java 11? Or do I have to downgrade to Java 9/10?
flutter supports java 1.8
so, try install java 1.8