i got an error - Android Studio

im new to this forum and i need help in my android studio
i always try to upgrade android sdk platform tools and i get this error
java.io.IOException: Cannot run program "C:\Users\wadda\AppData\Local\Android\Sdk\platform-tools\adb.exe": CreateProcess error=2, The system cannot find the file specified
i wish u can help me and i wish u link me other forums so i can ask there as well about android studio

Have you specified the path to jdk location on your Android studio?
Goto Files->Other Settings->Default Project Structure.
Under Platform Settings Select Android sdk...under JDK location look if everything is okay.

Unity Dev said:
Have you specified the path to jdk location on your Android studio?
Goto Files->Other Settings->Default Project Structure.
Under Platform Settings Select Android sdk...under JDK location look if everything is okay.
Click to expand...
Click to collapse
im so new to android studio but its on recommended and its C:\Program Files\Android\Android Studio\jre

Related

[SDK] Android SDK addon for Motorola Atrix4G

Anyone that is in need of it .. attached here is the Motorola Atrix4G addon for the Android SDK .. also the instructions for installation and execution.
http://www.mediafire.com/?73hkz09wr0l1kqe
Installing and Using Motorola SDK Add-ons
A Motorola SDK add-on, when added to the Android™ SDK, allows you to run and debug your applications on an emulated Motorola handset. Note that while the device image that the add-on presents does not necessarily reflect the look of the actual device, from a functional standpoint it should be a fairly faithful emulation of the actual handset.
Installing the add-on
To install the Motorola SDK add-on, unzip it, and copy the resulting directory to the directory named add-ons within the Android SDK that you are using (if you are using MOTODEV Studio for Android and are not sure where it placed the Android SDK, check the SDK Location field in the Android preferences dialog).
** NOTE: If MOTODEV Studio for Android or Eclipse™ were running when you copied the SDK add-on, you will need to restart it for the add-on to be recognized by your development environment.
Using the add-on
In order to run or debug your applications on an emulated Motorola handset, you must first create an AVD that has its AVD Target set to reference the SDK add-on. You can then deploy your applications to it. When creating your projects, you can either target the emulated Motorola device specifically (which you would do if your application runs only on that device), or you can select a more general, compatible target such as Android 1.5. The following sections detail the steps involved in each of these tasks.
Creating an AVD
To create an AVD named "Motorola" using the command line, do the following (you may need to be within the Android SDK's "tools" directory):
android list targets
The details for each possible target are listed, starting with a unique ID number that identifies that target. Make note of the ID number for the Motorola add-on you want to target.
android create avd -n Motorola -t target-ID
For target-ID supply the ID number for the target you obtained from the previous step.
To create it from within MOTODEV Studio for Android:
Select Android AVD Manager from the Window menu. The Android Virtual Devices Manager dialog appears.
Enter Motorola (or whatever name you want to give the new AVD) in the Name field.
From the Target list, select the target named for the Motorola device you are targeting.
From the Skin list, select the skin named for your target device.
If you want the emulated device to have an SD card, in the SDCard field either specify the path and filename to a file containing an existing SD card image, or specify a size (such as 64M) to create a new, empty SD card image. Leave this field blank if the device isn't to have an SD card.
Click Create AVD.
Click Finish to close the dialog.
When creating Run or Debug configurations, you can now select this new AVD when choosing a target device.
**NOTE: If your newly-created AVD does not appear in the Device Management view, click Refresh, which is located in the top right corner of that view.
Starting the AVD
If you start a Run or Debug configuration that specifies a Motorola SDK add-on AVD as the target device, the AVD will be automatically launched for you. If you want to start the AVD without deploying an application to it, you can do so either from the command line or from within MOTODEV Studio for Android. From the command line, the following command will start the AVD named "Motorola":
emulator -avd Motorola
To start it from within MOTODEV Studio for Android, select the AVD from within the Device Management view and click Start.
Targeting the Motorola device
If your application is designed specifically for a Motorola device, select the corresponding Motorola SDK add-on as the project target when creating the project.
To change an existing project so that it targets the SDK add-on from an Eclipse-based IDE such as MOTODEV Studio for Android:
Right-click the project in the Package Explorer and select Properties.
From the list of properties select Android.
The project build target is shown in the right side of the dialog; select the one named for your target device.
If you are not using an Eclipse-based IDE you can change your project's target with the android update project command; see Google's developer documentation on developing in other IDEs.
Awesome exactly what I was looking for!! Thanks for the Info looking foward to working with this more. XD
Djazin said:
Awesome exactly what I was looking for!! Thanks for the Info looking foward to working with this more. XD
Click to expand...
Click to collapse
You're welcome
What features does the addon add? I'm assuming nothing I can play with right now because the main app I'm working on now is in Necessitas/Qt, but when I get back to playing with Eclipse what could this do?
Hmm, that's weird. Maybe I'm missing something, but why set up a mediafire link for it when it's freely available from the Motorola development website?
Plus if you download it from there, you can get install directions, USB drivers, motodev studio, and even some sample apps...

[Q] {HELP} My captivate not connect to my laptop by USB

I've install [ROM][2.3.5][10/14/11] MIUI Development 1.10.14 http://forum.xda-developers.com/showthread.php?t=1066885.
But when my captivate not connect to laptop by USB.
I try hidden code: *#7284# but it not work in my phone.
Help me
Reinstall drivers
Install Android sdk because your computer probably sees it as a nexus s
Sent from my SAMSUNG-SGH-I777
To install sdk, you need to install (or already have) Java JDK installed.
mrhaley30705 said:
To install sdk, you need to install (or already have) Java JDK installed.
Click to expand...
Click to collapse
from the Android SDK page:
If you downloaded the Windows installer (.exe file), run it now and it will check whether the proper Java SE Development Kit (JDK) is installed (installing it, if necessary), then install the SDK Tools into a default location (which you can modify).
its not a requirement to install it on your own any more, apparently
Yep, that's new to me.
mrhaley30705 said:
Yep, that's new to me.
Click to expand...
Click to collapse
it would appear that with each new release of sdk, that they make it more and more noob friendly. thank god for that
now all they need to do is make the installer include adb in the environment path automatically (or by choice, via installation selection)
explaining to a noob to:
install java jdk
download android sdk > unzip it in a location you can find easily
add adb to environment path OR cd c:\path\to\sdk\folder
hell, with most of the noobs you lose them at install java jdk....

[Q] Android Studio net recognizing Java

I have a x86 JDK and a x64 JDK and Android Studio recognizes none of them, so can't open it. Any way to fix the problem?
MatB
JAVA_HOME
MatB7 said:
I have a x86 JDK and a x64 JDK and Android Studio recognizes none of them, so can't open it. Any way to fix the problem?
MatB
Click to expand...
Click to collapse
open the bash profile script using the vi editor
Code:
vi ~/.bash_profile
now
Code:
export JAVA_HOME=/usr/java/jdk1.5.0_07/bin/java
and Btw you dont need both the jdks

Android Studio does not start, all the paths are written JAVA_HOME, JDK_HOME, PATH

Android Studio does not start, all the paths are written JAVA_HOME, JDK_HOME, PATH does not help. Windows I have x64. After installing the program, the executable studio64.exe starts, but nothing happens. When I open the startup file studio.exe, I get an error:
Failed to load JVM DLL c:\Program Files\Java\jdk-9.0.1\bin\server\jvm.dll if you already have a 32-bit JDK installed, define a JAVA_HOME variable in Computer > System Properties > Sysytem Settings > Environment Variables.
JAVA SDK works, checked, the latest version of jdk-9.0.1 is installed from the oracle site, checked on Eclipse. Help please, I do not know what to do.

Is CMake part of Android Studio?

Is CMake part of Android Studio? When I tried to do a Gradle Sync in Android Studio, I got an error that the CMake is too early a version and I need to update it. But I get this error even if I uninstall CMake. This tells me that CMake must be embedded somehow in Android Studio. So, how can I fix this? Please help.
This happens even if I remove cmake from the command line. So it seems that cmake is embedded into Android Studio. So how do I update cmake if it is part of Android Studio somehow?
When running the Gradle Sync command in Android Studio I get an error message that the CMake is outdated and I need to download a later version.

Categories

Resources