I am trying to follow a tutorial here: - android

trying to follow this tutorial:
http://www.youtube.com/watch?annotation_id=annotation_413231&feature=iv&src_vid=lQW1WQOCri0&v=zVIZSKP3tR8
to use AndEngine and by the time I reach the end I got two errors with the styles.xml files in the "values-v11" and "values-v14" folders (res parrent folder).
resources-->values-v11--> style.xml
Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.
in resources-->values-v14--> style.xml
Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'.
I looked them up and was told to replace them with this:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="CustomWindowTitleBackground">
</style>
</resources>
Then I got an error in the main.xml file saying: “No resource identifier found for attribute 'showAsAction' in package 'android'” and was told to remove the "android:showAsAction="never" line resulting in this:
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item
android:id="#+id/action_settings"
android:orderInCategory="100"
android:title="#string/action_settings"/>
</menu>
This got rid of the errors. But now when I run it on my phone the phone says "Unfortunately, myTestProject has stopped"
Why is this? here is my logcat errors:
05-21 06:52:24.701: W/dalvikvm(8377): threadid=1: thread exiting with uncaught exception (group=0x40ac19d8)
05-21 06:52:24.701: E/AndroidRuntime(8377): FATAL EXCEPTION: main
05-21 06:52:24.701: E/AndroidRuntime(8377): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mystuff/com.mystuff.MainActivity}: java.lang.ClassNotFoundException: com.mystuff.MainActivity
05-21 06:52:24.701: E/AndroidRuntime(8377): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1880)
05-21 06:52:24.701: E/AndroidRuntime(8377): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
05-21 06:52:24.701: E/AndroidRuntime(8377): at android.app.ActivityThread.access$600(ActivityThread.java:123)
05-21 06:52:24.701: E/AndroidRuntime(8377): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
05-21 06:52:24.701: E/AndroidRuntime(8377): at android.os.Handler.dispatchMessage(Handler.java:99)
05-21 06:52:24.701: E/AndroidRuntime(8377): at android.os.Looper.loop(Looper.java:137)
05-21 06:52:24.701: E/AndroidRuntime(8377): at android.app.ActivityThread.main(ActivityThread.java:4424)
05-21 06:52:24.701: E/AndroidRuntime(8377): at java.lang.reflect.Method.invokeNative(Native Method)
05-21 06:52:24.701: E/AndroidRuntime(8377): at java.lang.reflect.Method.invoke(Method.java:511)
05-21 06:52:24.701: E/AndroidRuntime(8377): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:787)
05-21 06:52:24.701: E/AndroidRuntime(8377): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:554)
05-21 06:52:24.701: E/AndroidRuntime(8377): at dalvik.system.NativeStart.main(Native Method)
05-21 06:52:24.701: E/AndroidRuntime(8377): Caused by: java.lang.ClassNotFoundException: com.mystuff.MainActivity
05-21 06:52:24.701: E/AndroidRuntime(8377): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
05-21 06:52:24.701: E/AndroidRuntime(8377): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
05-21 06:52:24.701: E/AndroidRuntime(8377): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
05-21 06:52:24.701: E/AndroidRuntime(8377): at android.app.Instrumentation.newActivity(Instrumentation.java:1023)
05-21 06:52:24.701: E/AndroidRuntime(8377): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1871)
05-21 06:52:24.701: E/AndroidRuntime(8377): ... 11 more

Related

AVD crashes saying 'Unfortunately, libcocos2dx has crashed'

I just loaded my app created by cocos2dx-3.10 and when I open with it an AVD (again I haven't done any modifications to the app) the app crashes and gives the error: Unfortunately, libcocos2dx has crashed.
here is what I get in my android Monitor:
03-05 18:34:56.668 1435-1435/? D/dalvikvm: Not late-enabling CheckJNI (already on)
03-05 18:34:56.989 1435-1435/com.trying.name E/Trace: error opening trace file: No such file or directory (2)
03-05 18:34:57.419 1435-1435/com.trying.name D/AndroidRuntime: Shutting down VM
03-05 18:34:57.419 1435-1435/com.trying.name W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0xb2f2b288)
03-05 18:34:57.518 1435-1435/com.trying.name E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.UnsatisfiedLinkError: Couldn't load cocos2dcpp: findLibrary returned null
at java.lang.Runtime.loadLibrary(Runtime.java:365)
at java.lang.System.loadLibrary(System.java:535)
at org.cocos2dx.lib.Cocos2dxActivity.onLoadNativeLibraries(Cocos2dxActivity.java:248)
at org.cocos2dx.lib.Cocos2dxActivity.onCreate(Cocos2dxActivity.java:263)
at android.app.Activity.performCreate(Activity.java:5008)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2023)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
at android.app.ActivityThread.access$600(ActivityThread.java:130)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4745)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
at dalvik.system.NativeStart.main(Native Method)
03-05 18:35:11.559 1435-1435/? I/Process: Sending signal. PID: 1435 SIG: 9

Live video streaming issue on Micromax A117

I getting some issue on live video streaming.
05-21 17:56:34.589: E/DrmMtkUtil/DrmUtil(136): checkExistence failed, reason [No such file or directory]
05-21 17:56:34.589: E/DrmMtkUtil/DrmUtil(136): checkDcf: file does not exist.
05-21 17:56:34.595: E/AndroidRuntime(27984): FATAL EXCEPTION: main
05-21 17:56:34.595: E/AndroidRuntime(27984): java.lang.NullPointerException
05-21 17:56:34.595: E/AndroidRuntime(27984): at android.widget.VideoView.openVideo(VideoView.java:421)
05-21 17:56:34.595: E/AndroidRuntime(27984): at android.widget.VideoView$6.surfaceCreated(VideoView.java:730)
05-21 17:56:34.595: E/AndroidRuntime(27984): at android.view.SurfaceView.updateWindow(SurfaceView.java:606)
05-21 17:56:34.595: E/AndroidRuntime(27984): at android.view.SurfaceView.access$000(SurfaceView.java:88)
05-21 17:56:34.595: E/AndroidRuntime(27984): at android.view.SurfaceView$3.onPreDraw(SurfaceView.java:183)
05-21 17:56:34.595: E/AndroidRuntime(27984): at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:692)
05-21 17:56:34.595: E/AndroidRuntime(27984): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2123)
05-21 17:56:34.595: E/AndroidRuntime(27984): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1139)
05-21 17:56:34.595: E/AndroidRuntime(27984): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:4879)
05-21 17:56:34.595: E/AndroidRuntime(27984): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:776)
05-21 17:56:34.595: E/AndroidRuntime(27984): at android.view.Choreographer.doCallbacks(Choreographer.java:579)
05-21 17:56:34.595: E/AndroidRuntime(27984): at android.view.Choreographer.doFrame(Choreographer.java:548)
05-21 17:56:34.595: E/AndroidRuntime(27984): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:762)
05-21 17:56:34.595: E/AndroidRuntime(27984): at android.os.Handler.handleCallback(Handler.java:725)
05-21 17:56:34.595: E/AndroidRuntime(27984): at android.os.Handler.dispatchMessage(Handler.java:92)
05-21 17:56:34.595: E/AndroidRuntime(27984): at android.os.Looper.loop(Looper.java:153)
05-21 17:56:34.595: E/AndroidRuntime(27984): at android.app.ActivityThread.main(ActivityThread.java:5297)
05-21 17:56:34.595: E/AndroidRuntime(27984): at java.lang.reflect.Method.invokeNative(Native Method)
05-21 17:56:34.595: E/AndroidRuntime(27984): at java.lang.reflect.Method.invoke(Method.java:511)
05-21 17:56:34.595: E/AndroidRuntime(27984): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
05-21 17:56:34.595: E/AndroidRuntime(27984): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
05-21 17:56:34.595: E/AndroidRuntime(27984): at dalvik.system.NativeStart.main(Native Method)
Please suggest me

Phonegap Hotshot book example apps doesn't working

Just bought PhoneGap 2.x Mobile Application Development Hotshot book to improve my knowledge working with PhoneGap and try to run some apps from the book. I downloaded whose apps from their github repository (https://github.com/photokandyStudios/PhoneGap-HotShot-Book-Code-Bundle) and, for example, tried to run first app from Chapter1 (QuizApp). Imported that whole folder with Eclipse(Import > Existing Android Code Into Workspace) and when I try to run it on my emulator or on my real Android device, it just stops working and shuts down. Looks like everything is in their right places, but nothing.
Here I will provide my LogCat information:
07-26 15:24:51.418: E/Trace(853): error opening trace file: No such file or directory (2)
07-26 15:24:51.688: W/dalvikvm(853): Unable to resolve superclass of Lcom/phonegaphotshot/QuizTime/QuizTime; (15)
07-26 15:24:51.688: W/dalvikvm(853): Link of class 'Lcom/phonegaphotshot/QuizTime/QuizTime;' failed
07-26 15:24:51.718: D/AndroidRuntime(853): Shutting down VM
07-26 15:24:51.718: W/dalvikvm(853): threadid=1: thread exiting with uncaught exception (group=0x40a13300)
07-26 15:24:51.798: E/AndroidRuntime(853): FATAL EXCEPTION: main
07-26 15:24:51.798: E/AndroidRuntime(853): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.phonegaphotshot.QuizTime/com.phonegaphotshot.QuizTime.QuizTime}: java.lang.ClassNotFoundException: com.phonegaphotshot.QuizTime.QuizTime
07-26 15:24:51.798: E/AndroidRuntime(853): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1983)
07-26 15:24:51.798: E/AndroidRuntime(853): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2084)
07-26 15:24:51.798: E/AndroidRuntime(853): at android.app.ActivityThread.access$600(ActivityThread.java:130)
07-26 15:24:51.798: E/AndroidRuntime(853): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1195)
07-26 15:24:51.798: E/AndroidRuntime(853): at android.os.Handler.dispatchMessage(Handler.java:99)
07-26 15:24:51.798: E/AndroidRuntime(853): at android.os.Looper.loop(Looper.java:137)
07-26 15:24:51.798: E/AndroidRuntime(853): at android.app.ActivityThread.main(ActivityThread.java:4745)
07-26 15:24:51.798: E/AndroidRuntime(853): at java.lang.reflect.Method.invokeNative(Native Method)
07-26 15:24:51.798: E/AndroidRuntime(853): at java.lang.reflect.Method.invoke(Method.java:511)
07-26 15:24:51.798: E/AndroidRuntime(853): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
07-26 15:24:51.798: E/AndroidRuntime(853): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
07-26 15:24:51.798: E/AndroidRuntime(853): at dalvik.system.NativeStart.main(Native Method)
07-26 15:24:51.798: E/AndroidRuntime(853): Caused by: java.lang.ClassNotFoundException: com.phonegaphotshot.QuizTime.QuizTime
07-26 15:24:51.798: E/AndroidRuntime(853): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:61)
07-26 15:24:51.798: E/AndroidRuntime(853): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
07-26 15:24:51.798: E/AndroidRuntime(853): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
07-26 15:24:51.798: E/AndroidRuntime(853): at android.app.Instrumentation.newActivity(Instrumentation.java:1053)
07-26 15:24:51.798: E/AndroidRuntime(853): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1974)
07-26 15:24:51.798: E/AndroidRuntime(853): ... 11 more
Thanks for any help
Solved it! If someone having similar problem, just do this step by step:
Right click on Cordovaxxx.jar -> Configure Build Path in Tab Order and Export and make sure these ones are selected:
1. Android (in my case was Adnroid 4.1.2)
2. Android Dependencies
3. Cordova....
4. ..../src
5. ..../gen

Is there a way to use junit.extensions.TestSetup for tests on Android?

The android sdk source includes source for junit.extensions, but the classes are not in android.jar even though junit.framework and junit.runner are in there. I tried creating my own junit.extensions package and using the source included in the android sdk source, but I get a ClassCastException (see below). Something in android.test.suitebuilder is trying to cast the return value from the suite() method to a TestCase, even though suite returns a Test interface.
I want to use TestSetup class from junit.extensions, as in the following example (see http://etutorials.org/Programming/Java+extreme+programming/Chapter+4.+JUnit/4.7+One-Time+Set+Up+and+Tear+Down/):
public SomeTestCase extends TestCase {
public static Test suite() {
TestSetup setup = new TestSetup(new TestSuite(SomeTestCase.class)) {
#Override
protected void setUp( ) throws Exception {
// do your one-time setup here!
}
#Override
protected void tearDown( ) throws Exception {
// do your one-time tear down here!
}
};
return setup;
}
public void someTestMethod() { }
}
However, I get the following error:
05-21 08:10:14.152: I/TestRunner(1316): java.lang.RuntimeException: Exception during suite construction
05-21 08:10:14.152: I/TestRunner(1316): at android.test.suitebuilder.TestSuiteBuilder$FailedToCreateTests.testSuiteConstructionFailed(TestSuiteBuilder.java:238)
05-21 08:10:14.152: I/TestRunner(1316): at java.lang.reflect.Method.invokeNative(Native Method)
05-21 08:10:14.152: I/TestRunner(1316): at java.lang.reflect.Method.invoke(Method.java:511)
05-21 08:10:14.152: I/TestRunner(1316): at junit.framework.TestCase.runTest(TestCase.java:154)
05-21 08:10:14.152: I/TestRunner(1316): at junit.framework.TestCase.runBare(TestCase.java:127)
05-21 08:10:14.152: I/TestRunner(1316): at junit.framework.TestResult$1.protect(TestResult.java:106)
05-21 08:10:14.152: I/TestRunner(1316): at junit.framework.TestResult.runProtected(TestResult.java:124)
05-21 08:10:14.152: I/TestRunner(1316): at junit.framework.TestResult.run(TestResult.java:109)
05-21 08:10:14.152: I/TestRunner(1316): at junit.framework.TestCase.run(TestCase.java:118)
05-21 08:10:14.152: I/TestRunner(1316): at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:169)
05-21 08:10:14.152: I/TestRunner(1316): at android.test.AndroidTestRunner.runTest(AndroidTestRunner.java:154)
05-21 08:10:14.152: I/TestRunner(1316): at android.test.InstrumentationTestRunner.onStart(InstrumentationTestRunner.java:545)
05-21 08:10:14.152: I/TestRunner(1316): at android.app.Instrumentation$InstrumentationThread.run(Instrumentation.java:1551)
05-21 08:10:14.152: I/TestRunner(1316): Caused by: java.lang.ClassCastException: com.somebody.test.SomeTestCase$1 cannot be cast to junit.framework.TestCase
05-21 08:10:14.152: I/TestRunner(1316): at android.test.suitebuilder.TestSuiteBuilder.build(TestSuiteBuilder.java:188)
05-21 08:10:14.152: I/TestRunner(1316): at android.test.InstrumentationTestRunner.onCreate(InstrumentationTestRunner.java:379)
05-21 08:10:14.152: I/TestRunner(1316): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3920)
05-21 08:10:14.152: I/TestRunner(1316): at android.app.ActivityThread.access$1300(ActivityThread.java:123)
05-21 08:10:14.152: I/TestRunner(1316): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1185)
05-21 08:10:14.152: I/TestRunner(1316): at android.os.Handler.dispatchMessage(Handler.java:99)
05-21 08:10:14.152: I/TestRunner(1316): at android.os.Looper.loop(Looper.java:137)
05-21 08:10:14.152: I/TestRunner(1316): at android.app.ActivityThread.main(ActivityThread.java:4424)
05-21 08:10:14.152: I/TestRunner(1316): at java.lang.reflect.Method.invokeNative(Native Method)
05-21 08:10:14.152: I/TestRunner(1316): at java.lang.reflect.Method.invoke(Method.java:511)
05-21 08:10:14.152: I/TestRunner(1316): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
05-21 08:10:14.152: I/TestRunner(1316): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
05-21 08:10:14.152: I/TestRunner(1316): at dalvik.system.NativeStart.main(Native Method)
The suite() method of a TestCase is supposed to return a Test, but it appears something in android os is trying to cast it to a TestCase.
As one attempt to resolve the problem, I tweaked the TestDecorator class so that it subclassed TestCase instead of Test, but it still gave the same ClassCastException, which really mystified me.
By the way, there seems to be some doubt about android.jar containing junit, so here is a partial listing of android.jar contents:
$ jar tf android.jar | more
META-INF/
META-INF/MANIFEST.MF
assets/
assets/images/
assets/images/android-logo-mask.png
assets/images/android-logo-shine.png
assets/sounds/
assets/sounds/bootanim1.raw
assets/sounds/bootanim0.raw
assets/webkit/
assets/webkit/android-weberror.png
assets/webkit/togglePlugin.png
assets/webkit/nullPlugin.png
assets/webkit/youtube.html
assets/webkit/missingImage.png
assets/webkit/youtube.png
assets/webkit/textAreaResizeCorner.png
assets/webkit/play.png
junit/
junit/framework/
junit/framework/TestSuite.class
junit/framework/ComparisonFailure.class
junit/framework/Assert.class
junit/framework/TestListener.class
junit/framework/TestResult.class
junit/framework/Test.class
junit/framework/TestFailure.class
junit/framework/Protectable.class
junit/framework/TestCase.class
junit/framework/AssertionFailedError.class
junit/runner/
junit/runner/TestSuiteLoader.class
junit/runner/Version.class
junit/runner/BaseTestRunner.class
You can also see it listed in the package contents on the android reference site at https://developer.android.com/reference/packages.html. If you continue to doubt, please browse your copy of android.jar.
Any helpful suggestions? Has anyone successfully used junit.extensions.TestSetup with android?

Android ClassNotFoundException

I have problem with my app, everything was working fine yesterday but today I updated sdk and now when I'm trying to run my app I'm getting errors like this
05-21 00:14:19.285: W/dalvikvm(7061): Unable to resolve superclass of Lcom/lpp/towndefence/MainMenuActivity; (122)
05-21 00:14:19.285: W/dalvikvm(7061): Link of class 'Lcom/lpp/towndefence/MainMenuActivity;' failed
05-21 00:14:19.285: D/AndroidRuntime(7061): Shutting down VM
05-21 00:14:19.285: W/dalvikvm(7061): threadid=1: thread exiting with uncaught exception (group=0x40018560)
05-21 00:14:19.345: E/AndroidRuntime(7061): FATAL EXCEPTION: main
05-21 00:14:19.345: E/AndroidRuntime(7061): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.lpp.towndefence/com.lpp.towndefence.MainMenuActivity}: java.lang.ClassNotFoundException: com.lpp.towndefence.MainMenuActivity in loader dalvik.system.PathClassLoader[/data/app/com.lpp.towndefence-1.apk]
05-21 00:14:19.345: E/AndroidRuntime(7061): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1679)
05-21 00:14:19.345: E/AndroidRuntime(7061): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1783)
05-21 00:14:19.345: E/AndroidRuntime(7061): at android.app.ActivityThread.access$1500(ActivityThread.java:123)
05-21 00:14:19.345: E/AndroidRuntime(7061): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:938)
05-21 00:14:19.345: E/AndroidRuntime(7061): at android.os.Handler.dispatchMessage(Handler.java:99)
05-21 00:14:19.345: E/AndroidRuntime(7061): at android.os.Looper.loop(Looper.java:130)
05-21 00:14:19.345: E/AndroidRuntime(7061): at android.app.ActivityThread.main(ActivityThread.java:3837)
05-21 00:14:19.345: E/AndroidRuntime(7061): at java.lang.reflect.Method.invokeNative(Native Method)
05-21 00:14:19.345: E/AndroidRuntime(7061): at java.lang.reflect.Method.invoke(Method.java:507)
05-21 00:14:19.345: E/AndroidRuntime(7061): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:847)
05-21 00:14:19.345: E/AndroidRuntime(7061): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:605)
05-21 00:14:19.345: E/AndroidRuntime(7061): at dalvik.system.NativeStart.main(Native Method)
05-21 00:14:19.345: E/AndroidRuntime(7061): Caused by: java.lang.ClassNotFoundException: com.lpp.towndefence.MainMenuActivity in loader dalvik.system.PathClassLoader[/data/app/com.lpp.towndefence-1.apk]
05-21 00:14:19.345: E/AndroidRuntime(7061): at dalvik.system.PathClassLoader.findClass(PathClassLoader.java:240)
05-21 00:14:19.345: E/AndroidRuntime(7061): at java.lang.ClassLoader.loadClass(ClassLoader.java:551)
05-21 00:14:19.345: E/AndroidRuntime(7061): at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
05-21 00:14:19.345: E/AndroidRuntime(7061): at android.app.Instrumentation.newActivity(Instrumentation.java:1021)
05-21 00:14:19.345: E/AndroidRuntime(7061): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1671)
05-21 00:14:19.345: E/AndroidRuntime(7061): ... 11 more
my manifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.lpp.towndefence"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="7"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<application
android:icon="#drawable/ic_launcher"
android:label="#string/app_name" >
<activity
android:label="#string/app_name"
android:name=".MainMenuActivity" >
<intent-filter >
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".TownDefenseActivity">
</activity>
</application>
</manifest>
I cleaned project, fixed project properties but it didn't help.
Like #Barak said: jar files goes in libs directory. But make sure that libraries are checked at "project properties" -> "java build path" -> "order and export" too.

Categories

Resources