I downloaded android studio for ubuntu 12.04. but i don't know how to put JAVA_HOME and how to open studio for developing apps. please help me.
You can open your Android Studio by navigating to main-directory/bin through Terminal and then on the next line open studio.sh using the command ./studio.sh . For example if you installed Android Studio in Downloads, you have to write in Terminal cd Downloads/android-studio/bin and after confirming the second line should be ./studio.sh. I think in Android 0.8(beta) they still didn't fix that issue where you can't open your Studio through the icon.
Related
I download Android Studio - Arctic Fox | 2020.3.1 from their official website in my ubuntu 20.04 LTS and install via these command:
at first i extract the zip downloaded file to: /usr/local
Then i installed via this command : ./studio.sh
After install, i can not find any desktop launcher icon for android studio.I try to find create desktop entry.But can not found.
Any solution?
Create or open any project
Press Shift twice and search "Create desktop entry" under All tab
The same problem was caused by writing permission. If you put android dir to usr/local/ with a super user, you must give permission to write to users.
chmod 775 /usr/local/android-studio/
After that launch the app, as a normal user with studio.sh, and create a desktop icon again.
I cant open any of my existing projects on android studio for some reason, I can create a new project but any time i try and open an exiting one it opens the file finder i click on the project and nothing happens.
Ive tried invalidating and clearing cache, uninstalling all plugin, deleting, re-downloading and re-installing but nothing seems to be working
Im running macOS Catalina 10.15 and Android Studio 3.4.2
Image
https://intellij-support.jetbrains.com/hc/en-us/community/posts/360004341740-IDEA-2019-2-doesn-t-open-old-projects
Adding
-Dide.mac.file.chooser.native=false
to .vmoptions helps.
Just to summarise (and make it clear) there are 3 different options to solve this.
From within Android Studio if you can open it...
Click the menu item Help->Edit Custom VM Options...
In the editor studio.vmoptions that opens up, add the following, save and restart Android Studio
-Dide.mac.file.chooser.native=false
Via Mac OS X Terminal window, type
open -a /Applications/Android\ Studio.app "path to your project"
You can get the path to your project by going into the project directory and typing,
pwd
From Mac OS X Finder
locate the folder for the Android Studio project that you want to open.
drag the folder to the Android Studio App (from Applications or from the Dock if it is there)
There is something wrong with androdi studio in macOS Catalina, so you can not open exist project or import project in android studio. But as an alternative, you can open project in command line, like below
$ open -a /Applications/Android\ Studio.app "path to your project"
Drag the project folder and drop on Android studio icon in the dock to open the project. Since its beta we have to wait for a fix from Apple or Jetbrains.
See my answer at,
IntelliJ IDEA can't open projects or add SDK on macOS Catalina, I think it also works for Android studio.
Mac OS, Mojave or Catalina, Exit Android studio first,
Apple menu > System Preferences, click Security & Privacy, then click Privacy.
Click the lock, then enter your administrator password.
From the list of items on the left, select Full Disk Access.
Add Android studio(or other whatever app having this problem) to the apps allowed full-disk access by using the add button.
Lock and try again.
I hope this will help.
Ref from apple support of other things, but I tried, it works!
Android Studio 3.4.2 is probably not optimized for macOS Catalina. Try downgrading to macOS Mojave. It's what I use and it's working fine.
Stay clear of beta versions - not everyone develops against beta versions.
Might be a late response. This answer is for having issues with 4.x not launching on macOS after upgrade or uninstall and reinstall.
rm -rf ~/Library/Application Support/Google/AndroidStudio{PREVIOUS_VERSION}
Example: rm -rf ~/Library/Application Support/Google/AndroidStudio4.1
https://developer.android.com/studio/known-issues#studio-config-directories
I am new to Android Development and I need help with the installation process with the following error code. I have tried a clean installation of Android Studio many times but the error pops up every time.
Can anyone help?
Here is a temporary solution, skip components downloading when open Android Studio
install android studio.
do not start studio after installation completed.
go to C:\Program Files\Android\Android Studio\bin
you will find idea.properties file
write this line at the end of the file disable.android.first.run=true
run android studio
After open android studio you can install needed components from SDK Manager
There are some more solutions on this link which you can try.
I am currently using android studio 2.0 but wanted to update it to 2.1 as its been released on the stable channel. Now when I press on "Update & Restart" button ,it downloads the patch and then will exit but wont restart by its own.So I am starting it manually to check if update was successful but it still shows android studio 2.0 and same dialogue "Android studio is ready to update". I did it many times but no success. I am using Linux Ubuntu System 14.04 LTS.
Try the following:
After the patch was downloaded and Android Studio closed, open the terminal
Go to your android studio folder, e.g.
cd ~/android-studio
Go to bin subfolder:
cd bin
Make sure your studio.sh file has run permissions:
chmod +x studio.sh
Run Android Studio from here: ./studio.sh
After that Android Studio will find the patch and install it. Then you may close Android Studio and run it the regular way (whatever way you prefer, I run it from Launcher pad).
I solved this problem. i logged as root user then updated the android 2.0 to 2.1 it worked fine and got updated
I also faced this problem.
In 64 bit machine android studio installed in 2 different version 32bit and 64bit. At the time of update and restart 32bit android studio selected by default.
and when it load 64bit android studio.
To solve this problem please select 64 bit at the time of update and restart.
hope it will work.
As an alternate solution, you can download the Android Studio version that you want to upgrade to directly. For instance, 2.1 is located here:
2.1 # Android Tools
Make sure that you import your old settings. Also, pull your SDK out of the old install folder and point the new installation at it, if necessary. This will ensure consistency across installs.
What you have to do is simple:
Make sure you can run android studio from command line using studio.sh
If you have an open project in android studio go in "File > Close project" and close it
A small window opens up, wait for the notification for the update to appear and click on it
If 3 doesn't work, close android studio, repeat number 1 and 3
Let me know if it works
Start Android studio from /android-studio/bin/studio.sh, and then restart update process
I used Visual Studio 2015 to develop mobile app with Cordova. Before I upgraded to Windows10, I was using Windows 7 and it worked perfectly fine. After I've upgraded to Windows10, whenever I open a Cordova project or create a Cordova project the Visual Studio hangs (not responding).
I have tried to reinstall the Visual Studio but it still hangs.
Anyone has faced this problem before?
Thanks
Here is the solution for this problem in VS 2015. This issue if you have Windows 10 and latest updates in VS 2015 including latest type script installation.
1) Open command prompt as administrator.
2) Navigate to the following folder path:
cd "C:\ProgramData\Package Cache"
3) write the following command to find out vs_edition.exe file:
dir vs*exe /s /b
4) copy the full path that contains your vs edition exe from the screen.
5) write the following command:
"C:\ProgramData\Package Cache\{GUID}\vs_enterprise.exe" /modify /installselectableitems Javascript
6) VS installer will start, click on modify and then update. no need to change any features selection.
7) Wait until the installer finishes.
8) From the command prompt, navigate to the following folder:
C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
9) Run the following commands:
devenv /updateconfiguration
devenv /clearcache
Below screenshot shows the full commands set.
Now, you will be able to open VS 2015 and create cordova apps.
This is a known issue, and the solution is mentioned in the following link.
I still had few more issues with the Blank Cordova Project which would simply not build once the hanging issue was fixed. I'll share my experience here to help others.
After recovering from the VS.Net2015 hanging I was still getting
"Error MSB3073 The command "platforms\android\cordova\clean.bat" exited with code 1. BlankCordovaApp7 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets 354"
I tried reinstalling the Android Studio again and found that it was not working, and the issue was: I had installed a 32 bit Java SDK on 64Bit OS. After In installed the 64Bit JDK and correcting the Path variable to point to this directory, I was able to start the Android Studio.
Now my Blank Cordova project was still not compiling with an error
'MySQL' is not recognized as an internal or external command, BlankCordovaApp7 C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v14.0\ApacheCordovaTools\vs-mda-targets\Microsoft.MDA.FileMirroring.targets 287
This was an interesting one, looks like its an issue with MySQL, in the PATH variable there were some & within the path. I used "" to surround those path
Now its compiling and also able to start the Ripple.
Hope it helps someone as it took me more than 2 weeks to fix.
Regards
Kiran
Today , solved for me with Visual Studio Tools for Apache Cordova Update 2 for VS2015 Enterprise & Windows 8.1. ;-)
I think there are some updates for Visual Studio 2015. I reinstalled it and it is working now.
Here is what I did:
Uninstall the Visual Studio 2015 using the installer (vs-community.exe) from https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs.aspx
Install Visual Studio 2015 using the same installer(vs-community.exe) and choose Typical Installation
After the installation is done, run the installer (vs-community.exe) again and choose Custom Installation and choose to install Apache Cordova
Then I am able to open and build Cordova project
Not sure if this helps.
In my case with VS2015, the problem was about missing SDK build tools for Android. The lack of information is due to the fact that Visual Studio does not show all the build information by default. Once more information is shown, we could see issues with third party dependency issues like Android build tool. There are a couple of ways to get more information during a build.
MSBuild build output verbosity
Dependency checker on the Cordova tools
Both of these are available from the tools menu. For more information see this post:
http://www.ozkary.com/2016/01/visual-studio-2015-apache-cordova.html
hope it helps.