I am novice in android development and facing some problems. I have installed Eclipse helios along with ADT 0.9.9 and Android Windows SDK and android 2.2 package. I have developed a small app for testing (one button and EditText control which displays message when user clicks button), it complied successfully. But when I want to run this on emulator its not showing there. It once installed and worked but after I updated my code (Updated only message which will be displayed when user clicks button) its not showing the updated output so I uninstalled app from emulator using app manager. I tried every thing (used Run As and creating Android config even freshly installed SDK) to solve the problem but couldn't. Even DDMS not listing any process or any sign of running emulator. Not in even Log Cat
In bin folder of application project you will find the .apk file. Manually install it on emulator or device
Check manifest file to see which activity is first loaded?
I prefer 2.
Related
The last time I updated visual studio, I accidentally unchecked 'Android emulators' from the modules list, so they all got uninstalled.
Since I need them, I went and modified the installation from windows 'add or remove programs', checked and installed 'Android emulators' as a visual studio module, and all seemed fine.
But then, when I tried to build an Android version of my Apache Cordova app, I noticed that the Android emulators did not get added back to the target list. The Cordova project is set as a start up project.
I tried reinstalling the whole module and also reinstalling the device profiles, but they're still missing.
Is there a way to configure what devices/emulators show in that list?
Thank you.
So it seems like you are missing the Visual Studio emulators for Android, which we have pre configured to show a 5" and 7" option. A fresh install probably just missed that component (because its not automatically checked). Modify "Microsoft Visual Studio" from the Add or Remove programs menu, and check the VS Emulators for Android to add them to your version of VS. See the checklist image below for where the component is.
If you want to create a custom Android emulator yourself to show under "Google Android Emulator" (because that comes pre-installed), just make sure that your Google Android emulator is running the virtual device that you created, and on deploy your app should show up on that emulator.
I have just installed the Xamarin tools, installation went without any errors.
I have launched VS 2013 Update 4 Pro and created Blank App ( Native Shared ).
I did not modify code or project structure, just tried to run.
So i have changed the Startup Project to Adnroid project:
Then i have rebuilt the entire solution.
The console prompted Rebuild succeeded.
I have noticed that debugging button has a very long path, which is strange:
If i click on any option it opens the AVD Manager, but doesn't change the Start, to selected device.
So i have tried launching the Emulator from AVD manager and it works.
But when i click start in VS it prompts me:
Where is the problem? How can a newly installed app not work?
You project is most likely targeting lower version of android API. Try changing the target android version.
A note here should be that within Visual Studio/Xamarin the settings regarding supported version are within the solution settings of that project.
In this way you can change the version to support what you need, or if it is correct download a more current simulator.
This can be done with GenyMotion for instance or Xamarin Android Player.
This error message currently can be shown due to a large number of different issues.
Visit Build Failed. MonoDroid does not support running the previous version to learn about the different causes for this error message.
I'm building an app in Android Studio (beta) 0.8.9, though I can't seem to get emulators running. I've made a Nexus 4 and 5 emulator through the options, but I can't seem to get them started. It shows this in the Run App tab.
Waiting for device.
"C:\Program Files (x86)\Android\android-studio\sdk\tools\emulator.exe" -avd smallEmulator -netspeed full -netdelay none
So either it's not starting up, or I'm just an impatient SOB.
I've also downloaded Genymotion and started up an emulator through that, but now Android Studio doesn't recognize the emulator anymore. I try to run my app and check for any running devices, but it doesn't show up, despite the fact that it actually is running.
I've added the Genymotion plug-in, to no avail. No idea what went wrong.
I also have a One Plus One, which I'm not sure how I can debug on that. They don't seem to have drivers for that and haven't immediatly found anything on Google so far.
Any help would be much appreciated.
EDIT: I fixed my problem. I used Genymotion to fix the problem. The running emulator wasn't turning up, because the android SDK's weren't linked to one another. Genymotion and Android Studio used different ones. So I edited Genymotion's settings to use the same one of AS and now it works!
First of all, update android studio. Check if the emulators run from the AVD manager outside Android Studio, I mean by starting it up manually from ur SDK installation folder (AVD Manager.exe) . Check the path of ur emulator in .ini file in C:>Users>user-name >.android>avd. U can make a system variable for ur SDK folder "ANDROID_SDK_HOME" and place the .android folder's content there (the whole .android folder). Sometimes "resetting the adb" after u run emulator may work.
There may be an easier fix than what was previously mentioned. Try opening Android Studio, go to File, Settings, plugins. Select the “Browse Repositories” button at the bottom of the page. Scroll down the displayed page to find “Genymotion”; select it and install it.
When it has installed, restart Android Studio. Again, go to File, Settings, then go to Other Settings. Genymotion should show up as an option. There will be a field that asks for the path to the Genymotion folder.
Mine was: C:\Program Files\Genymobile\Genymotion. At any rate, enter the path, click Apply or OK and Android Studio should recognize Genymotion (You may need to restart AS once again). Now you should have a small red icon on Android Studios tool bar; when you hover over it a pop up that identifies it as “Genymotion Device Manager”. Click on it, select a device to load, click start and allow the virtual device to start completely. Now run your Android Studio project; the Android Studio “Device Chooser” will pop up. You should see the Genymotion device you’d started previously, select it and you’re good.
Hope this helps…
I downloaded the 64-bit SDK ADT bundle from the Android developer website yesterday. I also downloaded and installed the 64-bit Java SDK 6. I've been trying to follow the tutorial on the Android site for building a Hello World app. I can create the app in Eclipse and I can also create an AVD. However when I go to Run as -> Android Application nothing happens. I am able to launch the Android emulator manually from Eclipse but I still can't get the app to install or do anything whatsoever.
There's no errors, no console output, nothing.
If I just click on the Run button I get this error: Path for project must have only one segment
Okay, I found the problem. Under Properties > Run/Debug Settings I forgot to set the project name.
I have no experience with app development but I was interested in playing around with androids SDK, I downloaded the .zip file and extracted everything onto my desktop. I was attempting to follow the introductory tutorial on androids website, however when it comes time to launch the Virtual Device Manager clicking the button in the toolbar does nothing. Trying to run the app and selecting to add a VDM does not work either.
Navigating directly to the VDM application and attempting to launch it leads to a cmd window opening for a split second. I was able to take a screenshot of the message though which reads:
"Emulator error: you did not specify a virtual device name, and the system directory could not be found."
Prior to attempting the starting tutorial I successfully launched the VDM.
The path to the SDK is set correctly in Eclipse.
I tried re-downloading the SDK to no avail
I am running windows 7, and the latest version of the Android SDK.