Mac os after 10.9.3 Android Studio is not working - java

I have a new Macbook pro. My computer update OSX 10.9.3 in yesterday.
When I try run a new Android Project, I get this gradle error.
Error:Could not initialize class java.lang.UNIXProcess
When I sync project gradle some time get this error.
Error:Cause: posix_spawn is not a supported process launch mechanism on this platform.
Please help.
Thanx.

Right Click on Android Studio from your install location
Click Show Contents
Open Contents/bin/studio.vmoptions with any text editor
Add -Duser.language=en to the end of the file.
Save
Run Android Stuio.
It will work well...

Related

How to fix "Could not find compile target android-30 for modules :app" error in Andriod Studio while building apps?

I am trying to build an application from a GitHub repository repo. It's my first time using Andriod Studio and what I want is to run this application on my android phone, so I don't have basic knowledge about Java development or android SDKs.
When I am trying to set up the Studio, when I hit the "run app" button an error occured reading 'Could not find compile target android-30 for modules :app'.
I have tried to uninstall and reinstall all SDKs needed and every time I click 'Sync Project with Gradle Files' this error will pop up.
Anyone who knows about Andriod Studio could help me with this issue? I appreciate every answer and hope this issue could be resolved very soon.
Close Android Studio. Run it as Administrator. Then create a new project. You probably had an error before the project was created and ignored it
(error : Failed to read or create install properties file.).
The file "Android SDK Platform 32" (I had platform 30) needs to be installed and so if you ran Android Studio without administrator rights it won't install. With Administrator rights it'll install automatically and that's it.

Why does Android Studio have an internal error after installing

I just downloaded and installed Android Studio. I've tried running it, but there's some internal error. I've tried uninstalling, deleting the JDK, and reinstalling, but I'm still having this same problem. I also tried to download the new installer and install it again but same problem happened.
Here's the error:
java.util.concurrent.CompletionExecption:org.picocontainer.PicoRegistrationException:Keyio.flutter.settings.FlutterSettings duplicated
at java.base/util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:314)
at...(many more errors)
at...(many more errors)
First of all, I will like to know which OS you are on. But try this;
If you have anti-virus, you want to disable it till after a successful installation because some anti-virus delete some files at installation time because those files are read as treat to your PC.
If you are on MacOS ,then try deleting the marketplace directory which contains plugins.
rm -Rf ~/Library/Application\ Support/AndroidStudio2020.3.1/marketplace/
or
~/Library/Application Support/Google/AndroidStudio202.3.1/plugins
There can be Android Studio under Application Support but that is not the correct one.
If you use Windows then , try the following ways:-
Changing these lines of code
Open the folder where you installed Android Studio:
ex: C:Program FilesAndroidAndroid Studiobin
Find and edit idea.properties. You can edit this with use notepad++ or
any similar application that allows text editing.
Add this line as the final in the file:
disable.android.first.run=true
Now run Android Studio again.
Opening in Offline Mode
Close Android Studio Turn off Internet connection and be sure of it.
Start Android Studio. You will see a popup box with Cancel option in it.
Then Click cancel.
Reinstalling JAVA, PYTHON
Downloading new package of ANDRIOD STUDIO and installing it again after deleting all the previous files
Adding bin directory to the enviornment variables
JAVA PYTHON JRE-AndriodStudio
Deleting the user plugins that we have in Andriod Studio. [But as its my first time of installation, I am not having them]
Even tried restarting my system
Closing all other instances running via java, to ensure it not disturbing that particular port number
But no programmes were running in the process that took the use of java
Windows Credits:- https://ittone.ma/ittone/start-failed-fresh-installation-android-studio/

Unable to run new flutter sample code in IntelliJ IDEA

I installed IntelliJ IDEA, downloaded both the flutter and dart plugins, Installed android studio and jdk .
I opened configured IntelliJ IDEA to point at the android sdk and jdk.
I opened up IntelliJ IDEA and created new project->flutter. I clicked on build and got an error message.
I am using Ubuntu 16.04 64 bit system
I ran Flutter Doctor and confirmed that i got nothing new or missing installation. The message at debugger is as shown
The built-in library 'dart:ui' is not available on the stand-alone VM.
library handler failed export 'dart:ui' show Locale
Process finished with exit code 254 Failed to connect to the VM observatory service: java.io.IOException: Failed to connect: ws://127.0.0.1:46579/ws Caused by: de.roderick.weberknecht.WebSocketException: error while creating socket to ws://127.0.0.1:46579/ws Caused by: java.net.ConnectException: Connection refused
Standard new flutter project code with output
Debugger output which i copy pasted
It sounds like IntelliJ is configured to run as a Dart command line app instead of a Flutter app. Edit configurations and remove any configurations that look like "Dart Command Line App". Then create a new one for a Flutter app.
Click the name of the test, and choose "Edit configurations"
You'll (probably) notice that the run config is under 'dart' rather than 'flutter test'
Delete this one, create a new one (using the plus button) under 'Flutter Test' and choose / run this manually.
(Also, you need to have the tests in a folder called 'test' at the same level (e.g. as a sister to) the lib folder, and follow the naming convention '*_test.dart' for all tests.)
Happy coding!
When i encountered this issue, I fixed the error by simply by closing the current project and creating a new project. Now when i tried to run the app from the new project, it worked!. Hope it helps someone.
Your setup looks good! I think IntelliJ is trying to run your app as if it was a command-line dart app, not a Flutter one. There are some settings in IntelliJ to allow you to manage your launch configs. I would:
delete the dart command-line one
create a flutter one for your app (or confirm that one exists)
Then, from the launch config drop-down, select the flutter launch config for your app and hit run.
There are some docs here: https://flutter.io/intellij-ide/#running-and-debugging, though they don't cover creating a launch config.
Referenter link description here
I had same issue on Android Studio and I find out that its related to the file (configuration) selected here:
The first one is Dart Command Line App and the second one is Flutter App which should be selected

Android Studio Update: Cannot Load Project, Intellij Fatal Error

I just updated my ubuntu and then the Android Studio. The instructions told me to move the SDK folder into it's own folder in order to install the new Android Studio, which I did. I was having trouble with gradle. Now I cannot even load the project I was working on.
The error message is:
Cannot load project: com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal error initializing 'com.intellij.openapi.vcs.changes.ChangeListManager'
Does anyone know what's happening? I am using openjdk.
I just uninstalled and reinstalled on Ubuntu, fixed it.
But I now gradle is all effed up. sigh...
You can uninstall the plugins in the bottom of the configure. Then restart the idea.

Android app not running(emulator not starting from eclipse)

I'm learning how to make android apps from the docs, and I downloaded and unzipped the ant bundle
I opened eclipse and followed the tutorial, but when I click on the run button in the eclipse toolbar, nothing happens(no window pops up and neither does the avd start up).
I have made an AVD(through the avd manager icon in the same toolbar) , as the tutorial says.
I also started up the AVD with android 4.2.
I'm on Ubuntu 12.04 32 bit, if that matters.
Please help me run my app, thanks in advance!
Have you tried running the application whilst the AVD is up and running in the background?
Does the version of Android the app is built to support match that of the emulator. Ie. if the emulator if configured to support 2.3.3, and your app is built to the 4.0 API then this might happen.
To run your app directly (taking Eclipse out of the equation). You can issue the following command from the command line (this is a good test to perform).
adb install yourApkName.apk

Categories