I'm following the Android App HelloAndroid tutorial on http://developer.android.com/resources/tutorials/hello-world.html and I seem to be doing well so far. I got the SDK downloaded and installed, emulator works... I am using Android 2.2
it works.. but I do not see the text string... This is my first android app so I am doing something wrong.
Yeah, getting Eclipse to talk to the Emulator can be a PITA. If you can debug on an actual device, don’t waste your time with the emulator.
You can look in Eclipse’s console window to see what’s up. Chances are it has installed the package, but it never got around to launching the application. Press the debug button again to see if it works, or just launch the app from the home screen manually. Unfortunately this won’t connect the debugger, but at least you can use it.
I’ve struggled with this a few times and can’t come up with anything more conclusive than “delete your emulator image and try again” or “restart Eclipse to see if it works this time”.
try the following:
unlock the emulator. if do not show text. restart the emulator or try the code
TextView tv = (TextView)findViewById(R.id.textview1);
tv.setText("first app");
....
Based on your screenshot it looks like an error occured while installing the app, you could try to install the app via adb. It's in ANDROID_SDK_FOLDER/platform-tools/ in the current sdk or in ANDROID_SDK_FOLDER/tools on the old version, where ANDROID_SDK_FOLDER is the folder where you placed your sdk. With the emulator open, use:
adb install path_to_the_apk_folder/HelloAndroid.apk
You can usually find your apk on the bin folder of your project.
Even if it doesn't work adb can give you more information about how to handle the problem.
You could also take a look at the troubleshooting tips on developer.android.com. http://developer.android.com/resources/faq/troubleshooting.html#eclipse and http://developer.android.com/resources/faq/troubleshooting.html#noapp might be relevant.
Related
for context i'm new to android studio
so basically i wanted to learn flutter, so i installed it and installed android studio as well
but after i configured everything (SDK path and environment variables included) it still won't run any apps and the whole area is grayed out as you can see in the image i linked.
i have tried to make sure that my sdk is correct and that my flutter permessions are all allowed.
i also tried reinstalling the whole thing but nothing happened.
android studio run bar gray and wont work
okay guys i fixed it thank you all for the help
for any future readers, hi from past :D
i went into the plugin sections in the settings and made sure all my installed plugins were up to date
i then installed the flutter plugin and restarted the IDE. Fixed everything.
Yes, this question has been asked before. But the solutions on the internet are not working so that's why I am asking it here. I'm guessing the solutions aren't working because I am using newer versions but I'm not sure.
Bit of Background: So I am making a small game in Unity. I have to test it on Android so I can check if there are any problems or not. So I check around the internet on how I may be able to do that. Turns out, I need to change the build settings to android and I also need JDK installed on my computer along with Android SDK Manager so I download them both. I did not install the Android Studio but just the Command Line Tools because many tutorials say that I do not actually need the whole Android Studio because I'm gonna be making the app in Unity not in Android Studio. So I do that. I install JDK and Extract the command line tools.
I think the JDK installed fine because after installing JDK, I opened Internet Explorer (No, I don't use IE, I use Chrome but I opened it just for fun). And a little notification showed up at the bottom which basically said that I could now run Java on the browser so that's why I don't think there are any problems with the JDK installation.
Problem: I extracted Command Line tools of Android Studio and found that there was only a tools/ folder in it. I opened it and clicked on android.bat but the Android SDK manager doesn't work. A CMD screen just flashes for a moment but then nothing happens.
Solution I have Tried:
Change set java_exe to:
set java_exe="C:\Program Files\Java\jre7\bin\java.exe"
and delete the line:
call libjava_find.bat
But I can't find set java_exe code anywhere in the file. The file doesn't have it. How am I supposed to change it?
Alright, so I figured it out but I was still unable to pinpoint the problem. Here is what I did:
Installed a fresh copy of Windows 10. Note: It is highly unlikely that this will solve the problem. But where I live, it is very common to just install a fresh copy of windows whenever you get a problem. I really don't think you need to do this.
Follow all the instructions from: https://www.youtube.com/watch?v=yLFBu-VlBIw
If you get the following error:
Error building Player: CommandInvokationFailure: Unable to list target platforms. Then use this fix: not finding android sdk (Unity)
These steps solved the problem for me and I was able to run it properly.
I work with Windows 10 and Android Studio.
When I press the button "SDK manager", nothing happens.
When I open the "AVD Manager", window that opens is the "Create AVD", but when I set a new AVD, well, nothing happens.
Of course, I defined JAVA_PATH, SDK location and everything else (including sdk\tools\android.bat - java.exe).
Android studio and SDK installed in D drive, JDK and JRE installed in C drive.
Is there anything else I can do? Is there a way to spend an error report?
Some time ago I do have kind of problem like this.
You can try running sdk manager with Run as administrator from your drive where it is located at.
let me know if it helps you if not please let us know the best solution you get from others friend . :)
Ok. I think the problem in the build of Windows 10. There are many programs that do not work, and there are also a lot of feedback on it.
When I install the android SDK from here http://developer.android.com/sdk/index.html
my file at the time was like adt-bundle-windows-x86_64-20140624.zip. When I ran it, the eclipse looked very different. The loading screen showed Juno instead of the android loading screen. The icon on the bottom task toolbar (windows 7) was a unknown program icon and not the eclipse icon. When it opened, it looks like this image below.
If I try to create a new android activity file, after I click finish, I expect the file to be created, but nothing happens. Also if I go to the xml layout file and go to the gui explorer, I get a bunch of errors saying some widgets didn't load. And then it doesn't show the preview.
Some things work like intellisense and being able to run app on phone.
Im not sure if this has to do with corrupted preferences, so I deleted the files in here
Eclipse Workspace\.metadata\.plugins\org.eclipse.core.runtime, but it didn't help.
Does anyone know whats wrong and how to fix it?
Thanks.
I also installed the same version adt-bundle-windows-x86_64-20140624.zip last week. It worked fine for the most part. The different icon and splash screen for Eclipse is to be expected. There were some oddities, like the link to SDK manager still pointed to my previous ADT installation.
Yesterday i updated eclipse and sdk, and now have made some changes to the code but not able to see the changes made in emulator when i run it.
These are the things i have tried by googling:
restarted eclipse and avd
clean the project
checked whether all the options are checked under project
properties->builders.
Checked whether all the options are checked under
windows->preferences->android->build
When I tried to test it on device, I was not able to export, but got "No Build Tools installed in the sdk".
So I installed the tools in the sdk, but I still could not get updated output.
Can anyone help me out?
Are you sure the latest apk is getting installed on the device? There are some instances where it will not overwrite an installed apk. For example if your build-signing key has changed recently. Try uninstalling the app fully from the device first, and try again.
Go to device manager edit device virtually created by you or system ..you will find one check box saying enable snaps shot. check mark it. it will work..