As a teacher, I am installing Android Studio in for a computer lab. We have shared computers on which users log in.
The problem is that Android Studio insists on installing SDK and a lot of other things in users local directories (users/user_name/local/appdata and users/user_name/local/AppData).
Since the SDK is several hundreds MB heavy and we have roaming profile thisis not acceptable at all.
What I did:
I set up several envrionment variables to non users local directories: ANDROID_SDK_HOME, ANDROID_SDK_ROOT, GRADLE_USER_HOME, GRADLE_HOME.
I edited the idea.properties file to change idea.config.path and idea.system.path to non local directories
During Android Studio first run I explicitely choose the SDK location.
Still here I am with the SDK located in users/local/appData
I am running out of idea. I am installing version 3.4 by I had the exact same problem with 3.3.
Related
I would like to copy Android emulators from one PC to another in order not to download them from Internet. I have AWD folder copied to new PC. How to tell new Android Studio to use these emulators? How to set path to them in Android Studio?
Edit:
After I copied emulators from other PC I got Missing system image error:
AFAIK, you don't need to set the Path. Android Studio automatically picks if you copy your <YOUR_EMULATOR_NAME>.avd and <YOUR_EMULATOR_NAME>.ini files into your ~/.android/avd folder.
<YOUR_EMULATOR_NAME>.avd is directory and it contains .img files and other files and <YOUR_EMULATOR_NAME>.ini is a text file and it contains path(is an absolute path to your .avd), path.rel (is a relative path to your .avd) and target.
I tried just now and it worked for me.
Update:
You need to copy system images and vendor images from your Android Library path mentioned below.
disk.systemPartition.initPath = /Users/user/Library/Android/sdk/system-images/android-26/google_apis/x86//system.img
disk.vendorPartition.initPath = /Users/user/Library/Android/sdk/system-images/android-26/google_apis/x86//vendor.img
Missing system image hints for, that you have to install these system images with the SDK manager. Those "download" buttons should do the job - if not, then use the SDK manager to install the ones it demands.
The kernel.path and the disk.systemPartition.initPath in the AVD's hardware-qemu.ini need to be adjusted to the Android SDK's location, so that it will be able to boot them (else it will complain, just alike the sceenshot shows). I don't have any disk.vendorPartition.initPath here, so this probably isn't required. if any hardware-qemu.ini has such a value, also adjust this one.
Basically I just installed for the first time in my life Android Studio android-studio-ide-182.5264788-windows.exe and when I open it I get:
Missing SDK, No Android found SDK found
I also checked this path: C:\Users\<user>\AppData\Local but I have not found and Android folder there because I was looking for C:\Users\<user>\AppData\Local\Android\Sdk
If I press next next finish I get:
Nothing to do!
Android SDK is up to date.
SDK tools directory is missing
I have also checked all kind of solutions posted on the internet but none of them fixed my problem.
I figured it out meanwhile but I forgot to update the question. Basically I had those issues because of the corporate proxy which was blocking some resources when installation was in progress.
The solution for me was to configure the proxy inside Android Studio under System Settings > HTTP Proxy. I have set it to Manual proxy configuration.
Besides this I also had to configure some security certificate inside the Java Version which was used by Android Studio. I used this code to do that: https://knowledge.digicert.com/solution/SO4085.html
The last thing was to run this: sdkmanager --licenses. I tried first in cmd but it was not working, I don't know for what reason but after I tried in Idea it worked.
After all of these, it worked. I had a small issue with the .. but it got fixed after I went in Setings > Build, Execution, Deployment > Instant Run and disabled Instant Run.
Download the zip file: http://dl.google.com/android/android-sdk_r24.4.1-windows.zip
Unzip it to SDK directory, and files like this:
D:\Android_sdk\platforms
D:\Android_sdk\tools
D:\Android_sdk\SDK Manager.exe
D:\Android_sdk\SDK Readme.txt
Restart Adnroid Studio, Configure->SDK Manager
Then you can change the Android SDK Location to your SDK path
After installation Click on configuration Go to SDK manager -> SDK tools and
uncheck “Hide Obsolete Packages”
Refer the image
after that check the mentioned package and install it –
C:\Users..\AppData\Local\Android\Sdk\tools\bin is created or not.
After creating project
Go to Tools
AVD manager
Your virtual device -> Create virtual device
Select Hardware :- Nexus 5x (Resolution)
Next
Check the latest or download latest one (OS)
Next
As it is default settings
Launch Virtual device
network adapter ipv4 settings or proxy.. I checked that, then it solved.
We have more than one programmer here working on Android code in Android Studio 2.2.2. We're working in debug mode because the code is still in development but we periodically load our latest work on various other employees' devices for them to test with, from the menu bar using Run > Debug 'app'
If I load code onto a device that another developer had previously put code on, Android Studio won't let me, saying there's an incompatibility ([UNINSTALL_FAILED_UPDATE_INCOMPATIBLE] and that I have to uninstall the old code first. I don't want to because I want to retain the old data since we collect debugging and performance data during test runs. (we're developing an industrial process-control app)
Looking on Stack Overflow I find two solutions to this but they are both from the Eclipse era: Using the same debug keystore on multiple computers and Share debug.keystore The files referenced in the solutions seem unique to Eclipse - specifically there seems to be no file called "debug.keystore" anywhere on my development PC.
How do I do a debug 'app' onto a device containing code from another Android Studio without having to erase the previous installations storage?
To avoid the uninstall-install cycles, share the same debug.keystore across the devices.
The location of debug.keystore depends on the value of environment variable $ANDROID_SDK_HOME. debug.keystore can be found in the subfolder .android at the location specified by the environment variable.
However, in case of variable not being defined :
By default, it is stored in the same directory as your Android Virtual Device (AVD) files:
macOS and Linux : ~/.android/
Windows Vista and Windows 7 : C:\Users\your_user_name\.android\
as stated here .
No matter which of the three tizen studio 2.0 installers I try they all don't work as they won't accept any path. The CLI installer gives the most detailed description:
** The directory you specify is not allowed to install the Tizen Studio. Some tools of the Tizen Studio will not properly work in the directory with administrator privilege or read-only access rights for your account.=> path
I have tried starting the installer with admin rights and owning the destination folders. Additionally, I switched from JDK 9 to 8.
Still, there seems no way to get the installer running. Any ideas what the reason could be? Thanks!
I managed to install tizen studio and the SDK using the %appdata% path.
If anyone else has the problem, try e.g.
C:\Users\YourName\AppData\Roaming\Samsung\tizen-studio
This is definitely a flaw Samsung should take care of!
I've successfully installed the IDE version with the following method:
Download Tizen Studio Web IDE installer
Open installer with 7-zip archive manager
You should find tizen-sdk.zip archive
Open it and extract it into the C:\tizen-studio folder
Create C:\tizen-studio-data folder
Create sdk.info file inside C:\tizen-studio folder
Put following lines into this file
TIZEN_SDK_INSTALLED_PATH=C:\tizen-studio
TIZEN_SDK_DATA_PATH=C:\tizen-studio-data
You can download packages with C:\tizen-studio\package-manager\package-manager.exe
You can start IDE from C:\tizen-studio\ide\TizenStudio.exe
This worked for me, hope this helps...
#Henry was almost correct and his scenario works on CLI/IDE installers.
And here are actual restrictions on Win10x64 tizen-studio 2.0 installation I've found:
pointed SDK location needs to be in your user directory. For example:
C:\Users\MrSmith\Tizen\tizen-studio
Data location could be anywhere, but in case of CLI installation, it will be near SDK folder.
CLI installation actually does unzip only and all further system configuration needs to be done manually. So, if you need only CLI, you could unzip "web-cli_Tizen_Studio_2.0_windows-64.exe" with 7zip or any other proper archiver where you want and do further manual configuration. (See here https://developer.tizen.org/development/tizen-studio/web-tools/cli)
Probably, if you login under Administrator you will be able to install SDK anywhere. Just "Run as administrator" doesn't work, at least for me.
My system params:
Win10 Pro x64
Oracle JDK 1.8.0_152
Have a fan ;)
I solved this problem that way:
create folder (eg Tizen_Studio)
inside created folder create new (tizen_studio and tizen_studio_data)
add all permissions for that folders for your windows account user
select folders in installation proccess
Enjoy!
The regular way which Samsung provides is working for me:
Make sure you have enough disk space (Tizen Studio needs about 700 MB
on Win10)
Create an empty folder with 2 empty subfolders (e.g. Tizen_IDE->studio (subfolder #1) -> data (subfolder #2)
The important part on Windows 10 is to navigate to YOUR users directory:
For example your user name is Bob. Go to C:\ -> Users -> Bob.
Then create there the empty folder "Tizen_Studio" with the 2 mentioned subfolders.
Check with right-clicking on the Tizen_Studio folder -> Properties -> Security if your Username (here Bob) is listed in groups and users. Click on your profile there in the security tab and look if the folder has full access rights inside the checkboxes (btw this should be automatically set if you choose the right described environment).
Now in the installer dialog you can choose the studio folder for the ide/sdk and the data folder for the installing data request path.
Thats it! Just important to install it inside your username folder!
I had this problem as well (on my Windows 8.1 machine), and ended up using the previous version of Tizen Studio Installer (version 1.3)
https://download.tizen.org/sdk/Installer/tizen-studio_1.3/
It even does not work for me in %APP_DATA% and also not running the installer with Administrative privileges.
But I finally found a solution which worked for me:
Create a new and folder somewhere
disable all inherit privileges on this folder
grant explicit all privileges for your users to this folder
remove all other privileges, especially these for Administrator
Use this folder for Installation
Write useful sofware for tizen ;-)
How bout removing 32 bit Java client and installing 64 bit on win 10?
Worked for me, no one seemed to notice that Installer opened in 7zip has an installer.jar which needs to be run with java client.
Thanks for the advises on opening installer with 7zip.
I'm using the VS2013 Installer extension to build a web service installer.
The problem I'm having is that after installing this service, if I go to the inetpub folder, I find no reference to the service I just installed, and the service is evidently installed in the local source folder instead.
This behaviour is consistent regardless of where the installer is run from on the HDD.
If anyone has any insight on this, I'd appreciate it. I assumed that the installation directory would be determined based on the inetpub folder used by the Default Web Site, but it doesn't appear to be.