Hi I am trying to open Flutter android module in android studio by right clicking android folder and then " Open in Android Studio " but its doing nothing.
I have correctly setup android-studio-dir but still unable to open. I am using Ubuntu 19.04.
This is a bug. I've opened https://github.com/Dart-Code/Dart-Code/issues/1897 to look at this. We previously tweaked this code to look for studio.sh instead of studio but now I'm wondering if that's not consistent. I'll change it to look for both.
I have followed the steps [here] (Android Studio is slow (how to speed up)?) in order to try and make my android studio faster.
after doing so android studio won't even launch .
I have tried the command ./studio.sh from the terminal but I am getting this
error: Error: Could not find or load main class Dsun.java2d.d3d=false
Fixed it by:
going to dir home/username/AndroidStudiox.x/config/studio.vmoptions
I had added a couple of lines there before
I edited the file and deleted it's contents. and I was able to launch android studio again
I deleted my app on phone and then I run android studio but it gives me an error like this :
C:\reactnative\ProjectName\android\app\build\intermediates\signing_config\debug\out\signing-config.json (Access Denied)
I didnt get this error before.
Just delete the file signing_config.json
Run react-native run-android or run app from android studio again
delete build folder which is placed in C:\reactnative\ProjectName\android\app\
and then run your project react-native run-android
Run Android Studio as Administrator it will work.
As I was not able to even clean the project, So I deleted the build folder manually, and build It again, this worked for me.
For me, there is not such a file and path in the project directory. Just I have to run Android studio as administrator and problem gone.
I use windows 10 , 64.
If you are facing this error in Flutter then just run the following command in terminal
flutter clean
the answer is given for flutter. If someone is wondering
On Mac "Sierra OS", Android Studio, when trying to update to Android Studio 3.0 it gives this error:
Studio does not have write access to /private/var/folders/xn/dgzclk4903q6gp3hm7sxndfm0000gn/T/AppTranslocation/B13F4083-E54C-4DEA-A067-42ACEC8C32C6/d/Android Studio.app/Contents. Please run it by a privileged user to update.
Is there a way to give it the permission? I don't want to copy it, like what other suggested by terminal line.
I installed Android Studio with the new updates in difereent path and works okay.
Currently I'm making some android applications by Android studio.
My application working on emulator so fine but when I generate apk file for install on android devices any project doesn't run and they crash.
I tired to search for find answer or suggestion for fin this problem but I didn't find anything.
Can you tell me how can I fix this problem?