Copy emulators from other PC - android-studio

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.

Related

Location menu in extended controls of Android Studio virtual device

I need to import a .gpx file to my virtual device (something I'm attempting for the first time today), but I'm having a problem I can't find any reference to anywhere else. I'm either having a moment and missing something that should be obvious or there's an issue with the specific build I have that's causing an issue. I have Android Studio 3.5.3 installed and I've tried multiple different virtual devices.
All references to the menu page referenced in my title that I can find online look like this:
While my version of that page looks like this:
That "Import GPX/KML" button always appears to be greyed out. What am I missing here?
Eventually found the cause of this and a solution. The issue was caused by an Android emulator release that updated the Location settings to include a Google Maps based UI. Release notes here, though I've found the 29.2.11 release on 03/12 also contained the UI change: https://androidstudio.googleblog.com/2019/12/emulator-29212-stable-google-maps-ui.html. On my Windows 10 computers this also removed the option of importing a GPX file (not sure if this was an intentional choice by Google or a bug). Not sure if it will affect Linux or Mac users but I've observed the issue on multiple Windows 10 devices.
The fix I found for the issue was to downgrade my emulator to 29.2.1. That version can be found here:
http://dl.google.com/android/repository/emulator-darwin-5889189.zip
http://dl.google.com/android/repository/emulator-windows-5889189.zip
http://dl.google.com/android/repository/emulator-linux-5889189.zip
In Windows, next go to C:\Users[username]\AppData\Local\Android\Sdk\emulator. Those of a cautious disposition can backup this folder, but either way the package.xml file will be needed and everything else can be moved or deleted. Edit the details in the XML to match the version number of the downloaded emulator. Copy the downloaded files to this location along with the package.xml. Then just make sure not to download the update again when Android Studio is opened.

Error installing tizen studio on windows 10

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.

how to add android SDK folder which is located on network drive

my Android skd folder is located on a network drive
how can i add it to android studio?
the path is like this : \192.168.1.1\WD_My_46481\programs\Android\Android.SDK.Tools
Accessing SMB shares via it's network path is often not possible directly within programs.
AFAIK this also applies to the Java Runtime Environment - hence it also applies to AndroidStudio because is is a Java based program.
To use a network share map it to a drive letter and use the drive letter instead.
go to file-> project structure ...-> SDK Location and provide path to your Android SDK like this
\\online\pathToSDK\SDK
in your case would be
\\192.168.1.1\WD_My_46481\programs\Android\...SDK

Loading ROMS to Emu OS

I recently downloaded Emu OS (a Linux distro) and installed it within virtual box. Everything works fine but I am unable to actually run the roms within an emulator. I tried a GBC rom that is in .zip format and I copied and pasted it into the GB and GBC folder, but the emulator itself isn;t able to recognize it. Does anyone have any experience with this or have gotten it to work?
One must simply drag the ROM file to the directory that is associated with the respective emulator. This can be done via the file manager. Afterwards, reboot and select the emulator that you desire and your game should show up in the list.
Note that EmuOS is extremely old and no longer maintained. RetroPi is a good alternative and putting ROMs on that is the same as EmuOS.

Creating Content Project on Monogame

I am trying to use Monogame for the first time.
I found creating a content project is impossible on Visual Studio 2012,
so I would like to know if I can create some .xnb (contents) files from another PC and move it in my PC that Visual Studio 2012 is installed.
This is because I failed to install Windows Phone SDK in my PC for some reason.
My OS was Windows 7 so I could not install Windows Phone SDK.
So, is it possible to create a content project on another PC and move it into my PC? Or, can I copy the .xnb files to my PC?
Thanks in advance for your help.
You can create the xnb files from whichever system you want by using an XNA game project.
The steps to follow would be:
Create a new XNA Game project (it needs to be a game and not a content project).
Add the assets you want to port into the content project of the game.
Compile.
Go to the output folder and copy all the xnb files.
In your monogame project, add the existing xnb files to the project's Content folder.
Change their properties to: "Content" for "Build Action" and "Copy if newer" for output directory.
You can find a tutorial (written by me) explaining exactly how to use sounds and spritefonts in Monogame here. This can be helpful given that these files need to be created from an external project as Monogame was not able to used them without being in xnb format; and was also unable to create this format for itself.
One last thing, it is also possible to install XNA in VS 2012/2013 and Windows 8/8.1 without any problem by using XNA Refresh. This may help you in avoiding the need to use another computer for this process.

Resources