Java configuration problem for flutter on mac m1 - android

I recently encountered a problem with flutter doctor showing me an error but I didn't have this problem before it says "Unable to find bundled Java version" and nothing of the changes I could make was useful .
I install on the advice of some java on my machine but the error still appears.
How to deal with this problem?

I found the answer here
The problem is due to the update of android studio in its Arctic Fox version (2020.3.1) for Mac M1 (Apple Silicon).

Related

After Android Studio Update Bumblebee, The project is not a Gradle-based project

I had fully working Flutter android app. Got an Android Studio update message and updated. Now it shows "The project is not a Gradle-based project" it doesnt detected as flutter dart app. And can't run anymore. How can i fix? build gradle is already exist on android folder and was fully working. Latest Android Studio update caused the problem.
Note: I downloaded previous version (arctic fox) of Android Studio and everything works. Something is wrong in latest version.
I lost an entire morning yesterday after updating to Bumblebee. It broke my Flutter project so badly. I couldn't do Android builds or iOS builds anymore (it was insisting I didn't have cocoa pods installed even though I did - even flutter doctor confirmed I did) and after spending hours trying to fix it all I gave up and went back to Arctic Fox and everything was fine again.
I'm glad it's not just me that's had Flutter problems with Bumblebee.
I suggest rolling back to Arctic Fox and waiting for the next patch release before trying to upgrade again.
As an aside... I'm on an M1 Mac, so I don't know whether there's some compatibility issue with that.
You may wish to try uninstalling and reinstalling your Flutter and Dart plugins in Android Studio, but that didn't work for me.

Android studio 4.1.3 unable to locate ABD

Good day I recently had a hard drive crash. I have since installed android studio 4.1.3. On the previous version of Android Studio I had no problems running the apks and debugging on my current phone.
With this version 4.1.3 I just can not get it working. I have tried the various solutions on stack and other sites :
deleting the platform tools folder and reinstalling
adding abd.exe to system path
installing samsung drivers, installing intel drivers for the phone
Only thing I could not try was setting the project SDK according to this link https://superuser.com/questions/1419201/unable-to-locate-adb-when-using-android-studio/1561048#1561048 as my version 4.1.3 does not follow the project structure mentioned.
Im using windows 7 64bit. Can some confirm they are using windows 7 and 4.1.3 and do not have this issue? Any other suggestions on solving?
This issue was actually related to the incorrect USB driver being installed.

Cannot start Android Emulator - Library not loaded

I updated the Android Emulator in Android Studio. After the update i always get "The emulator process was killed" when i try to start an AVD.
I tried to start it from command line and get following error.
emulator: Android emulator version 30.5.3.0 (build_id 7196367) (CL:N/A)
dyld: Library not loaded: /System/Library/Frameworks/IOUSBHost.framework/Versions/A/IOUSBHost
Referenced from: /Users/NaoKreuzeder/Library/Android/sdk/emulator/qemu/darwin-x86_64/qemu-system-x86_64
Reason: image not found
Abort trap: 6
I searched for file "IOUSBHost.framework" on my mac. But could not find it.
How to solve this? Can someone point me in the right direction to find a solution?
I do not have a solution to provide, but I can confirm that the problem appears in the following configuration:
macos High Sierra (10.13.6),
AndroidStudio 4.1.3,
Android Emulator 30.5.3,
HAXM 7.6.5
I can also confirm that in newer version of macsos like Big Sure (11.2.3) with the same versions of development tools everything works fine, because the IOUSBHost.framework exists.
From Apple developer website https://developer.apple.com/documentation/iousbhost/iousbhostdevice we can see that the framework IOUSBHost is available from version macOS 10.15 and above.
My Mac is running Mojave and I ran into this problem after upgrading my Android Emulator version to v30.5.3 today. I downgraded my emulator version from v30.5.3 to v30.0.12 and that resolved the issue.
After i updated MacOS to Catalina (10.15.7) everything works fine now.
Looks like, newest version of Android Studio Emulator donĀ“t work with older MacOS Versions.

Android Studio Crash on Code autocomplete

Android Studio Crashing after press "Ctrl + Space"
System Config - macOs Catalina 10.15 Beta
Android Studio - 3.4.1 and 3.5 Beta 5
I have already tried
Invalidate Caches/Restart
A workout around is to add -Dsun.font.layoutengine=icu to the VM options.
Which you can do via Help > Edit Custom VM Options.
Source: https://youtrack.jetbrains.com/issue/JBR-1639
Yes there is issue in All intellij IDE causing crashes on Mac Os Catalina Beta 2, From the logs I see that IDE crash because of OpenJDK, Android Studio was working fine on Mac Os Catalina Beta 1, but started crashes on Beta 2, I downgraded back to Mac Os Mojave because it was impacting my production machine, I learn that never use Beta on Production machine. I advice you to downgrade your Mac Os to stable version. Or wait for intellij to update their apps to support Catalina.
You can go to /Applications folder and right click on Android Studio then select Show Package Contents , Goto to Contents/bin/studio.vmoptions and add at the end of the file :
-Dsun.font.layoutengine=icu
Restart the IDE.
Switching IDE java runtime to Oracle JDK 8 worked for me. To switch the IDE Java runtime:
Install "JB SDK Bintray Downloader" plugin (screenshot) in Android Studio
Follow the instructions under All platforms: switch between installed runtimes section to change the IDE java runtime - instructions
I've been using it for 2 hours now and no crash, no slow-ness, etc.
enter image description here
1) Update your Macbook OS to get latest in my case it was : 10.15.3

How can I get Android Studio to work with Meteor

I'm running Meteor 1.4.4.2 and i'm trying to figure out how to get Android Studio to work with it. I am aware that there is a known issue with android sdk Tools 25.3.x and I have searched all over the web and seen plenty of "solutions" that simply have not worked for me. I have recently uninstalled Android Studio for like the 5th time and I now have a 25.2.3 version of sdk tools. Where can I go from here? I have the most recent version of JDK installed. I've tried downloading Android Studio and the switching out the tools folder for this older version and that got rid of my original error message in the command line (which i'm sorry I didn't save unfortunately, but it said two things. It said cordova could not find sdk tools and that there was no .gradle) but then it tried to build the app and then threw 30-50 error messages that I did not understand. My system is macOS Sierra 10.12.4
I am a true beginner in all this so thank you for your patience. Any help would be so much appreciated. Thanks!

Categories

Resources