How to delete files from android old sdk folder under Windows 10 - android

I install android sdk into android-sdk folder and then android studio with android-sdk into path sdk by installer.
I used just the path sdk from android studio.
I try to delete the old android-sdk but I got this error:
...\AppData\Local\Android\android-sdk\platform-tools\AdbWinUsbApi.dll
Access is denied.
I used also this to try to get access:
takeown /f android-sdk /r /d y
icacls android-sdk /grant administrators:F /t
also with my username account.
How to remove the folder with all content?

This is fixed new Android Studio version 2.2.3 new instalation.

Related

Download and install platform-28_r06 manually for android studio

I'm trying to run virtual device with in android studio. It needs to install platform-28_r06.zip, but download process doesn't complete due low internet speed.
I want to download this file manually but I don't know where I should extract the content.
SDK path is C:\Users\lion\AppData\Local\Android\Sdk.
Explore your SDK path.
You'll see a platforms folder. Here are android-* platforms.
For API-28, the path is then: SDK/platforms/android-28/
The platform tools are in SDK/platform-tools/.
you can download through cmd locate the sdkmanager.bat in android studio folder sdkmanager.bat --sdk_root=${ANDROID_HOME} "platform-tools" "platforms;android-28"

set android home in ubuntu

i downloaded the sdk from android official website and installed the latest build tools using android sdk manager. I set android home as said here
but when i run cordova build android i got ANDROID_HOME is not your path.
Then i did as same as here but no luck.
Please help me to solve this.
Please verify that the SDK you downloaded really is located at the location you set. Do this by:
echo $PATH
and
echo $ANDROID_HOME
and verify that the last part of PATH and ANDROID_HOME is identical with where you unzipped the Downloaded zip.
If referring to here than you would have to replace "/opt/android/sdk" with the folder where you unzipped the SDK.
If using sudo you need to either call sudo with sudo -E flag or add the ANDROID_HOME to the Defaults env_keep in /etc/sudoers

adb.exe not found after installing Android Studio

I installed Android Studio 1.2.1.1 and also created virtual device. I am trying to install one app (APK file) through command line but I could not find adb.exe file on my machine. Please help where should I look for adb.exe file on the machine.
The adb.exe file will be located at your Android SDK folder, inside platform-tools
...\android-sdk-path\platform-tools\adb.exe
The default location where Android SDK is installed is:
C:\Users\<insert username here>\AppData\Local\Android\sdk\
So adb will be located at:
C:\Users\<insert username here>\AppData\Local\Android\sdk\platform-tools\adb.exe
To access it on a command line, open cmd.exe and type:
cd C:\Users\<insert username here>\AppData\Local\Android\sdk\platform-tools\
and then your normal command
adb <insert parameters here>
May be adb.exe file is missing form your computer. Try deleting platform-tools folder and re-download it from SDKManager.
Mac OS El Capitan has it located at /Users/[username]/depot_tools/src/chrome/browser/devtools/device
In my case, adb.exe got deleted after Android Studio update. I copied all the contents under platform-tools to another directory, deleted all the contents under platform-tools and installed platform-tools from Android SDK Manager.
Make sure in Android Studio, under System Settings > Andorid SDK > tab called SDK Tools, you have checked this option:

Android sdk manager not opening

My sdk manager is not opening..when i try to open it from within eclipse it displays :
[2014-02-01 17:37:06 - SDK Manager] [SDK Manager] 'xcopy' is not recognized as an internal or external command,
[2014-02-01 17:37:06 - SDK Manager] [SDK Manager] operable program or batch file.
I had a problem opening eclipse itself but i solved it .. the problem was that sdk was searching for jre in the android sdk (eclipse) folder itself but it was in C:\program files\java\jre7 .So i copyed jre7 from there to eclipse folder and renamed it to jre..and eclipse started working....BUT THE SDK MANAGER DOES NOT START IT JUST FLASES FOR a sec.
Open sdk/tools/android.bat in notepad
set java.exe path in android.bat file
your java.exe path like that
set java_exe="C:\Program Files (x86)\Java\jre6\bin\java.exe" in android.bat file
Follow these steps and it help for me after a long time with all ways above not effect on windows7 64-bits, no need to have JAVA_HOME system variable or edit android.bat
Download Android Studio within Android SDK, Java JDK 64 bits and Java JRE x86
Install Java JRE first, then install Java JDK 64 bits, and the Android Studio last.
Now you start Android Studio first (64 bits version) it require to have JAVA_HOME setting to run JVM, just copy the jdk.x.x.x(version) folder (my PC: jdk1.8.0_25 from "C:\Program Files\Java\")folder to Android Studio folder and rename that folder (in Android Studio) to "jre" (jdk1.8.0_25 -> jre).
Now it work for me to open Android SDK Manager from anywhere, if you want to use eclipse (not official now) just copy the java jre.x.x.x(version) x86 folder (from where you install before) to Eclipse and rename to "jre". After coping, choose the Android SDK path in Eclipse to use, It works for both Android Studio and Eclipse.
Mind your antivirus if still refusing you (remove antivirus and install after you sure it not cause problem)!
1)go to sdk-tool-android.bat file and open it by right click then edit and then set java_exe path.Yo have to set path as in step 2
2)set java_exe=C:\Program Files\Java\jre7\bin\java.exe Location of your JRE may vary as might installed in other location
3)After doing this Run Android studio as administrator and also run your Eclipse as administrator
Then Have Fun..
If you face an "xcopy" problem please try running sdk/tools/android.bat as admin. If it still happens this may mean that there is a problem with proper reading of a relative path in the batch, and in order to solve it you can amend one line of the batch from "xcopy %swt_path% %tmp_dir%\%swt_path% /I /E /C /G /R /Y /Q > nul" to "C:\Windows\System32\xcopy %swt_path% %tmp_dir%\%swt_path% /I /E /C /G /R /Y /Q > nul"

How to Configure Android SDK for Titanium in Mac OS Lion?

I have successfully installed Titanium Studio. SDK Version:1.7.5.Now I have downloaded Android SDK from http://developer.android.com/sdk/index.html
Now i am trying configure Android SDK but when i am Providing Path I am Getting Error like" Could not locate the Android SDK at the given path" I have attached Screenshot as well.
Step 1) Download the android SDK From here.
Step 2) unzip android-sdk ( whichever downloaded )
Step 3) In OS X, there is no /opt directory by default. you explicitly have to create it. Run following command.
sudo mkdir /opt
Step 4) Run following command to enter /opt directory.
cd /opt
Step 5) Run following command to create link of android-sdk. Assume that you have android-sdk located under Applications
sudo ln -s /Applications/android-sdk-macosx/ android-sdk
Step 6) enter to android-sdk/tools directory
cd /opt/android-sdk/tools/
Step 7) or directly enter following command in terminal.
/Applications/android-sdk-macosx/tools/android
Step 8) select necessary packages & download them. Sample screen-shot supplied here.
Open this URL - http://developer.appcelerator.com/question/32161/problem-with-the-android-sdk-installation-in-titanium. They have posted a similar kind of Q-A there.
and if you don't want fall in all this steps then just download eclipse and install ADT plugin for eclipse and download all the packages using ADT plugin.
You can get more info here,
http://developer.android.com/sdk/installing.html
I downloaded android SDK using this way in windows and mac both.
After googling i have come to know the all details of Installation of Android SDK in Titanium.Please refer this image.You can find this image at http://developer.appcelerator.com/get_started
Select the directory which holds your Android SDK with the browse button. Type an ending slash ('/') after the path (Android SDK directory). Now you can select your SDK in the popup next to Default Android SDK.
Locate your Android SDK directory, e.g. /usr/local/android-sdk-macos
Create an empty directory named android-7 within the platforms directory:
mkdir /usr/local/android-sdk-macosx/platforms/android-7
Now try again and select the Android SDK directory within Eclipse.

Categories

Resources