I have add a ImageView and assign a jpg file(a1.jpg), the file is 770Kb. When I run the project, that will Crash and show a lot of error log. I have try another jpg file, the the size is 70KB and run the project, that become no problem. Why? Thanks!
<ImageView
android:id="#+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:contentDescription="#string/Test_string"
android:src="#drawable/a1" />
The error log
02-09 12:47:34.692: D/AndroidRuntime(1023): Shutting down VM
02-09 12:47:34.692: W/dalvikvm(1023): threadid=1: thread exiting with uncaught exception (group=0x40a70930)
02-09 12:47:34.802: E/AndroidRuntime(1023): FATAL EXCEPTION: main
02-09 12:47:34.802: E/AndroidRuntime(1023): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.lighter.androidntest4/com.lighter.androidntest4.MainActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class <unknown>
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.app.ActivityThread.access$600(ActivityThread.java:141)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.os.Handler.dispatchMessage(Handler.java:99)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.os.Looper.loop(Looper.java:137)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.app.ActivityThread.main(ActivityThread.java:5039)
02-09 12:47:34.802: E/AndroidRuntime(1023): at java.lang.reflect.Method.invokeNative(Native Method)
02-09 12:47:34.802: E/AndroidRuntime(1023): at java.lang.reflect.Method.invoke(Method.java:511)
02-09 12:47:34.802: E/AndroidRuntime(1023): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
02-09 12:47:34.802: E/AndroidRuntime(1023): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
02-09 12:47:34.802: E/AndroidRuntime(1023): at dalvik.system.NativeStart.main(Native Method)
02-09 12:47:34.802: E/AndroidRuntime(1023): Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class <unknown>
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.view.LayoutInflater.createView(LayoutInflater.java:613)
02-09 12:47:34.802: E/AndroidRuntime(1023): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
02-09 12:47:34.802: E/AndroidRuntime(1023): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.app.Activity.setContentView(Activity.java:1881)
02-09 12:47:34.802: E/AndroidRuntime(1023): at com.lighter.androidntest4.MainActivity.onCreate(MainActivity.java:15)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.app.Activity.performCreate(Activity.java:5104)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
02-09 12:47:34.802: E/AndroidRuntime(1023): ... 11 more
02-09 12:47:34.802: E/AndroidRuntime(1023): Caused by: java.lang.reflect.InvocationTargetException
02-09 12:47:34.802: E/AndroidRuntime(1023): at java.lang.reflect.Constructor.constructNative(Native Method)
02-09 12:47:34.802: E/AndroidRuntime(1023): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.view.LayoutInflater.createView(LayoutInflater.java:587)
02-09 12:47:34.802: E/AndroidRuntime(1023): ... 24 more
02-09 12:47:34.802: E/AndroidRuntime(1023): Caused by: java.lang.OutOfMemoryError
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:502)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:355)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:785)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.content.res.Resources.loadDrawable(Resources.java:1965)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.widget.ImageView.<init>(ImageView.java:120)
02-09 12:47:34.802: E/AndroidRuntime(1023): at android.widget.ImageView.<init>(ImageView.java:110)
02-09 12:47:34.802: E/AndroidRuntime(1023): ... 27 more
It's probably because you're trying to load too large file. Even your error says so:
Caused by: java.lang.OutOfMemoryError
770KB image is quite large for android application. You should really think about something smaller.
You can also increase heap size for your emulator in AVD, but still in your situation it's better to use smaller image if you can.
Hmmm... it sounds like your drawable may not be setup correctly. Are you sure about the name etc?
The emulator cannot support that large an image, as shown by java.lang.OutOfMemoryError. You should be able to customise the emulator to allow larger memory by going into the AVD manager (I believe it is Max VM application heap size).
I had the same issue and Piotr Chojnacki was right; it was a image size issue. I assume that this is more of an issue for older devices and the emulator.
Related
I downloaded csipsimple and compile successfully. application is working fine on android version below lolipop (5.0) but while I run android APK in MARSHMALLOW (6.0), android app goes crashed and a give this toast as "Can't load native library. CPU arch invalid for this build".
I am getting the below exception while I am running this:
02-09 18:11:51.236: E/SIP SRV(4758): RESET SETTINGS !!!! 02-09
18:11:53.979: E/PjService(4758): We have a problem with the current
stack.... NOT YET Implemented 02-09 18:11:53.979: E/PjService(4758):
java.lang.UnsatisfiedLinkError: Cannot load library:
reloc_library[1290]: 113 cannot locate '__aeabi_ldiv0'... 02-09
18:11:53.979: E/PjService(4758): at
java.lang.Runtime.loadLibrary(Runtime.java:370) 08-05 18:11:53.979:
E/PjService(4758): at java.lang.System.loadLibrary(System.java:535)
02-09 18:11:53.979: E/PjService(4758): at
com.csipsimple.pjsip.PjSipService.tryToLoadStack(PjSipService.java:151)
02-09 18:11:53.979: E/PjService(4758): at
com.csipsimple.service.SipService.loadStack(SipService.java:1179)
02-09 18:11:53.979: E/PjService(4758): at
com.csipsimple.service.SipService.onStart(SipService.java:1099) 02-09
18:11:53.979: E/PjService(4758): at
android.app.Service.onStartCommand(Service.java:438) 02-09
18:11:53.979: E/PjService(4758): at
android.app.ActivityThread.handleServiceArgs(ActivityThread.java:2715)
02-09 18:11:53.979: E/PjService(4758): at
android.app.ActivityThread.access$1900(ActivityThread.java:139) 02-09
18:11:53.979: E/PjService(4758): at
android.app.ActivityThread$H.handleMessage(ActivityThread.java:1334)
02-09 18:11:53.979: E/PjService(4758): at
android.os.Handler.dispatchMessage(Handler.java:99) 02-09
18:11:53.979: E/PjService(4758): at
android.os.Looper.loop(Looper.java:154) 02-09 18:11:53.979:
E/PjService(4758): at
android.app.ActivityThread.main(ActivityThread.java:4944) 02-09
18:11:53.979: E/PjService(4758): at
java.lang.reflect.Method.invokeNative(Native Method) 02-09
18:11:53.979: E/PjService(4758): at
java.lang.reflect.Method.invoke(Method.java:511) 02-09 18:11:53.979:
E/PjService(4758): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
02-09 18:11:53.979: E/PjService(4758): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551) 02-09
18:11:53.979: E/PjService(4758): at
dalvik.system.NativeStart.main(Native Method)
could anyone help me to get rid of this.?
It means that your native libs missing some architecture specific builds specific to your device. E.g. in my project list of native libs looks like:
You have to check availability of your native libararies against used architecture
1、I want binding a java library(https://code.google.com/p/android-wheel/) to xamarin c# for android(IDE:VS2012\Eclipse)
2、Bingding method like this(http://developer.xamarin.com/guides/android/advanced_topics/java_integration_overview/binding_a_java_library_(.jar)/)
3、If i use the java code in C#(.cs),it is normally,
kankan.wheel.widget.WheelView wv = new kankan.wheel.widget.WheelView();
wv.DoSomething();
4、if i use the view in the layout(.axml),it is throw a exception
<kankan.wheel.widget.WheelView
android:id="#+id/MyWheel"
android:layout_width="100dp"
android:layout_height="100dp"
android:layout_centerInParent="true" />
ex
{Android.Views.InflateException: Exception of type 'Android.Views.InflateException' was thrown.
at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (IntPtr jobject, IntPtr jclass, IntPtr jmethod, Android.Runtime.JValue[] parms) [0x00084] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/163212a9/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:895
at Android.App.Activity.SetContentView (Int32 layoutResID) [0x00070] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.12-series/163212a9/source/monodroid/src/Mono.Android/platforms/android-19/src/generated/Android.App.Activity.cs:4252
at App5.MainActivity.OnCreate (Android.OS.Bundle bundle) [0x0000a] in c:\Users\zhengys.KGHGROUP\Documents\Visual Studio 2012\Projects\App5\App5\MainActivity.cs:23
--- End of managed exception stack trace ---
android.view.InflateException: Binary XML file line #1: Error inflating class kankan.wheel.widget.WheelView
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:698)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)
at android.app.Activity.setContentView(Activity.java:1881)
at app5.MainActivity.n_onCreate(Native Method)
at app5.MainActivity.onCreate(MainActivity.java:28)
at android.app.Activity.performCreate(Activity.java:5104)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
at android.app.ActivityThread.access$600(ActivityThread.java:141)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:5041)
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:793)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.ClassNotFoundException: Didn't find class "kankan.wheel.widget.WheelView" on path: /data/app/App5.App5-1.apk
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
at android.view.LayoutInflater.createView(LayoutInflater.java:552)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687)
... 22 more
}
base: {Java.Lang.RuntimeException}
5、Does anyone know what's going on?Is "kankan.wheel.widget.WheelView" wrong path?What's correct?I need you help!
Thank you !!
I have been trying to implement a sample application in order to study the working of Google maps API. I have been struck with the configuration itself. I can't seem to run the application.
Here's my code at Github :-
https://github.com/siva54/SampleMapApplication
And here's my logcat :-
02-11 15:09:07.492: I/Process(10080): Sending signal. PID: 10080 SIG: 9
02-11 15:09:17.012: E/dalvikvm(10364): Could not find class 'com.google.android.gms.maps.model.MarkerOptions', referenced from method com.myapp.gasapplication.MainActivity.setUpMap
02-11 15:09:17.012: W/dalvikvm(10364): VFY: unable to resolve new-instance 455 (Lcom/google/android/gms/maps/model/MarkerOptions;) in Lcom/myapp/gasapplication/MainActivity;
02-11 15:09:17.012: D/dalvikvm(10364): VFY: replacing opcode 0x22 at 0x0004
02-11 15:09:17.012: E/dalvikvm(10364): Could not find class 'com.google.android.gms.maps.SupportMapFragment', referenced from method com.myapp.gasapplication.MainActivity.setUpMapIfNeeded
02-11 15:09:17.012: W/dalvikvm(10364): VFY: unable to resolve check-cast 452 (Lcom/google/android/gms/maps/SupportMapFragment;) in Lcom/myapp/gasapplication/MainActivity;
02-11 15:09:17.012: D/dalvikvm(10364): VFY: replacing opcode 0x1f at 0x000e
02-11 15:09:17.012: D/dalvikvm(10364): DexOpt: unable to opt direct call 0x0cd0 at 0x06 in Lcom/myapp/gasapplication/MainActivity;.setUpMap
02-11 15:09:17.022: D/dalvikvm(10364): DexOpt: unable to opt direct call 0x0ccf at 0x0b in Lcom/myapp/gasapplication/MainActivity;.setUpMap
02-11 15:09:17.072: D/AndroidRuntime(10364): Shutting down VM
02-11 15:09:17.072: W/dalvikvm(10364): threadid=1: thread exiting with uncaught exception (group=0x40e02930)
02-11 15:09:17.082: E/AndroidRuntime(10364): FATAL EXCEPTION: main
02-11 15:09:17.082: E/AndroidRuntime(10364): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp.gasapplication/com.myapp.gasapplication.MainActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.app.ActivityThread.access$600(ActivityThread.java:141)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.os.Handler.dispatchMessage(Handler.java:99)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.os.Looper.loop(Looper.java:137)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.app.ActivityThread.main(ActivityThread.java:5039)
02-11 15:09:17.082: E/AndroidRuntime(10364): at java.lang.reflect.Method.invokeNative(Native Method)
02-11 15:09:17.082: E/AndroidRuntime(10364): at java.lang.reflect.Method.invoke(Method.java:511)
02-11 15:09:17.082: E/AndroidRuntime(10364): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
02-11 15:09:17.082: E/AndroidRuntime(10364): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
02-11 15:09:17.082: E/AndroidRuntime(10364): at dalvik.system.NativeStart.main(Native Method)
02-11 15:09:17.082: E/AndroidRuntime(10364): Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
02-11 15:09:17.082: E/AndroidRuntime(10364): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.app.Activity.setContentView(Activity.java:1881)
02-11 15:09:17.082: E/AndroidRuntime(10364): at com.myapp.gasapplication.MainActivity.onCreate(MainActivity.java:25)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.app.Activity.performCreate(Activity.java:5104)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
02-11 15:09:17.082: E/AndroidRuntime(10364): ... 11 more
02-11 15:09:17.082: E/AndroidRuntime(10364): Caused by: android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment com.google.android.gms.maps.SupportMapFragment: make sure class name exists, is public, and has an empty constructor that is public
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.support.v4.app.Fragment.instantiate(Fragment.java:401)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.support.v4.app.Fragment.instantiate(Fragment.java:369)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:272)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:676)
02-11 15:09:17.082: E/AndroidRuntime(10364): ... 21 more
02-11 15:09:17.082: E/AndroidRuntime(10364): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.maps.SupportMapFragment" on path: /data/app/com.myapp.gasapplication-1.apk
02-11 15:09:17.082: E/AndroidRuntime(10364): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
02-11 15:09:17.082: E/AndroidRuntime(10364): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
02-11 15:09:17.082: E/AndroidRuntime(10364): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
02-11 15:09:17.082: E/AndroidRuntime(10364): at android.support.v4.app.Fragment.instantiate(Fragment.java:391)
02-11 15:09:17.082: E/AndroidRuntime(10364): ... 24 more
02-11 15:10:58.032: E/dalvikvm(10887): Could not find class 'com.google.android.gms.maps.model.MarkerOptions', referenced from method com.myapp.gasapplication.MainActivity.setUpMap
02-11 15:10:58.032: W/dalvikvm(10887): VFY: unable to resolve new-instance 455 (Lcom/google/android/gms/maps/model/MarkerOptions;) in Lcom/myapp/gasapplication/MainActivity;
02-11 15:10:58.032: D/dalvikvm(10887): VFY: replacing opcode 0x22 at 0x0004
02-11 15:10:58.032: E/dalvikvm(10887): Could not find class 'com.google.android.gms.maps.SupportMapFragment', referenced from method com.myapp.gasapplication.MainActivity.setUpMapIfNeeded
02-11 15:10:58.032: W/dalvikvm(10887): VFY: unable to resolve check-cast 452 (Lcom/google/android/gms/maps/SupportMapFragment;) in Lcom/myapp/gasapplication/MainActivity;
02-11 15:10:58.032: D/dalvikvm(10887): VFY: replacing opcode 0x1f at 0x000e
02-11 15:10:58.032: D/dalvikvm(10887): DexOpt: unable to opt direct call 0x0cd0 at 0x06 in Lcom/myapp/gasapplication/MainActivity;.setUpMap
02-11 15:10:58.032: D/dalvikvm(10887): DexOpt: unable to opt direct call 0x0ccf at 0x0b in Lcom/myapp/gasapplication/MainActivity;.setUpMap
02-11 15:10:58.092: D/AndroidRuntime(10887): Shutting down VM
02-11 15:10:58.092: W/dalvikvm(10887): threadid=1: thread exiting with uncaught exception (group=0x40e02930)
02-11 15:10:58.092: E/AndroidRuntime(10887): FATAL EXCEPTION: main
02-11 15:10:58.092: E/AndroidRuntime(10887): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.myapp.gasapplication/com.myapp.gasapplication.MainActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2180)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2230)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.app.ActivityThread.access$600(ActivityThread.java:141)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1234)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.os.Handler.dispatchMessage(Handler.java:99)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.os.Looper.loop(Looper.java:137)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.app.ActivityThread.main(ActivityThread.java:5039)
02-11 15:10:58.092: E/AndroidRuntime(10887): at java.lang.reflect.Method.invokeNative(Native Method)
02-11 15:10:58.092: E/AndroidRuntime(10887): at java.lang.reflect.Method.invoke(Method.java:511)
02-11 15:10:58.092: E/AndroidRuntime(10887): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:793)
02-11 15:10:58.092: E/AndroidRuntime(10887): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:560)
02-11 15:10:58.092: E/AndroidRuntime(10887): at dalvik.system.NativeStart.main(Native Method)
02-11 15:10:58.092: E/AndroidRuntime(10887): Caused by: android.view.InflateException: Binary XML file line #7: Error inflating class fragment
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.view.LayoutInflater.rInflate(LayoutInflater.java:746)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
02-11 15:10:58.092: E/AndroidRuntime(10887): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:270)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.app.Activity.setContentView(Activity.java:1881)
02-11 15:10:58.092: E/AndroidRuntime(10887): at com.myapp.gasapplication.MainActivity.onCreate(MainActivity.java:25)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.app.Activity.performCreate(Activity.java:5104)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1080)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2144)
02-11 15:10:58.092: E/AndroidRuntime(10887): ... 11 more
02-11 15:10:58.092: E/AndroidRuntime(10887): Caused by: android.support.v4.app.Fragment$InstantiationException: Unable to instantiate fragment com.google.android.gms.maps.SupportMapFragment: make sure class name exists, is public, and has an empty constructor that is public
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.support.v4.app.Fragment.instantiate(Fragment.java:401)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.support.v4.app.Fragment.instantiate(Fragment.java:369)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:272)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:676)
02-11 15:10:58.092: E/AndroidRuntime(10887): ... 21 more
02-11 15:10:58.092: E/AndroidRuntime(10887): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.maps.SupportMapFragment" on path: /data/app/com.myapp.gasapplication-2.apk
02-11 15:10:58.092: E/AndroidRuntime(10887): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
02-11 15:10:58.092: E/AndroidRuntime(10887): at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
02-11 15:10:58.092: E/AndroidRuntime(10887): at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
02-11 15:10:58.092: E/AndroidRuntime(10887): at android.support.v4.app.Fragment.instantiate(Fragment.java:391)
02-11 15:10:58.092: E/AndroidRuntime(10887): ... 24 more
Would you please help? Thanks in advance.
It looks like it's not finding the Google Maps classes at runtime. Are you running this on a device or an emulator because you can't use Google Maps v2 on an emulator at this time.
If you are running on a device then make sure you have Google Play Services installed. It contains the runtime for Google Maps v2.
Solved my Problem. The issue occurred because even though I i referenced the google play library, The reference is not considered by eclipse and it was shown by a cross mark. I have resolved that with the help of the following stackoverflow post:-
In eclipse, unable to reference an android library project in another android project
I have programmed a simple app for testing some things.
One thing is AdMob.
On most of the Android Phone it works, but on Galaxy S3 or Galaxy Nexus, or on Tablets not. Maybe there is a Problem with the higher resoltuion?
The problem is that the app closes immediately when it starts. I tried to integrate AdMob on XML, but that does not work with the new version really.
Here is my AdMob Code.
#Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
AdRequest adRequest = new AdRequest();
adRequest.addTestDevice(AdRequest.TEST_EMULATOR);
AdView adView = new AdView(this, AdSize.BANNER, "replaced id with this");
//adView.setLayerType(View.LAYER_TYPE_SOFTWARE, null);
LinearLayout layout = (LinearLayout)findViewById(R.id.LayoutMain);
layout.addView(adView,0);
adView.loadAd(adRequest);
And here is the LogCat
12-20 18:39:18.056: I/dalvikvm(541): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
12-20 18:39:18.066: I/dalvikvm(541): at dalvik.system.NativeStart.main(Native Method)
12-20 18:39:18.086: D/AndroidRuntime(541): Shutting down VM
12-20 18:39:18.096: W/dalvikvm(541): threadid=1: thread exiting with uncaught exception (group=0x409961f8)
12-20 18:39:18.206: E/AndroidRuntime(541): FATAL EXCEPTION: main
12-20 18:39:18.206: E/AndroidRuntime(541): java.lang.RuntimeException: Unable to start activity ComponentInfo{at.android.dertestloerk/at.android.dertestloerk.MainActivity}: android.view.InflateException: Binary XML file line #1: Error inflating class android.widget.RelativeLayout
12-20 18:39:18.206: E/AndroidRuntime(541): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1955)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.app.ActivityThread.access$600(ActivityThread.java:122)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.os.Handler.dispatchMessage(Handler.java:99)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.os.Looper.loop(Looper.java:137)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.app.ActivityThread.main(ActivityThread.java:4340)
12-20 18:39:18.206: E/AndroidRuntime(541): at java.lang.reflect.Method.invokeNative(Native Method)
12-20 18:39:18.206: E/AndroidRuntime(541): at java.lang.reflect.Method.invoke(Method.java:511)
12-20 18:39:18.206: E/AndroidRuntime(541): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
12-20 18:39:18.206: E/AndroidRuntime(541): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
12-20 18:39:18.206: E/AndroidRuntime(541): at dalvik.system.NativeStart.main(Native Method)
12-20 18:39:18.206: E/AndroidRuntime(541): Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class android.widget.RelativeLayout
12-20 18:39:18.206: E/AndroidRuntime(541): at android.view.LayoutInflater.createView(LayoutInflater.java:606)
12-20 18:39:18.206: E/AndroidRuntime(541): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:653)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:678)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
12-20 18:39:18.206: E/AndroidRuntime(541): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.app.Activity.setContentView(Activity.java:1835)
12-20 18:39:18.206: E/AndroidRuntime(541): at at.android.dertestloerk.MainActivity.onCreate(MainActivity.java:27)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.app.Activity.performCreate(Activity.java:4465)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1919)
12-20 18:39:18.206: E/AndroidRuntime(541): ... 11 more
12-20 18:39:18.206: E/AndroidRuntime(541): Caused by: java.lang.reflect.InvocationTargetException
12-20 18:39:18.206: E/AndroidRuntime(541): at java.lang.reflect.Constructor.constructNative(Native Method)
12-20 18:39:18.206: E/AndroidRuntime(541): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.view.LayoutInflater.createView(LayoutInflater.java:586)
12-20 18:39:18.206: E/AndroidRuntime(541): ... 23 more
12-20 18:39:18.206: E/AndroidRuntime(541): Caused by: java.lang.OutOfMemoryError
12-20 18:39:18.206: E/AndroidRuntime(541): at android.graphics.Bitmap.nativeCreate(Native Method)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.graphics.Bitmap.createBitmap(Bitmap.java:605)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.graphics.Bitmap.createBitmap(Bitmap.java:551)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:437)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:524)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:499)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:351)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:773)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.content.res.Resources.loadDrawable(Resources.java:1937)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.view.View.<init>(View.java:2780)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.view.View.<init>(View.java:2717)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.view.ViewGroup.<init>(ViewGroup.java:379)
12-20 18:39:18.206: E/AndroidRuntime(541): at android.widget.RelativeLayout.<init>(RelativeLayout.java:174)
12-20 18:39:18.206: E/AndroidRuntime(541): ... 26 more
12-20 18:39:23.096: I/Process(541): Sending signal. PID: 541 SIG: 9
And here is my XML Layout
<LinearLayout xmlns:tools="http://schemas.android.com/tools"
xmlns:android="http://schemas.android.com/apk/res/android"
android:id="#+id/LayoutMain"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#drawable/hintergrund"
android:orientation="vertical"
tools:context=".MainActivity" >
<ImageView
android:id="#+id/imageViewLoerg"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:scaleType="fitCenter"
android:src="#drawable/animatedloerg"
tools:ignore="ContentDescription" /> </LinearLayout>
Hope you can help .-)
This has nothing to do with Admob. The error is at:
18:39:18.206: E/AndroidRuntime(541): Caused by: android.view.InflateException: Binary XML file line #1: Error inflating class android.widget.RelativeLayout 12-20 18:39:18.206: E/AndroidRuntime(541): at
Ie it is crashing trying to load the XML layout, long before you programmatically ad in the Admob AdView.
Look at your layout, there is a problem there.
I am new to android... I want to create simple android game using Andengine. Could you tell how to install Andengine in eclipse....I'm using eclipse on linux.
Edit:
Andengine is installed but I get this error message in logcat:
02-09 00:36:53.562: ERROR/AndEngine(501): java.io.FileNotFoundException: ggg
02-09 00:36:53.562: ERROR/AndEngine(501): at android.content.res.AssetManager.
openAsset(Native Method)
02-09 00:36:53.562: ERROR/AndEngine(501): at android.content.res.AssetManager
.open(AssetManager.java:313)
02-09 00:36:53.562: ERROR/AndEngine(501): at android.content.res.AssetManager
.open(AssetManager.java:287)
02-09 00:36:53.562: ERROR/AndEngine(501): at org.anddev.andengine.opengl.texture
.source.AssetTextureSource.<init>(AssetTextureSource.java:46)
02-09 00:36:53.562: ERROR/AndEngine(501): at org.anddev.andengine.opengl.texture
.region.TextureRegionFactory.createFromAsset(TextureRegionFactory.java:66)
02-09 00:36:53.562: ERROR/AndEngine(501): at org.anddev.andengine.examples.minimal
.AndEngineMinimalExample.onLoadResources(AndEngineMinimalExample.java:59)
02-09 00:36:53.562: ERROR/AndEngine(501): at org.anddev.andengine.ui.activity
.BaseGameActivity.doResume(BaseGameActivity.java:158)
02-09 00:36:53.562: ERROR/AndEngine(501): at org.anddev.andengine.ui.activity
.BaseGameActivity.onWindowFocusChanged(BaseGameActivity.java:83)
02-09 00:36:53.562: ERROR/AndEngine(501): at com.android.internal.policy.impl
.PhoneWindow$DecorView.onWindowFocusChanged(PhoneWindow.java:1981)
02-09 00:36:53.562: ERROR/AndEngine(501): at android.view.View
.dispatchWindowFocusChanged(View.java:3788)
02-09 00:36:53.562: ERROR/AndEngine(501): at android.view.ViewGroup
.dispatchWindowFocusChanged(ViewGroup.java:658)
02-09 00:36:53.562: ERROR/AndEngine(501): at
android.view.ViewRoot.handleMessage(ViewRoot.java:1921)
02-09 00:36:53.562: ERROR/AndEngine(501): at
android.os.Handler.dispatchMessage(Handler.java:99)
02-09 00:36:53.562: ERROR/AndEngine(501): at android.os.Looper.loop(Looper.java:123)
02-09 00:36:53.562: ERROR/AndEngine(501): at
android.app.ActivityThread.main(ActivityThread.java:4627)
02-09 00:36:53.562: ERROR/AndEngine(501): at
java.lang.reflect.Method.invokeNative(Native Method)
02-09 00:36:53.562: ERROR/AndEngine(501): at
java.lang.reflect.Method.invoke(Method.java:521)
02-09 00:36:53.562: ERROR/AndEngine(501): at
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
02-09 00:36:53.562: ERROR/AndEngine(501): at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
02-09 00:36:53.562: ERROR/AndEngine(501): at dalvik.system.NativeStart.main
(Native Method)
02-09 00:36:53.821: DEBUG/dalvikvm(501): GC_EXTERNAL_ALLOC freed 1797 objects /
148120 bytes in 173ms
02-09 00:36:54.160: DEBUG/libEGL(501): egl.cfg not found, using default config
02-09 00:36:54.230: DEBUG/libEGL(501): loaded /system/lib/egl/libGLES_android.so
02-09 00:36:54.425: DEBUG/AndEngine(501): onSurfaceCreated
02-09 00:36:54.441: DEBUG/AndEngine(501): RENDERER: Android PixelFlinger 1.3
02-09 00:36:54.500: DEBUG/AndEngine(501): VERSION: OpenGL ES-CM 1.0
02-09 00:36:54.511: DEBUG/AndEngine(501): EXTENSIONS: GL_OES_byte_coordinates
GL_OES_fixed_point GL_OES_single_precision GL_OES_read_format
GL_OES_compressed_paletted_texture GL_OES_draw_texture GL_OES_matrix_get
GL_OES_query_matrix GL_OES_EGL_image GL_OES_compressed_ETC1_RGB8_texture
GL_ARB_texture_compression GL_ARB_texture_non_power_of_two
GL_ANDROID_user_clip_plane
GL_ANDROID_vertex_buffer_object GL_ANDROID_generate_mipmap
02-09 00:36:54.531: DEBUG/AndEngine(501): EXTENSIONS_VERXTEXBUFFEROBJECTS = false
02-09 00:36:54.531: DEBUG/AndEngine(501): EXTENSIONS_DRAWTEXTURE = true
02-09 00:36:54.541: DEBUG/AndEngine(501): onSurfaceChanged: pWidth=480 pHeight=320
02-09 00:36:54.630: ERROR/AndEngine(501): Failed loading Bitmap in
AssetTextureSource. AssetPath: ggg
02-09 00:36:54.630: ERROR/AndEngine(501): java.io.FileNotFoundException: ggg
02-09 00:36:54.630: ERROR/AndEngine(501): at
android.content.res.AssetManager.openAsset(Native Method)
02-09 00:36:54.630: ERROR/AndEngine(501): at
android.content.res.AssetManager.open(AssetManager.java:313)
02-09 00:36:54.630: ERROR/AndEngine(501): at
android.content.res.AssetManager.open(AssetManager.java:287)
02-09 00:36:54.630: ERROR/AndEngine(501): at
org.anddev.andengine.opengl.texture.source
.AssetTextureSource.onLoadBitmap(AssetTextureSource.java:95)
02-09 00:36:54.630: ERROR/AndEngine(501): at org.anddev.andengine.opengl.texture
.Texture$TextureSourceWithLocation.onLoadBitmap(Texture.java:364)
02-09 00:36:54.630: ERROR/AndEngine(501): at org.anddev.andengine.opengl.texture
.Texture.writeTextureToHardware(Texture.java:208)
02-09 00:36:54.630: ERROR/AndEngine(501): at
org.anddev.andengine.opengl.texture.Texture.loadToHardware(Texture.java:175)
02-09 00:36:54.630: ERROR/AndEngine(501): at org.anddev.andengine.opengl.texture
.TextureManager.updateTextures(TextureManager.java:136)
02-09 00:36:54.630: ERROR/AndEngine(501): at org.anddev.andengine.engine.Engine
.onDrawFrame(Engine.java:508)
02-09 00:36:54.630: ERROR/AndEngine(501): at org.anddev.andengine.opengl.view
.RenderSurfaceView$Renderer.onDrawFrame(RenderSurfaceView.java:148)
02-09 00:36:54.630: ERROR/AndEngine(501): at org.anddev.andengine.opengl.view
.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:617)
02-09 00:36:54.630: ERROR/AndEngine(501): at org.anddev.andengine.opengl.view
.GLSurfaceView$GLThread.run(GLSurfaceView.java:549)
02-09 00:36:54.751: ERROR/AndEngine(501): Error loading: AssetTextureSource(ggg)
02-09 00:36:54.751: ERROR/AndEngine(501): java.lang.IllegalArgumentException:
TextureSource: AssetTextureSource(ggg) returned a null Bitmap.
02-09 00:36:54.751: ERROR/AndEngine(501): at org.anddev.andengine.opengl.texture
.Texture.writeTextureToHardware(Texture.java:211)
02-09 00:36:54.751: ERROR/AndEngine(501): at
org.anddev.andengine.opengl.texture.Texture.loadToHardware(Texture.java:175)
02-09 00:36:54.751: ERROR/AndEngine(501): at org.anddev.andengine.opengl.texture
.TextureManager.updateTextures(TextureManager.java:136)
02-09 00:36:54.751: ERROR/AndEngine(501): at
org.anddev.andengine.engine.Engine.onDrawFrame(Engine.java:508)
02-09 00:36:54.751: ERROR/AndEngine(501): at org.anddev.andengine.opengl.view
.RenderSurfaceView$Renderer.onDrawFrame(RenderSurfaceView.java:148)
02-09 00:36:54.751: ERROR/AndEngine(501): at org.anddev.andengine.opengl.view
.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:617)
02-09 00:36:54.751: ERROR/AndEngine(501): at org.anddev.andengine.opengl.view
.GLSurfaceView$GLThread.run(GLSurfaceView.java:549)
02-09 00:36:54.793: WARN/dalvikvm(501): threadid=7: thread exiting with uncaught
exception (group=0x4001d800)
02-09 00:36:54.831: ERROR/AndroidRuntime(501): FATAL EXCEPTION: GLThread
02-09 00:36:54.831: ERROR/AndroidRuntime(501): java.lang.IllegalArgumentException:
TextureSource: AssetTextureSource(ggg) returned a null Bitmap.
02-09 00:36:54.831: ERROR/AndroidRuntime(501): at org.anddev.andengine.opengl.texture
.Texture.writeTextureToHardware(Texture.java:211)
02-09 00:36:54.831: ERROR/AndroidRuntime(501):at org.anddev.andengine.opengl.texture
.Texture.loadToHardware(Texture.java:175)
02-09 00:36:54.831: ERROR/AndroidRuntime(501): at
org.anddev.andengine.opengl.texture
.TextureManager.updateTextures(TextureManager.java:136)
02-09 00:36:54.831: ERROR/AndroidRuntime(501): at org.anddev.andengine.engine
.Engine.onDrawFrame(Engine.java:508)
02-09 00:36:54.831: ERROR/AndroidRuntime(501): at org.anddev.andengine.opengl.view
.RenderSurfaceView$Renderer.onDrawFrame(RenderSurfaceView.java:148)
02-09 00:36:54.831: ERROR/AndroidRuntime(501): at org.anddev.andengine.opengl.view
.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:617)
02-09 00:36:54.831: ERROR/AndroidRuntime(501): at org.anddev.andengine.opengl.view
.GLSurfaceView$GLThread.run(GLSurfaceView.java:549)
02-09 00:36:54.983: WARN/ActivityManager(66):Force finishing
activityorg.anddev.andengine.examples.minimal/.AndEngineMinimalExample
02-09 00:36:55.661: DEBUG/dalvikvm(66): GC_EXPLICIT freed 2704 objects /
163368 bytes in 265ms
02-09 00:36:55.743: INFO/WindowManager(66): Setting rotation to 0, animFlags=1
02-09 00:36:55.781: INFO/ActivityManager(66): Config changed: { scale=1.0 imsi=310/260
loc=en_US touch=3 keys=2/1/2 nav=3/1 orien=1 layout=18 uiMode=17 seq=13}
02-09 00:36:56.240: WARN/ActivityManager(66): Activity pause timeout for
HistoryRecord{43fd2338 org.anddev
.andengine.examples.minimal/.AndEngineMinimalExample}
02-09 00:36:56.922: WARN/IInputConnectionWrapper(288): showStatusIcon on inactive
InputConnection
02-09 00:36:57.416: WARN/WindowManager(66): Window freeze timeout expired.
02-09 00:36:57.416: WARN/WindowManager(66): Force clearing orientation change:
Window{43fecea8 StatusBarExpanded paused=false}
02-09 00:36:57.431: WARN/WindowManager(66): Force clearing orientation change:
Window{43fba7b0 com.android.launcher/com.android.launcher2.Launcher paused=false}
02-09 00:36:59.090: DEBUG/dalvikvm(335): GC_EXPLICIT freed 85 objects / 3560bytes
in 12084ms
02-09 00:36:59.891: DEBUG/dalvikvm(66): GC_EXPLICIT freed 1126 objects / 61592 bytes
in 399ms
02-09 00:37:07.941: WARN/ActivityManager(66): Activity destroy timeout for
HistoryRecord{43fd2338 org.anddev.andengine.examples.minimal/
.AndEngineMinimalExample}
just add the andengine.jar to your lib folder in your project (if you don't have one create it)
then add the jar on the project build path
there you have it, you succesfully installed andengine
How to get full sources in true way
cd EclipseWorkspace/
hg clone https://code.google.com/p/andengine/ AndEngine
hg clone https://code.google.com/p/andenginelivewallpaperextension/ AndEngineLiveWallpaperExtension
hg clone https://code.google.com/p/andenginemodplayerextension/ AndEngineMODPlayerExtension
hg clone https://code.google.com/p/andenginemultiplayerextension/ AndEngineMultiplayerExtension
hg clone https://code.google.com/p/andenginemultitouchextension/ AndEngineMultiTouchExtension
hg clone https://code.google.com/p/andenginephysicsbox2dextension/ AndEnginePhysicsBox2DExtension
hg clone https://code.google.com/p/andengineaugmentedrealityextension/ AndEngineAugmentedRealityExtension
hg clone https://code.google.com/p/andenginesvgtextureregionextension/ AndEngineSVGTextureRegionExtension
hg clone https://code.google.com/p/andenginetexturepackerextension/ AndEngineTexturePackerExtension
hg clone https://code.google.com/p/andengineexamples/ AndEngineExamples
mkdir AndEngine/res
mkdir AndEngineLiveWallpaperExtension/res
mkdir AndEngineMODPlayerExtension/res
mkdir AndEngineMultiplayerExtension/res
mkdir AndEngineMultiTouchExtension/res
mkdir AndEnginePhysicsBox2DExtension/res
mkdir AndEngineAugmentedRealityExtension/res
mkdir AndEngineSVGTextureRegionExtension/res
mkdir AndEngineTexturePackerExtension/res
then import all project into eclipse's workspace and run AndEngineExamples