I like to quickly start hierarchyviewer. At the moment i use the prompt to go navigate to .... \AppData\local\android\android-sdk\tools\ and then hierarchyviewer
I think i need to add something to windows 7 path, but i don't know what to do exactly.
Any suggestions?
regards
Suppose you have download and install Android SDK, and extract it in some drive. There are two methods to set PATH:
Use command prompt :
set path=%path%;D:\android-sdk-windows\tools;
Another is follow these steps :
My Computer->Property->Advanced->Environment Variables->Edit Path Variable and add “D:\ android-sdk-windows\tools” into the Path Variables.
In your computer properties-advance-environment variables-system variable ,and you find variable "path", add your android/tools path in it.
The operate like add java.exe in you computer path
C:\Users\user\AppData\Local\Android\Sdk\tools\bin
and add it you your Path User variable
Related
I have such exaption
InvalidPathException: Illegal char at index 9: C:\Users\??????\.android\avd\1.avd (show balloon)
when trying to create emulator. Can I change the location of directory .android?
Open control panel
Then go to System
Then go to Change Environment Variables of the User
Then click create a new environment variables
Create a new variable named ANDROID_SDK_HOME
Set its value to your Android directory, like
C:/users/<username>/.android
I tried suggested solution but did not work for me.
In my case I have to add a different variable so steps for me were:
Open Control Panel
Then go to System and Security
Then go to System
Then go to Advanced system settings
Then go to Change Environment Variables of the User
Then click create a new environment variables
Create a new variable named ANDROID_AVD_HOME
Set its value to your Android directory, like C:/users/<username>/.android
How can I change the path to android\avd in my Android Studio ?
Let say you want to move avd directory from it's default C:\users\<username>\.android\avd to D:\Development\avd
Move avd directory to desired location (ex. D:\Development\avd)
Change or add environment variable ANDROID_AVD_HOME : D:\Development\avd
On Windows: Control Panel > System > Advanced system settings > Environment Variables
If variable doesn't exits Click New... and fill with aforementioned data.
If variable exists then select variable, click on Edit... and replace variable value with the new path (ex. D:\Development\avd)
If you have already AVD, change avdName.ini to D:\Development\avd\avdName (ex. D:\Development\avd\Nexus_S_API_22.avd)
There is a simple way to move avd(in windows):
open the directory: C:\Users\Username\.android\avd, you will find the directory named with your AVD and a .ini file
move the directory to your desirable path, then change the path variable in the .ini file to the new location.
start the Android studio, you will find that the AVD can work properly.
Just move the emulator folder(folder that ends with .avd) to new location and keep the .ini file in same location then change the path to new location in .ini file.
No environment variable needed to be changed or added.
old path
path=C:\Users\nero\.android\avd\Android_Q.avd
new path
path=D:\androidemuators\avd\Android_Q.avd
You can keep your emulator anywhere just need to tell .ini config file where your emulator is located.
Simple with Image solution here, no need to edit Environment Variables here.
Go to C:\Users\<PCname>\.android and move the avd folder to
your desired location. Example D:\Programming\Android Studio\avd
Open avd folder and edit every .ini files, each one of these is represent to your emulator.
Edit file location. See image below for your reference.
Restart your Android Studio.
These are .ini files:
Old path:
New path:
Had the same problem. The reason was that ANDROID_AVD_HOME pointed to my user directory which had a space and umlaut in it. Obviously that causes some trouble with Android Studio.
So defining a system wide ANDROID_AVD_HOME point to d:\development\avd\ solved the problem.
I have question about error while importing import.hello.Hello in android studio, as you see in the picture below. please give me solution how to solve this error
See here #Arpit Patel answer You need to set the path like that
As you told you have 64 bit system then copy this path C:\Program Files\Java\jdk1.8.0_31
Step 1 :- Create JAVA_HOME variable by clicking new and past ( C:\Program Files\Java\jdk1.8.0_31) this path.
Step 2 Then click path variable and edit then past it your path after add semicolon (;) C:\Program Files\Java\jdk1.8.0_31
I am using windows 10 so this windows look like this
Note :- If above dialog not open then
, select path variable and click on Edit…. Locate the end of the current variable value
append the path of jdk, using a semicolon And click ok
I'm having a problem with starting an AVD from Eclipse.
When I start the AVD that I just created, it gives me the following error:
I think that is because of the username in the path...
I tried to just copy the .android to C:\ (=C:\.android) but the manager is just searching in the old path...
I tried to setup a environement variable like this:
Name: ANDROID_SDK_HOME
Value: C:\Users\André Peixoto\.android\.android
But it didn't solve the problem...
What should I try next?
UPDATE
I reinstalled the android sdk and now it doesn't show the weird characters:
But the path for the AVD_2_3_3.ini file still wrong. I think it should be: C:\Users\André Peixoto\.android\avd\AVD_2_3_3.ini instead of C:\Users\André Peixoto\.android\.android\.android/avd/AVD_2_3_3.ini
How should I change that?
I solved that using the solution presented on the comment 26 from here:
No matter your configuration. If the message will be like this
"[2011-11-21 22:31:24 - Emulator] PANIC: Could not open AVD config file: C:\Users\Ярослав.android\avd\my_defult_android_2_3_3_avd.avd/config.ini"
(
"C:\Users\Ярослав.android\avd\my_defult_android_2_3_3_avd.avd"
- it's your AVD device configuration. )
than :
copy direcoty "my_defult_android_2_3_3_avd.avd" to some place where the path will not contain "Ярослав" symbols (I in result had
the path like this
"d:\android\my_avd_devices\avd\my_defult_android_2_3_3_avd.avd").
File "my_defult_android_2_3_3_avd.ini" will contained in directory "C:\Users\Ярослав.android\avd\". Open this file.
Change "path=C:\Users\Ярослав.android\avd\my_defult_android_2_3_3_avd.avd" to
"path=d:\android\my_avd_devices\avd\my_defult_android_2_3_3_avd.avd"
Save and close. Start your application again))).
But at the first time I tried this solution and it didn't work. So I uninstalled the android SDK and eclipse and reinstalled all over again. I also removed the environments variables for android_sdk that I had previously set and set a new one called ANDROID_HOME with value C:\android-sdk.
Now I'm able to run AVD.
I think this is not a ideal solution because each time I create an AVD, I need to do this process. But for now it solves my problem.
Hope this solution helps someone else.
UPDATE - New Solution
I was having some problems with the previous solution so I used a diferent approach:
I created a new account (Administrator) in my Windows which the username havn't accents.
I put my Eclipse folder inside C:\ to have access from the new account.
Now, when I want to work with Android, I change to this new account.
invalid command-line parameter: ..\Documents\android-sdk-windows\tools/emulator-arm.exe.
Any idea how can I solve that problem?
The only problem here is : you have to remove 1 extra space from the Eclipse path where you have declared your Android SDK from your local path.
This u can verify by following steps :
1. Eclipse->Windows->Preferences->Select Android option from left column.
2. See the path : in my case its : D:\Andriod SDK\android-sdk-windows
3. If u observe, there is a space in Android & SDK.
4. Close eclipse and go to the actual D location.
5. Change the name of the Android SDK folder to AndroidSDK. (Just remove the space in betn).
6. Restart the eclipse again and define the new path.
BINGO... Your emulator will run without any problem.
Thanks
Saurabh M. Chande
export PATH=${/home/mohit/}:<android-sdk-linux_86>/tools
this is what i am using..
error:--
bash: PATH=${/home/mohit/}:: bad substitution
this is the path of sdk
mohit#mohit-laptop:~/android-sdk-linux_86$ pwd
/home/mohit/android-sdk-linux_86
Typically you will use
export PATH=${PATH}:<added path here>
try that, to append to your $PATH variable, or just remove the ${} and set it directly, if you wish to replace it. Also keep in mind, this change is not permanent unless you add this to your .bashrc or .bash_profile or equivalent scripts. You can reload them with the
source .bash_profile
command without having to re-login.
The problem is that ${/home/mohit/} is actually treating /home/mohit/ as a variable and attempting to dereference it. My guess is that what you really wanted to do was:
export PATH="$PATH":"$HOME/android-sdk-linux_86/tools"
You can edit your /etc/profile to add the path you need.
Like this:
JAVA_HOME=/opt/jdk1.6.0_30
CLASSPATH=.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export JAVA_HOME
export CLASSPATH
PATH=$PATH:$JAVA_HOME/bin:$JAVA_HOME/jre/bin
It is global.
You can maintain a script file under /etc/profile.d/ and we can use it as global