Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Portable Android Studio [closed]

I want to install android studio on my portable usb hard drive to run andoid studio in my school without install. Its is possible? Or maybe exist a portable version of android studio ? Thanks

like image 984
Daniel Osiński Avatar asked Dec 08 '15 06:12

Daniel Osiński


People also ask

Can I install Android Studio in 4GB RAM?

Minimum space and configuration requirements: Officially android studio requires a minimum of 4GB RAM but 8GB RAM is recommended for it. It also requires a minimum of 2GB Disk Space but 4GB Disk Space is recommended for it. But these are the minimum requirements.

Why is Android Studio not working?

If Studio doesn't start after an upgrade, the problem may be due to an invalid Android Studio configuration imported from a previous version of Android Studio or an incompatible plugin.

Is Android portable?

AS (Android Studio) itself is portable, however the JDK (Java Development Kit) which is required to run AS, is not. So you still need to install JDK on each computer you use. To set up gradle for offline, go to: File > Settings > Build, Execution, Deployment > Gradle then check Offline Work .


2 Answers

It is not that easy as FrozenFire has told you. You need to add a number of entries into Android Studio's main configuration file to tell it to use and store other configuration files and logs relative to its executable. You also need to set a number of environment variables pointing to SDK, AVD, and Gradle's configuration directories.

I have created a number of PowerShell scripts to download, extract, and prepare a portable environment for Android development (with Android SDK and Oracle JDK). You can either use them or take a look on how to create the environment on your own. Inside the repo you can also find a branch for Android Studio preview builds. You can also set the AndroidStudioPortable-Definitions.ps1 script to download a specific version of Android Studio/SDK, or JDK. The scripts were tested on everything after Windows 7 including the Windows 7 itself.

like image 100
toksaitov Avatar answered Oct 19 '22 23:10

toksaitov


AS (Android Studio) itself is portable, however the JDK (Java Development Kit) which is required to run AS, is not. So you still need to install JDK on each computer you use.

You can download the AS versions here:
http://tools.android.com/download/studio/stable

EDIT:
You need to save the AS together with SDK files:
http://developer.android.com/sdk/index.html

and if you have problems with gradle, it can be downloaded here:
https://services.gradle.org/distributions/

To set up gradle for offline, go to:
File > Settings > Build, Execution, Deployment > Gradle then check Offline Work. You will need to assign the service directory path (the path where gradle lives) or just paste the downloaded gradle zip into default directory, which is C:/Users/<CurrentUser>/.gradle.

like image 32
FrozenFire Avatar answered Oct 20 '22 00:10

FrozenFire