Error while Launching activity - Android Studio 2.1 - java

I'm completely new to android studio, and after hours of trying to figure out how to run an emulator on an AMD CPU, when I finally run (a completely base project btw) it says:
Unexpected error while executing: am start -n "payne.jackson.test/payne.jackson.test.Main" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Error while Launching activity
I don't know what is wrong.
I tried deleting all of my AVD files and that didn't work.
EDIT: I also get these errors when launching my emulator:
emulator: WARNING: VM heap size set below hardware specified minimum of 128MB
emulator: WARNING: Setting VM heap size to 384MB
emulator: WARNING: Classic qemu does not support SMP. The hw.cpu.ncore option from your config file is ignored.
Creating filesystem with parameters:
I found something saying to switch to a nexus 4, but that didn't work.
Still don't know what is wrong.
For those of you who wanted logcat it was too long but I noticed a lot of lines saying something along the lines of this:
05-08 10:01:40.185 78-78/? W/Resources: Preloaded drawable resource #0x10803dd (android:drawable/ic_menu_paste_holo_dark) that varies with configuration!!
Could this be the problem?

Related

Cannot launch AVD in emulator. Location of kernel file

I was in trouble with the API, but when I fix it I face a new problem which is something about "kernel file" and its location. When I RUN the app show up to me that message:
Cannot launch AVD in emulator.
Output:
emulator: ERROR: This AVD's configuration is missing a kernel file! Please ensure the file "kernel-qemu" is in the same location as your system image.
emulator: ERROR: ANDROID_SDK_ROOT is undefined

Java - JMF unable to add a Capture or Video device

I am trying to capture video via JMStudio.
When I try to run jmfinit it not detect my webcam and also the device is not listed in jmfregistry.
When I try to add a device manually it is giving me an error Could not add item
I have tried to run both (jmfinit and jmfregistry) as administrator and even tried to change the security settings but nothing seems to work.
I am using Windows 7
I re-installed OS also..
Please find snap shots of error message.
error popup message as shown in snapshot 1
I'm getting below error when i try to run my application
Exception in thread "VFW Request Thread" java.lang.UnsatisfiedLinkError: JMFSecurityManager: java.lang.UnsatisfiedLinkError: no jmvfw in java.library.path
at com.sun.media.JMFSecurityManager.loadLibrary(JMFSecurityManager.java:206)
at com.sun.media.protocol.vfw.VFWCapture.<clinit>(VFWCapture.java:19)
at com.sun.media.protocol.vfw.VFWSourceStream.doConnect(VFWSourceStream.java:241)
at com.sun.media.protocol.vfw.VFWSourceStream.run(VFWSourceStream.java:763)
at java.lang.Thread.run(Thread.java:745)
solution for above Problem..
JMF Studio is 32 bit supporting software so we must install 32bit supported JDK and also Eclipse then we not get any exceptions and errors.
Once Run your application then Automatically Your system webcam will "On".
JMF Studio is 32 bit it not support to 64bit OS/Eclipse,
and another reason is may be Environment variable not defined.

Android Studio genymotion emulator not running

I'm using Genymotion along with Android Studio using the plug-in and no matter what I do it does not allow me to run the app using the Genymotion emulator.. it gives errors like this:
Waiting for device.
Target device: genymotion-samsung_galaxy_s4___4_4_2___api_19___1080x1920-192.168.56.101:5555
Uploading file
local path: C:\Users\zd\AndroidStudioProjects\funfacts2\app\build\outputs\apk\app-debug.apk
remote path: /data/local/tmp/Taha.funfacts2
Installing Taha.funfacts2
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/Taha.funfacts2"
WARNING: linker: libdvm.so has text relocations. This is wasting memory and is a security risk. Please fix.
pkg: /data/local/tmp/Taha.funfacts2
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]
This is running on just a test app that outputs Hello World on the screen, with some basic formatting.

running Android app from ADT fails

I am following this simple tutorial http://developer.android.com/training/basics/firstapp/building-ui.htmlhttp://developer.android.com/training/basics/firstapp/building-ui.html
When I view the graphical editor/wysiwug I see the correct thing. A screen with one input text and a button.
But, when I run the app, I get a blank screen with the default Android buttons to the right.
In the logs, I see:
(normal)
[2013-11-18 16:07:37 - hello] adb is running normally.
[2013-11-18 16:07:37 - hello] Performing com.example.hello.MainActivity activity launch
[2013-11-18 16:07:37 - hello] Automatic Target Mode: launching new emulator with compatible AVD 'AVD_for_Nexus_7_by_Google'
[2013-11-18 16:07:37 - hello] Launching a new emulator with Virtual Device 'AVD_for_Nexus_7_by_Google'
(error)
[2013-11-18 16:07:43 - Emulator] libGL error: failed to load driver: nouveau
[2013-11-18 16:07:43 - Emulator] libGL error: Try again with LIBGL_DEBUG=verbose for more details.
Not sure if connected or not. What am I missing here? I installed ADT and then started following the tutorial.
haha...All you have to do is, relax, sit back, wait 10 minutes.
The virtual machine (Android emulator) takes loooong time to fully initialize.

Android project is not able to run. Showing errors

Everything was installed correctly. I am using Windows XP ,JDK 7.5 , Eclipse 4.2.
AVD is also setup correctly
When i run project it does not display it in a Virtual device.
This is the error I get:
[2012-08-05 11:49:09 - Emulator] WARNING: Data partition already in use. Changes will not persist!
[2012-08-05 11:49:09 - Emulator] WARNING: SD Card image already in use: E:\Documents and Settings\chamara\.android\avd\Gingabread1.avd/sdcard.img
[2012-08-05 11:49:09 - Emulator] ko:Snapshot storage already in use: E:\Documents and Settings\chamara\.android\avd\Gingabread1.avd/snapshots.img
Image 1
image2
It sounds like your emulator exited rather ungracefully and left everything locked up.
Look in your E:\Documents and Settings\chamara\.android\avd\Gingabread1.avd directory and delete any directory that ends with .lock. That should allow you to start up your virtual device again.
I do not know what the exact problem is, but try removing your SD card and reboot eclipse...

Categories

Resources