[Q] Problem starting SDK - Dell Streak 7

Hi all,
I've just bought a Streak 7. So the first thing I meant to do is root it! So I downloaded SDK (more exactly the file installer_r15-windows.exe). When I start sdk manager.exe this message pops up:
"The AVD manager normally uses the user's profiledirectory to storeAVD files. However it failed to fine the default profile directory.
To fix this, please set the environment variable ANDROID_SDK_HOME to a valid pathsuch as %USERPROFILE%".
I set the ANDROID directory first under C:\USERS\USERPROFILE, then under C:\ but it's the same. I run windows seven pro 32bit. I also tried to install SDK in another pc which runs Ubuntu 11.10 but I'm a total newbie and I can't install file .tar. Ehm. But this is another movie.
Anyway is there anybody who helps me out there before I launh my brand new poor Streak as a frisbee'
Thank you in any case!

sure, I have sdk but dont use it much. but it definetly sounds like this variable needs to be added to your PATH. click your windows start button, right click computer and click properties. then click on advanced system settings, then you should see an enviornmental variables button on the bottom of this window. edit.. add. new.. system variable... ANDROID_SDK_HOME then set the path to C:\android\sdk\avdlocation. dont forget to restart computer anytime adding anything to system variable. something like this Is my best guess. if that doesnt work I can help to research it should be a fairly common issue.

It works! Thanks a lot!!

Related

[ADB] adb server is out of date. killing...

I am keep getting this message whenever I try to adb. It corrects itself and works fine after. But it annoying waiting that additional few seconds... I didnt have this before. Any idea why I am getting it now?
what sdk version are you using? also have you gone to task manager and tried ending adb.exe?
david1171 said:
what sdk version are you using? also have you gone to task manager and tried ending adb.exe?
Click to expand...
Click to collapse
I am using the latest SDK. Thanks! That fixed it. Ending adb.exe in Task Manager... I was messing around cos I cant get fastboot to work. I go into FastbootUSB, connect my usb, run "fastboot devices", and I get no results. It just waits for my next command.
I tried killing adb.exe after I wrote an adb command and it didn't do anything. I keep getting that out out date killing .... can anyone help? thanks!
I have the same problem. Can't get rid of that stupid message.
i was having the same problem, i took ADB.exe and adbwinapi.dll from 1.5r2 SDK and put it in the new SDK Tools folder, problem was fixed
palosjr said:
i was having the same problem, i took ADB.exe and adbwinapi.dll from 1.5r2 SDK and put it in the new SDK Tools folder, problem was fixed
Click to expand...
Click to collapse
I did that and still have that problem ...
could someone please help me .. thanks!
If anyone runs into this problem I fixed mine with the adb.exe from the new "universal" sdk. I downloaded it and just pasted that adb.exe into the existing tools folder. May not be recommended but I did not want to change my setup.
while your phone is in recovery and plugged in, go to device manager and see if there is a listing called adb interface. if so, do you know how to manually update the drivers? by pointing the driver update to the usb folder of the sdk?
konzern
running my adb shell ums_enable is no longer working says ums not found ?
edit to m y post i found a alternative thank god!
1.plug in your phone and open command prompt
2.change directories to where u have ur sdk stuff (ex. cd c:\thenameofdirectory/tools)
3.type this in
adb shell
echo /dev/block/mmcblk0 > /sys/devices/platform/usb_mass_storage/lun0/file
I am curious if any of you loaded Droid Explorer? I loaded it, played around with it, and it was pretty cool for the screenshot and screencast stuff. But, later I noticed I kept getting the "adb server is out of date. killing..." I searched through these threads and Google for a solution, but nothing seemed to work. I could enter "adb remount" and it might work about 1 time in 5. Even adb devices would fail and fail before finally reporting my device. After I uninstalled Droid Explorer. The problem stopped immediately. Now that I think about it, I think Droid Explorer runs a service. Maybe after uninstalling, the services stopped, fixing this problem. If not Droid Explorer, maybe some other program that is trying to detect the device at plugin. Just my experience.
I just killed the DroidExplorer service, and set it to manual. Problem solved.
I've had no luck with DE anyhow, so it probably won't get started again any time soon.
_zygo_ said:
I am curious if any of you loaded Droid Explorer? I loaded it, played around with it, and it was pretty cool for the screenshot and screencast stuff. But, later I noticed I kept getting the "adb server is out of date. killing..." I searched through these threads and Google for a solution, but nothing seemed to work. I could enter "adb remount" and it might work about 1 time in 5. Even adb devices would fail and fail before finally reporting my device. After I uninstalled Droid Explorer. The problem stopped immediately. Now that I think about it, I think Droid Explorer runs a service. Maybe after uninstalling, the services stopped, fixing this problem. If not Droid Explorer, maybe some other program that is trying to detect the device at plugin. Just my experience.
Click to expand...
Click to collapse
Yes, this is a problem that occurs after installing Droid Explorer. The service also takes a lot of idle CPU time. I have uninstalled it due to this and other reasons.
Damn, Droid Explorer! I uninstalled and I am still having this problem. Damn !
OK, I got droid explorer and adb playing nice together. I deleted the SDK from my PC, and reinstalled droid explorer full (which comes with the SDK already). Then I just added the new tools directory droid explorer installs to the system path. You can find directions on how to do that here -> http://wiki.xda-developers.com/index.php?pagename=HTC_Sapphire_Hacking#sec02 . Instead of using C:\AndriodSDK\Tools\ for the string I added, I used the default location where droid explorer installs the tools directory ( C:\Program Files\Droid Explorer\SDK\tools ). Now I have the best of both worlds !
lotherius said:
Yes, this is a problem that occurs after installing Droid Explorer. The service also takes a lot of idle CPU time. I have uninstalled it due to this and other reasons.
Click to expand...
Click to collapse
I also noticed I was getting the blue screen of death, which I hadn't seen in years. I think DE was causing that, too, because I haven't had the BSOD since uninstall. So two problems I didn't think were related seem to have been caused by Droid Explorer. I think it's a pretty cool program, but I'd rather do things the "old fashioned" way.
Can any of you point me in the direction of how to use ADB to take a screenshot? Maybe it can't. Thanks.
Edit: I found it...Through DDMS!
sacredsoul said:
I am keep getting this message whenever I try to adb. It corrects itself and works fine after. But it annoying waiting that additional few seconds... I didnt have this before. Any idea why I am getting it now?
Click to expand...
Click to collapse
Sounds like you have droid explorer installed, goto the sdk folder in droid explorer (c:\program files\droid explorer\sdk) copy the 2 folders (platform and tools) to your own sdk folder.
billquinn1 said:
If anyone runs into this problem I fixed mine with the adb.exe from the new "universal" sdk. I downloaded it and just pasted that adb.exe into the existing tools folder. May not be recommended but I did not want to change my setup.
Click to expand...
Click to collapse
Can you link to the "universal" download please? Probably missing something obvious here, but can't seem to find any other version than the most recent r05.
Thank you - worked a treat
palosjr said:
i was having the same problem, i took ADB.exe and adbwinapi.dll from 1.5r2 SDK and put it in the new SDK Tools folder, problem was fixed
Click to expand...
Click to collapse
where can i get 1.5r2 SDK?
THX BRO!

[DEV] DDMS not working under 64 bit..

Well it is actually more windows related problem I believe. I have Windows 7 Home Premium 64 bit version and I can't get DDMS to work. The 0.5sec popup says that it can't find the JAVA. It is searching for it in C:/Program Files/Java, mine is/was installed in Program Files (x86). I reinstalled JAVA installing it to program files, but the problem hasn't fixed. Any ideas? Is there a way to run ddms under 64 bit operating system?
BolecDST said:
Well it is actually more windows related problem I believe. I have Windows 7 Home Premium 64 bit version and I can't get DDMS to work. The 0.5sec popup says that it can't find the JAVA. It is searching for it in C:/Program Files/Java, mine is/was installed in Program Files (x86). I reinstalled JAVA installing it to program files, but the problem hasn't fixed. Any ideas? Is there a way to run ddms under 64 bit operating system?
Click to expand...
Click to collapse
I just edited the .bat file to explicitly state where I wanted it to find java.exe.
It makes some very specific assumptions about where to find it.
I'm not at my home machine right now, but as I recall there was a second .bat file that looks for java.exe. I changed that one. Seems to be sourced by several different .bat files in the tools folder.
Will try to do that on my own, but if you find some time and be kind enough to post the instructions, I'd be really happy
Will report back if I manage to do something about it.

Start from scratch, HOW to use Android SDK?

Hi..
I have been through half the internet, but i cudnt find one post or set of instructions on HOW to use SDK properly by noobs...
Let me be very honest about it...
Its really hard to understand if u dont know programming....
To begin with how do you "ADD PATH"
Add what, where, how???
No instructions at all...
Also, every-time i run that damn sdksetup.exe...some two windows are open and just NOTHING HAPPENS...
PS: PLZ don't ask me to "simply" "add" "Location" in the "Path" cause I have no idea what that means...and no, im not happy to make this thread either...
ALL I WANT TO DO IS CONNECT MY COMP to the damn DROID...
What OS do you have?
jwte said:
What OS do you have?
Click to expand...
Click to collapse
I have Windows XP SP 2...
I have posted pix of where I am stuck...
(all this comes pretty much from memory, I don't have any windows handy)
Rename the folder so that it doesn't have any spaces. ie. instead of "Mount SD", call it "Mount_SD" for convenience. it is possible to get it to work with spaces, but I suspect it is beyond your current abilities.
Go to Start->Run (or Win+R)
Enter
cmd.exe
in the resulting dialog.
in the newly opened command line window type:
set PATH=$PATH;D:\Froyo\Mount_SD\android-sdk-windows\tools
now you can refer to adb directly, ie typing:
adb devices
should give you a list of connected android devices and emulators
There is a way to make the addition to PATH permanent, but it involves right-clicking on "My Computer" and after searching in there for something like "Environment Variables" editing the PATH statement there. Unfortunately, I don't quite remember where exactly this is...
Right click 'My computer' , properties, advanced tab, click on the environment variables button, go to the path variable, add a ; at the end, and at the path string there.
but running an SDK to connect the phone, when you don't know how to set the path variable might not be the best solution.
SDK on Windows 7
hello,
did you follow the link developer.android.com/sdk/index.html
But what do you want do with the SDK, just access the file on the Android device or develop an application?
I have had no problem with latest version of the SDK on win7, but the I have to lunch Haret when my X1 was connect to the PC with Winmo and then it's has been recognized as a HTC dream (see attach).
tchatzi said:
(all this comes pretty much from memory, I don't have any windows handy)
Rename the folder so that it doesn't have any spaces. ie. instead of "Mount SD", call it "Mount_SD" for convenience. it is possible to get it to work with spaces, but I suspect it is beyond your current abilities.
Go to Start->Run (or Win+R)
Enter
cmd.exe
in the resulting dialog.
in the newly opened command line window type:
set PATH=$PATH;D:\Froyo\Mount_SD\android-sdk-windows\tools
now you can refer to adb directly, ie typing:
adb devices
should give you a list of connected android devices and emulators
There is a way to make the addition to PATH permanent, but it involves right-clicking on "My Computer" and after searching in there for something like "Environment Variables" editing the PATH statement there. Unfortunately, I don't quite remember where exactly this is...
Click to expand...
Click to collapse
Thanx a lot...and sorry for replying a little late...I was out for a shoot...Yes..i did EXACTLY what u told me...Now what do i do?
Ok i wrote this:
'set PATH=$PATH;D:\Froyo\Mount_SD\android-sdk-windows\tools'
THEN
'adb shell'
So i got this: 'error: No device found'
sentry23 said:
Right click 'My computer' , properties, advanced tab, click on the environment variables button, go to the path variable, add a ; at the end, and at the path string there.
but running an SDK to connect the phone, when you don't know how to set the path variable might not be the best solution.
Click to expand...
Click to collapse
I lose you after clicking on Enviornment variables...
I cant see any Path variables..
There are 2 sections:
'User variables' AND 'System Variables'
circleofomega said:
I lose you after clicking on Enviornment variables...
I cant see any Path variables..
There are 2 sections:
'User variables' AND 'System Variables'
Click to expand...
Click to collapse
What is the problem with using google?
a simple search for "windows path variable" will give you tons of information about what you tried to do...
example: http://www.computerhope.com/issues/ch000549.htm
btw: this thread has nothing to do with "XPERIA X1 Android Development"
cyberdesigner.net said:
What is the problem with using google?
a simple search for "windows path variable" will give you tons of information about what you tried to do...
example: http://www.computerhope.com/issues/ch000549.htm
btw: this thread has nothing to do with "XPERIA X1 Android Development"
Click to expand...
Click to collapse
If I am connecting my "X1" running "Android"...where do u expect me to post questions regarding it??? In the Windows 7 forum???
And secondly I figured out how to run it...but i cant read the mem card thru the SDK...i can just see the screen of the Android phone...
circleofomega said:
If I am connecting my "X1" running "Android"...where do u expect me to post questions regarding it??? In the Windows 7 forum???
Click to expand...
Click to collapse
your question was more in the term:
how do i configure/use my $OPERATING_SYSTEM to use $SOFTWARE?
why do you want to access the storage card from adb?
if you try to install software do it via adb itself:
Installing an Application after your connected
You can use adb to copy an application from your development computer and install it on an emulator/device instance. To do so, use the install command. With the command, you must specify the path to the .apk file that you want to install:
adb install <path_to_apk>For more information about how to create an .apk file that you can install on an emulator/device instance, see Android Asset Packaging Tool (aapt).
Note that, if you are using the Eclipse IDE and have the ADT plugin installed, you do not need to use adb (or aapt) directly to install your application on the emulator/device. Instead, the ADT plugin handles the packaging and installation of the application for you.
Click to expand...
Click to collapse
cyberdesigner.net said:
your question was more in the term:
how do i configure/use my $OPERATING_SYSTEM to use $SOFTWARE?
why do you want to access the storage card from adb?
if you try to install software do it via adb itself:
Click to expand...
Click to collapse
No..i dont want to install anything...I just want to copy things, like apps, ringtones Music etc etc...on the SD card thru android..Thats it....
I just want to read my Mem card thru android + SDK for copying files..i dont install anything from the comp..
No..i dont want to install anything...I just want to copy things, like apps, ringtones Music etc etc...on the SD card thru android..Thats it....
I just want to read my Mem card thru android + SDK for copying files..i dont install anything from the comp..
Click to expand...
Click to collapse
Well, if you're imagining copy/paste files through windows explorer, we're not there yet.
However, ``adb push D:\myfile.mp3'' and ``adb pull /sdcard/media/song.mp3'' work.
In short, get comfortable with the command line or forget about it for now.
If ``adb devices'' reports "No devices found", remember that you need to connect the USB cable in windows mobile, select ActiveSync (there's no need to actually have ActiveSync running on your PC) and then run Haret with the USB cable still plugged in.
[OT]
I am developing android applications on the xperia and can attest that the SDK works as expected/advertised. It is not user-friendly in the sense you want it to be though
[/OT]
circleofomega said:
No..i dont want to install anything...I just want to copy things, like apps, ringtones Music etc etc...on the SD card thru android..Thats it....
I just want to read my Mem card thru android + SDK for copying files..i dont install anything from the comp..
Click to expand...
Click to collapse
You can get Droid Explorer Here
No messing around with the SDK and you can copy/paste, do most stuff
A little buggy, but works for most things
But why do you are loosing so much time on setting the PATH, it's not necessary to do this. if you want use the adb just go in the direcortory where it's installed and that's it. In any case you could not expcet to se the sdcard folder like a windows folder. Once connect correctly, adb devices list a device on line, you can "talk" with the device like this "adb shell" ...

[Q] HELP ASAP!!!!!!!!About to Wipe Laptop...Help Setting Up for Development!

So far this is what I plan to do:
- Backup all Win7 Files to Linux Mint Parition
- Reboot and Re-Install Win7 on its partition
- Boot into Win7 and setup an user account
- Reboot into Linux Mint
- Move backed up files to Win7
- Reboot into Win7
- Go into Computer Management and Wipe Linux Mint Partition
- Resize the partitions
- Reboot into Ubuntu 10.04 DVD
- Install Ubuntu on free space
- Boot into Ubuntu for first time
- Set grub2 for windows 7 default OS
- Boot into Win7 and begin setup for android development:
Windows 7:
- Install android sdk by placing the extracted folder on the root of my C: drive
- then i'm going to launch the sdk.exe and install all the available packages (may take 30 minutes or so on my 6mb wifi connection)
- then after that i'm going to install java jdk 1.6
- then i'm going to create a new user variable in the enviroment variables that will have the path to C:\androidsdk\platform-tools;C:\Program Files\java\jdk1.6xx\bin and name it android
- then after that i'm going to install eclipse and set it up by changing the path to the location of androidsdk on my c drive
- i'm also going to download ppcgeeks apk signer.exe and install that for easy signatures
- then i'm going to download some other tools (HxD, notepad++, apk manager v4.8, etc.)
- once i upzip them to a directory probably C:\users\kifno\heroc\tools or install the .exe file i'm going to launch apk manager
- after that i'm going to try and decompile/compile apk files (which i should be able to after a fresh wipe)
so the whole point of this is to be able to decompile/compile apk files without errors
Ubuntu:
- download java jdk and install it through terminal
- then i'm going to download apk tool
- after wards i'm going to try and decompile apk files and recompile them
So my main question is, is anything i'm doing in the set up process going to prevent me from being able to use apktool via apktool itself or apk manager, for decompiling/compiling apk files? I want to make sure I'm not doing something wrong before I get back into setting my system up for developing and scripting and theming again (for themes all it takes is smali, photoshop, and androidsdk for me ...okay maybe a few other programs too along with my imagination )
Hopefully my setup for being able to use apktool isn't screwing anything up
Also I'll be using windows 7 64x ultimate and 32 bit java/eclipse ide for java developers/and all other things related to android development so that i won't run into any problmes hopefully
i just wanted to get your opinion on if my setup process (even though i barely wrote it all as to what i do) was correct
also if you have any suggestions on other android development tools i should use please do tell. you never know that may just help me do something great because of that small suggestion (for example i switched from notepadd to notepad++ because of someone and i haven't stopped using it since...this was back in my noob days XD)
I'm confused
If you're using Win7 for development (eclipse, theming, etc.) what are you using a linux partition for? What I mean by that is, why are you using it for apk tools, when you already have it on Win7. If you're only using linux for de/compiling apks, kinda seems like an inconvenience. But maybe I'm misunderstanding what you posted.
As for what you plan on doing, looks like it should be fine. You have the right idea about installing Win7 first and then ubuntu since the opposite would write over the MBR. And I'm assuming you know how to edit GRUB2 since you wrote you are going to change it, so that shouldn't be a problem either.
Edit2: Dont forget to do this after you change grub2 (assuming you have the sudo package installed and have run visudo to add users to the list - if you are logged in as root, you dont need to type sudo)
Code:
sudo update-grub
Most tool recommendations I can think of you already put down (HxD, np++, smali, apk manager 4.9)
Only others you might want are: AVABoxV2 and 7zip. along with using Monkey when you test applications (if you're developing)
Personally... I would dev on linux, but to each his own haha.
Edit: just noticed this. I was wondering which partitions specifically are you changing?
Sent from my Android using Tapatalk
kyouko said:
I'm confused
If you're using Win7 for development (eclipse, theming, etc.) what are you using a linux partition for? What I mean by that is, why are you using it for apk tools, when you already have it on Win7. If you're only using linux for de/compiling apks, kinda seems like an inconvenience. But maybe I'm misunderstanding what you posted.
As for what you plan on doing, looks like it should be fine. You have the right idea about installing Win7 first and then ubuntu since the opposite would write over the MBR. And I'm assuming you know how to edit GRUB2 since you wrote you are going to change it, so that shouldn't be a problem either.
Edit2: Dont forget to do this after you change grub2 (assuming you have the sudo package installed and have run visudo to add users to the list - if you are logged in as root, you dont need to type sudo)
Code:
sudo update-grub
Most tool recommendations I can think of you already put down (HxD, np++, smali, apk manager 4.9)
Only others you might want are: AVABoxV2 and 7zip. along with using Monkey when you test applications (if you're developing)
Personally... I would dev on linux, but to each his own haha.
Edit: just noticed this. I was wondering which partitions specifically are you changing?
Sent from my Android using Tapatalk
Click to expand...
Click to collapse
I have those I just didn't list them but thanks for the re assurance And yeah I do dev on linux just I use windows 7 for themeing and linux for developing apps (which i'm learning how to do ) and for developing my roms. I'm on linux right now (YAY FOR UBUNTU )
Ahh gotcha
I agree theming on windows is the way to go.
If only I could get cs4 photoshop to work on Arch, or any linux for that matter
last time I tried it didn't work out too well haha
Sent from my Android using Tapatalk
same which is the only reason i theme on windows
wow..so deep man...

[Linux]How to install Android Studio (without pulling hair out)[Q]

Howdy folks,
Usually fairly computer-literate. Thought I'd do the "native" thing and develop for android using Linux. Windows 7-10 daily driver but i thought why not do the nerdy thing and use linux. that's the guts of android after all.
Anyhoo. If anyone's downloaded the linux version of android studio you'd notice it puts you right away into the android sdk manager to complete the installation and you have to choose to install platform-tools and the api. ok. done.
How now do I start this program?? There is not a corresponding .android bash script to run for the sdk itself, it's just the manager!! How do you start the IDE??
Please, many sorries that i am retarded. ... but it's baffling how there's no instructions from google... they just point you to the sdk manager and explain nothing else. They didn't even sign their ssl certs so you can't use sdk manager unless you dive into its settings to force http. wtf?? is google dropping the ball on this? how do you deploy something so terribly? and what's with the unsigned certs? did the intern fall asleep at his job??
bananapeal said:
How now do I start this program?? There is not a corresponding .android bash script to run for the sdk itself, it's just the manager!! How do you start the IDE??
Click to expand...
Click to collapse
So, I guess you have downloaded the studio from
Code:
developer.android.com/sdk/installing/index.html?pkg=studio
After extracting you can launch IDE by going to android-studio/bin/ and writing ./studio.sh
And this information is straight from their page.
thanks... i ... i saw later...
when you click on first link on thier page it takes you to download ide package manager... it implies you already have ide, so the actual program isnt available to dl.
but if you scroll that same silly page, you find true complete ide download.
please pardon my extreme ignorance. hope you got some lulz.
Deleted

Categories

Resources