ADT Plugin issue with user home - android

I'm getting an error from the emulator while it's starting. I know that there is a known issue with the ADT Plugin and the user home, but I think my problem is a little different.
When I try to launch the emulator I'm getting this error:
PANIC: Could not open AVD config file: C:\Users\Adrián\.android\avd\sda.avd/config.ini
As you can see the username is changed from Adrián (Which is configured in the ADT) to Adrián and it's not recognized by the system. I tried to set the ANDROID_SDK_HOME and user.home variables but it's not working.
I guess that the problem is the accent in my username. Any ideas?
Regards.

Well I found a workaround:
The problem is that if you have a username with latin, cyrilic or other non english character it's going to fail.
The steps I followed to solve it were:
Copy directory "[emulator_name].avd" to some place where the path will not contain special symbols symbols (I placed the file in "D:\Emulators[emulator_name].avd).
Open the file [emulator_name].ini in your first directory (In my case C:\Users\Adrián.android\avd)
Change "path=C:\Users\Adrián.android\avd[emulator_name].avd" to "path=D:\Emulators[emulator_name].avd"
Save, close and relaunch your emulator.

As Nucklear said the problem is the character coding:
My solution:
Open the emulator ini file with a text editor (e.g. PSPad) and change the default UTF-8 coding to your country default code which contain the non-english letters( in my case ISO-8859-2 ). Maybe after the change you need to rewrite those characters what cause the problems.
The ini files are in the ...Users\UserName.android\avd directory and named like the emulator you created before with the AVD manager.
(Sorry for my bad english.)

Related

Android Studio - Modding Firefox search suggestions error - "Files under the "build" folder are generated and should not be edited"

I'm modifying the Firefox Android App. I'm trying to change the search suggestions feature from Google to another search engine. To do this I have to change 2 files
The first file I change is:
fenix/app/build/intermediates/merged_assets/debug/out/search/list.json
The second file that I add is:
app/build/intermediates/merged_assets/debug/out/searchplugins/test.xml
After I make these changes and run the app in the emulator to test it out, the changes that I make are reversed/undone/overwritten, and the notice pops up saying "Files under the "build" folder are generated and should not be edited".
What should I do to make my changes save here? Why are the files being reverted back to before I changed them?
Thanks for your help

Moving Android Virtual Device (AVD) from one computer to another

I am trying to clone my AVD to another computer with no much luck.
I want all the application installed on it will be saved together with the data.
I tried to follow some instructions I found on the web but they don't work for me.
Simply copying the avd files including changing the ini files simply causing the AVD to load in a 'vanilla' mode where all the apps and data is lost...
Note, that doing so on my computer works so i can save a copy in that manner. I guess there is another configuration somewhere that I am missing but it is not in the avd folder.
any pointers?
Thanks!
Finally i found my problem and answer here: PANIC: Broken AVD system path. Check your ANDROID_SDK_ROOT value
apparntly the AVD has hard coded base files in the qemu image files. I had to use the HEX editor to solve it.
I have solved same problem by creating same virtual device on same API, run it first time, than copy several ini-files from new AVD to transferred one.

Android studio - Typing text in the editor searches the editor

When I type something in the editor where code is typed, it goes to the search(ctrl+F) bar. When I click anywhere on the editor, instead of cursor appearing the entire text is selected or the line is selected if the line is empty.
It works if I restart it, but happens again. Please help. I don't want to spend most of my programming life restarting android studio.
Just give a chance may help you,
Try to make it default : reset Android Studio
On Windows:
Go to your User Folder - on Windows 7/8 this would be:
[SYSDRIVE]:\Users\[your username] (ex. C:\Users\Amit)
In this folder there should be a folder called .AndroidStudioBeta or .AndroidStudio
Delete this folder (take backup of folder).

Error saving system information. Access is denied. Android studio

I'm getting this painful error everytime I try to save my project for the last couple of days.
I've tried running android studio as administrator but I still get the same error.
I've tried to go to that path but the folder .AndroidStudio doesn't appears under User\Lucian\, and I can access the folder through the Address bar, but the folder seems to be empty.
I'd appreciate any directions on where I should be looking.
I've had the same issue since I installed Android Studio several weeks ago.
Today I found out that the 'Android1.3' folder (and some sub-folders) were invisible. Since I turned on the visibility of this folder, I am no longer getting this error. :)
Hope this will help you too.
Go to the path mentioned inside the error message. If you see any hidden folders listed in there change its properties and set its visibility to normal.
For example, C:\Users\Username\.AndroidStudio2.1 was hidden in my system. Removing the hidden properties worked for me.

Trouble adding raw resource

I'm walking through a small example to hit https web services. It requires building a keystore and placing the resulting bks file into the /res/raw directory. Simple enough. However, I can not access the file through R.raw...
I placed the file into the /res/raw directory, refreshed my project in Eclipse, navigated to the /res/raw directory in Eclipse and confirmed that it showed up in the project. However, when I type R.raw. in my file, the resulting list of possible filenames is empty.
I've tried cleaning and rebuilding, but the project still has no clue what R.raw.mycert is.
What am I doing wrong?
The answer to this question can be found here:
R.raw.anything cannot be resolved
When Eclispe is starting to behave weirdly, my last trick is to remove the project from the workspace and add it again... Try also to quit and restart eclispe
Good luck!
Try this -- find your EclipseWorkspace.
There should be a 'res' directory. So open it.
You will likely NOT find a 'raw' subdirectory.
So create a 'raw' directory, and drop your file into it. (I suppose these have to follow the rwx permissions under Linux that the others follow. I did this in Windows.)
Close the project, then open it again. See if 'res.raw.yourfile' shows up in the package explorer (it should).
I also discovered that 'R.raw.yourfile' is now noticed, and you should find an entry in 'gen/*/R.java' for this.
I think there's a bug in the gen compiler, or maybe Eclipse configuration. gen seems to be very picky about just what kind of resource it wants to look at, and is also doing some name mashing. For example, R.string.xxx finds a string by name xxx, even though the string resources are under 'res.values.string.xml'. So there's clearly a lot of magic going on, maybe special kludges known only to the gods in Mountain View.
Why this fix broke it loose I have no idea.

Categories

Resources