How do I install Android Studio 3.5 Canary 12? - android-studio

I need to install it, and downloaded the file, but it is in ZIP format. Inside the archive there is no install file, only `uninstall. How do I install it?

You don't install the canary builds. They are meant to work alongside the stable versions which are installed.
For Windows, extract to some place like C:\Programs\AndroidStudioCanary and inside the bin there will be an executable file for 64bit version(and also for 32bit). Create a shortcut to the file and you are done.
For Linux, extract to some place like /home/user/AndroidStudioCanary and inside the bin there will be a bash script file studio.sh. After first launch close all projects via File->Close projects but do not close the IDE. Now in the main UI, click the settings cog and add desktop entry to create application shortcut.
Launch the shortcut from applications now.
EDIT:
Canary and stable versions can run along side each other and their settings can be changed independently. For Windows and linux the folder named .AndroidStudio3.6 will contain config for stable version and .AndroidStudioCanary4.0 or similarly named folder will contain config for the canary version. These folders are inside user directory and are hidden. I don't have a mac but assume something similar.

For canary builds, there are no traditional executable files that you use to "install" the IDE.
You can go into the bin folder, then run the studio.exe or studio64.exe file (depending on your platform) to run Android Studio

Related

What's the difference between ./nuget.exe pack ./PartsUnlimited.Shared.csproj vs nuget pack ./PartsUnlimited.Shared.csproj on mac?

I am following a lab designed for visual studio on windows, on visual studio for mac.
The lab instructions are
./nuget.exe pack ./PartsUnlimited.Shared.csproj but it doesn't build anything and just pops open my finder to the folder where .csproj is in.
I had to do nuget pack ./PartsUnlimited.Shared.csproj for it to build successfully.
What is the difference between these 2 commands?
Is it a shell/executable thing, or specific to nuget, or specific to macos?
With the Windows OS, executable programs are expected to have a .exe file extension. With macOS and *nix operating systems, executable program do not have a special file extension.
When the lab instructions for Windows use nuget.exe, change it to nuget for macOS.
To specifically run the version of NuGet that you downloaded, cd to the directory that contains nuget and run the command as ./nuget. (The lab is using the *nix directory separator in the examples.)

Add MacOS Support to Existing Android Studio Project

How do you add a MacOS version of a Flutter/Dart project in Android Studio? I can create a new project and move everything over but I wonder if there is a more elegant way to add the MacOS (and later Windows and Linux as they come available) to the existing project.
This is pretty ugly, but it worked for me.
Rename the directory for the existing project (the one containing Pubspec.yaml) to old.my_app
Create a new project, in the same place with the same parameters (i.e., my_app)
Move/rename the macos directory in the newly created project (i.e., my_app) to the old.my_app directory
Delete the my_app directory (not the old.my_app directory!)
Move/rename the old.my_app directory to my_app
Obviously, the new macos app will not have any of the code that runs in the AppDelegate.swift file (if any) but the Dart side will run and the app will build.

where is the Android Studio executable

Where is the Android Studio executable file stored in the system?
I have it installed, but have unpinned it from the taskbar, which was the only shortcut I had. Since I can't find it in File Explorer, I can't load it.
I've tried the Start menu search function, and used File Explorer to search the entire install directory. The only thing left I can think of to do is reinstall it, but I don't really want to do that, as it was working fine.
P.S. I wasn't sure if this was more appropriate for SuperUser, since it's not directly coding related, or SO, since I doubt the number of people on SuperUser with the answer.
You can find the executable file in bin folder where the android studio is installed, default location is
Windows
C:\Program Files\Android\Android Studio\bin\studio.exe
There is also studio64.exe in the same directory for 64-bit machines
Linux
path_to\android-studio\bin\studio.sh
In Ubuntu/Gnome make sure you create an application file in
/usr/share/applications/android-studio.desktop
with the following content
[Desktop Entry]
Name=AndroidStudio
Type=Application
Exec=/path/to/android-studio/bin/studio.sh
Terminal=false
Icon=/path/to/android-studio/bin/studio.png
Comment=Android Studio
NoDisplay=false
Categories=Development;IDE;
Name[en]=AndroidStudio
This way you will be able to find Android Studio in the applications list, create desktop shortcuts for Android Studio or add it to the favourites bar.
I don't remember how did I installed Android Studio on my Ubuntu 16.04, but my android studio executable is located as /snap/bin/android-studio.

Setting Android Studio's GRADLE_HOME

I installed Android Studio on Linux Mint 17.2, but when I open up a terminal window and echo $GRADLE_HOME, nothing is set. Should it be set? If it should be, how would I find where it is located so I can manually set it myself?
Thx
The Gradle installed via Android Studio will only be available only within Android Studio. I may be wrong here, since I never used Android Studio. However, if you want Gradle available outside of Android Studio you may have to install manually. Check out the Gradle Documentation. Once you installed set the Gradle home in /etc/environment file (There are several files in which you can set this, but this is my preference since it makes the variable available to all users). Add the installation location to that file. You may choose to install in a different location.
GRADLE_HOME=/usr/local/gradle-2.13
After you add add bin location to PATH variable. Eg:
PATH=...:$GRADLE_HOME/bin
Since you are adding the GRADLE_HOME in /etc/environment file you may have to restart your PC after adding.
The Android Studio zip bundles gradle. After unpacking the zip it is located in android-studio/gradle/gradle-x.x/bin (assuming the unpack directory is android-studio). In my case with Android Studio 3.1 the gradle version was gradle-4.4
so setting GRADLE_HOME to /path/to/unpackdir/gradle/gradle-4.4 should work.
Then add $GRADLE_HOME/bin to your path and you should be set.
You might have to chmod +x gradlew (for example if you use cordova and want to install a plugin)

Android Studio Beta v0.8.14 not showing in start menu

I have downloaded Android Studio Beta v0.8.14 and followed the steps to install it on Windows 7 from the link:
https://developer.android.com/sdk/installing/index.html?pkg=studio
The link says to launch studio.exe and follow the installation wizard. But the zip file contains studio.exe file in bin folder and directly launches Android Studio(after resolving all issues). There is no installation wizard and so it is not showing up in start menu. I don't have any others problems though but just want to make sure that everything is all right.
Am I missing something?
Android studio doesn't have an installer. you just unzip the file and its ready to go. You are not missing anything.
However, if you want to you can adda start menu shortcut for the .exe file if you want, that doesn't have an installer.

Resources