Went on a 2 week vacation, forgot something trivial I think.
Im using eclipse for android development on ubuntu. Steps Ive taken :
Ive got adb running, and the device is properly detected. I have done kill-server and start-server numerous times.
I do have unknown sources and USB debugging checked on the device.
I start a new project (file -> new -> android project) and create the most basic android app. I dont modify any of the code. Target = Android 2.2. API = 8.
I choose Run -> run (Ctrl F11). The phone screen does not change. I expected a 'hello world' type message (thats created by the default code). I check the app drawer (is that what were calling that place with all the apps?) It is not in there.
I project -> clean, and stop / restart the server and try again with the same results.
There is nothing in logcat and only a (ignorable?) problem "Attribute minSdkVersion (15) is higher than the project target API level (8) AndroidManifest.xml /test_july10 line 1 Android ADT Problem"
Please help me from getting more gray hair.
Open your Run Configurations (You can right click on project name). Choose the Target tab and select "Always prompt to pick device". Click Apply.
Now try to run your app again. It should bring up a dialog box of available devices. Does your device show. If so choose it and run.
Open DDMS tab (Eclipse Perspective). Make sure your device shows in the list of devices, select it and click the LogCat tab below. Observe any Log messages, or add some to your code.
Related
After a little of playing with java codes in android studio, suddenly it stopped installing apps on avd. I can have the apk output and install it on my phone(there I get the play protect error of unconfirmed developer ) as I disabled play protect on my avd. I have no idea what the problem is.
every time I try to do that android studio retries to uninstall the app from avd and the app is not on the apps list of avd device the error code is this:
Unknown failure (at android.os.Binder.execTransact(Binder.java:697))
I have done the solution on this post but it didn't help.
this post:https://stackoverflow.com/questions/44202530/error-unknown-failure-at-android-os-binder-exectransactbinder-java565-error
Edit
another error raised:
error pic
the problem was that with the ioutils that i was adding on dependencies some how made compatibility problem with the system cpu (the problem that i didn't have on my android phone)so next time it happens to any one first check your dependencies by going to:
File -> project structure -> dependencies tab
delete any unusually item there that did the trick for me
Note That it may make your app to act abnormally
I am trying to rebuild an old javafx project on android. Currently I am using javafxports to do so. The problem is I can't debug it, this is how the project hierarchy looks:
The application is started from DisplayClient. So far I am able to log messages using the device monitor. Can you please tell me if it is possible to attach a debugger and if it is how? If any further information is needed I would be happy to give it.
You can easily attach a debugger to your IntelliJ IDE while running your app on an Android device.
To debug a JavaFXPorts/Gluon Mobile that you have created using the Gluon plugin for your IDE (NetBeans, IntelliJ or Eclipse), and that you have deployed to the Android device, follow these steps:
1. Create the JavaFX mobile app from your IDE
For that you can use the Gluon plugin for your IDE. Use one of the built-in templates to create your project or go and use one of the many samples available here.
Let's say you use the Single View project. Provide a name and run the app
2. Create the apk
Run the task from the Gradle View Tasks->other->AndroidInstall to create the apk (or on command line run ./gradlew android).
3. Open the app on your device
Make sure the app works on your device, and don't close it.
4. Open Android Device Monitor
Go to <android sdk>/tools and run monitor. On the left, on top you should see the device, and a list of processes. Find your app package name there, select it and see the port it is using for the app (8600).
5. Attach the debugger on your IDE
Finally, go back to your IDE, and attach the remote debugger, with localhost and 8600 port. For the IntelliJ IDE, go to Run->Edit Configurations..., on the upper left click +, select the Remote option, and provide a name (remote debugger), and the port:
6. Run the debugger on your IDE
Click ok to save, add some breakpoint to your code, and now run the debugger.
In this case, I have a breakpoint in the button event handler, so when I click on it, the app halts at the breakpoint:
I was following the instructions, word-for-word, as on Android's website: http://developer.android.com/sdk/installing/index.html
I already have Eclipse Juno on which I develop Java applications. For my coursework I need Android SDK. I followed the instructions till adding a new software and restarting Eclipse.
Then I got error messages saying:
sdk platform tools component is missing
They were two dialog boxes that went away when I clicked close. Very obvious :P
And in my Eclipse console I have this:
[2013-06-10 16:40:09 - DDMS] DDMS files not found: C:\Users\LittleJavaChild\AppData\Local\Android\android-sdk\platform-tools\adb.exe
[2013-06-10 16:40:09 - DDMS] DDMS files not found: C:\Users\LittlejavaChild\AppData\Local\Android\android-sdk\platform-tools\adb.exe
I have no idea what to do next.
Please help me set up the SDK.
Also, how do I remove the newly installed software if I want to repeat the steps on Android's site again ?
Click the little Android Android SDK button
And make sure the top 3 things are installed
I've turned the internet upside down and looked into Google's official tutorials looking for an answer, but just couldn't find anything that actually solve my problem.
After installing everything and connecting my Galaxy S2 to the PC, clicking on "Run as -> Android application" just DOES NOTHING.
I got stuck here
So you first have to create an AVD from the AVD manager. Then go the project properties - android - set the version. Run the project - select run as android application. You could also change the run configurations and set the default AVD that you want to use.
For running on the device, goto run configurations, select your project from the pane on the left - goto target on the pane on the right - select devices only.
For those that are super newbish (like me), the AVD manager (Android Virtual Device Manager) is under the "Window" tab.
I just downloaded the android sdk from the adnroid site and followed this tutorial to set it up on netbeans. Everything to seem to have installed fine but whenever i try to run the application this window pops up:
alt text http://img80.imageshack.us/img80/4327/androidemulator.png
What I am assuming it asking me to choose the emulator, but it is not showing up on the list. Is there a reason why?
I don't use netbeans, but it looks like you don't have any AVD's created, and if you do, then there is probably a way to associate them that you are missing in netbeans. You can check here to create an AVD http://developer.android.com/guide/developing/tools/avd.html
But I would just use eclipse if possible, the integration works really well, and it was written to run in eclipse, so there are less issues and hurdles.
Also see Running Your Application section of http://developer.android.com/guide/developing/other-ide.html that will describe how to launch the app from the tools outside of the IDE.
I have the same problem with you. But i have my emulator works now.
Are you have to do is running your Android SDK Manager, then click Virtual devices, and Make new AVD device.
Click New. Then fill name, and select Target (Platform of your Android), Skin, and hardware.
Then click Create AVD to finish.
Now you have device to choose. :)
go in C:\Program Files\Android\android-sdk\SDK Manager.exe and create the virtual device. After it appear in device list.
Thats it.
Open Sdk manager
Tool Manage AVD
Select and start AVD. wait open.
Goto netbean Run project.
U must see project run in AVD.
Success..
The article at the link #broschb had posted is explaining how to create an AVD using command line. Do exactly what is says there (it's very easy). Once you have created the AVD it will appear in the AVD list in Netbeans. Actually, if you have only one AVD it will start by default when you run your app.
run the avd manager which is location in the android-sdk folder and then create a new avd,but be sure you have already downloaded ARM EABI system image tool set.
Just create avd (android virtual device) and run it..
like android -avd "name of your avd"
Then try to run your application.
It will ask you to select the virtual device that you have started above.
Thats it.