I just installed Phonegap following all of the steps:
http://docs.phonegap.com/en/2.5.0/guide_getting-started_android_index.md.html
I installed the latest versions of:
Eclipse
Android SDK
ADT Plugin
PhoneGap
Cordova
I am using:
OSX 10.8.5
Everything runs smoothly but when I run cordova emulate android. THe emulator shows up and loads for a minute then says:
"Unfortunately, Workshop has stopped"
And the app never loads.
Also, when I run cordova serve android the browser shows an alert that says:
gap:["PluginManager","startup","PluginManager1650094558"]
Then the app loads and the browser will show the default cordova screen that says "Connecting to Device" but the app never reaches "Device is Ready". I have have tried tons of different approaches from downgrading versions to creating several AVDs to test. So far after a good 4 hours of testing I haven't found an answer.
Related
I'm trying to run the Ionic 3 app in APK version on an Android 8.0.0 device. I keep getting the error when I run the APK on the device:
net::ERR_CONNECTION_REFUSED (http://localhost:8080/)
. I've already tried updating Cordova Ionic WebView, I've changed the confi.xml settings, I've tried using Android 6.0.0., and for each time I rebuilt the app APK and tried running it again on the device, but nothing has worked so far.
I've been running the APK on device downloading it from Whatsapp as I normal document, then I authorize the device to install the APK and the app apparently is working, but the error returns. What should I do? I really need to get it working. Any help?
I'm trying to get started with Android development using Cordova by trying to build and run Cordova's "hello world" program following their Creating your first app guide. Nothing fancy - just trying to build and run the super-ultra-simple hello world program that gets created with the command cordova create hello com.example.hello HelloWorld.
I've successfully followed the instructions up through "Building the App" for Android. When I get to the step for "Test the App", it fires up the emulator, but all I get is a black screen in the android device frame and some error messages in the terminal for it. See screenshot of black screen w/ terminal output below:
From googling around on my own, I've come across the Failed to create D3D shaders error from the terminal output before with other OpenGL-based applications which have worked for me on other platforms. As far as I can tell, it seems to have something to do with ANGLE on Windows 7's version of Direct X, but I haven't been able to find any clear instructions on how to fix it.
The platform I'm using is Windows 7. The AVD I've got configured for the emulator is Nexus 5X using Android 7.0 x86 Nougat, using the default configurations provided by Android Studio v2.3.3. The version of Cordova I'm using is v7.0.1.
I have also confirmed that I am able to run the "hello world" app directly on a real Android device using cordova run android. It works successfully on there. So just running it in the emulator is the problem.
Help?
When I run ionic serve the app opens in browser as normal and it works. When I do ionic emulate android to run the app on an Android Emulator on Windows, I get the following followed by the never ending dots (...).
What am I doing wrong?
Do you see any devices listed when you run adb devices on CMD'.
If not then it means you have not created any Device in Android Studio. Head over to Android Studio, Create Device and try again.
I installed phonegap CLI on my Mac OSX 10.7.5 and used it to create the default "Hello World" app. I then issue the command phonegrap run android -emulator. This runs through the steps and then stalls at the point of "trying to install app onto emulator." The Emulator loads and is running as normal and I can navigate the emulator perfectly fine but the terminal just stalls and never actually installs the phonegap application. Anyone ran into this issue?
Yes, I ran into the same issue but on Ubuntu android emulator. The emulator started fine but the application actually not installed. I don't know why it happened. I googled around and someone said it might caused by the project name, you couldn't use space and dash in the project name. But it just doesn't work for me.
I'm newbie in Titanium Studio and I have some weird questions:
- When I choose a new Mobile Project and trying to Run under the Android SDK Emulator,
I able to see the phone screen but when I'm going in the emulator to the apps list, I cant see the application I just created...
any ideas?
thanks.
When you hit Run it is automatically installed in your device/emulator.
Be sure it was successfully installed in your emulator first, please see:
Android troubleshooting
The initial launch of the Android emulator can be quite slow and Studio may timeout before it can install and launch the application. If this happens just click Run in Studio again. Subsequent launches should not time out on the same virtual device.
http://docs.appcelerator.com/titanium/latest/#!/guide/Creating_Your_First_Titanium_Apps-section-37541502_CreatingYourFirstTitaniumApps-AddaTableView