Autore Topic: Error inflating ???  (Letto 673 volte)

Offline salvatore.zagarella

  • Utente normale
  • ***
  • Post: 239
  • Respect: +2
    • Mostra profilo
    • Ieeng Solution
Error inflating ???
« il: 24 Luglio 2012, 18:05:41 CEST »
0
Ciao ragazzi,
ho appena aggiornato l'SDK android e mi da uno strano problema con un'app che non ne aveva...
Quando parte l'attività di intro, mi segnala uno strano errore che non so risolvere..
Codice: [Seleziona]
07-24 16:02:46.031: E/AndroidRuntime(833): FATAL EXCEPTION: main
07-24 16:02:46.031: E/AndroidRuntime(833): java.lang.RuntimeException: Unable to start activity ComponentInfo{ieeng.music.alarm/ieeng.music.alarm.splash}: android.view.InflateException: Binary XML file line #2: Error inflating class android.widget.RelativeLayout
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1955)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1980)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.app.ActivityThread.access$600(ActivityThread.java:122)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1146)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.os.Handler.dispatchMessage(Handler.java:99)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.os.Looper.loop(Looper.java:137)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.app.ActivityThread.main(ActivityThread.java:4340)
07-24 16:02:46.031: E/AndroidRuntime(833):         at java.lang.reflect.Method.invokeNative(Native Method)
07-24 16:02:46.031: E/AndroidRuntime(833):         at java.lang.reflect.Method.invoke(Method.java:511)
07-24 16:02:46.031: E/AndroidRuntime(833):         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
07-24 16:02:46.031: E/AndroidRuntime(833):         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
07-24 16:02:46.031: E/AndroidRuntime(833):         at dalvik.system.NativeStart.main(Native Method)
07-24 16:02:46.031: E/AndroidRuntime(833): Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class android.widget.RelativeLayout
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.view.LayoutInflater.createView(LayoutInflater.java:606)
07-24 16:02:46.031: E/AndroidRuntime(833):         at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.view.LayoutInflater.onCreateView(LayoutInflater.java:653)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:678)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
07-24 16:02:46.031: E/AndroidRuntime(833):         at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.app.Activity.setContentView(Activity.java:1835)
07-24 16:02:46.031: E/AndroidRuntime(833):         at ieeng.music.alarm.splash.onCreate(splash.java:17)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.app.Activity.performCreate(Activity.java:4465)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1919)
07-24 16:02:46.031: E/AndroidRuntime(833):         ... 11 more
07-24 16:02:46.031: E/AndroidRuntime(833): Caused by: java.lang.reflect.InvocationTargetException
07-24 16:02:46.031: E/AndroidRuntime(833):         at java.lang.reflect.Constructor.constructNative(Native Method)
07-24 16:02:46.031: E/AndroidRuntime(833):         at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.view.LayoutInflater.createView(LayoutInflater.java:586)
07-24 16:02:46.031: E/AndroidRuntime(833):         ... 23 more
07-24 16:02:46.031: E/AndroidRuntime(833): Caused by: java.lang.OutOfMemoryError
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.graphics.Bitmap.nativeCreate(Native Method)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.graphics.Bitmap.createBitmap(Bitmap.java:605)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.graphics.Bitmap.createBitmap(Bitmap.java:551)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.graphics.Bitmap.createScaledBitmap(Bitmap.java:437)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.graphics.BitmapFactory.finishDecode(BitmapFactory.java:524)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:499)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:351)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:773)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.content.res.Resources.loadDrawable(Resources.java:1937)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.view.View.<init>(View.java:2780)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.view.View.<init>(View.java:2717)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.view.ViewGroup.<init>(ViewGroup.java:379)
07-24 16:02:46.031: E/AndroidRuntime(833):         at android.widget.RelativeLayout.<init>(RelativeLayout.java:174)
07-24 16:02:46.031: E/AndroidRuntime(833):         ... 26 more
07-24 16:02:46.050: W/ActivityManager(88):   Force finishing activity ieeng.music.alarm/.splash
07-24 16:02:46.060: W/WindowManager(88): Failure taking screenshot for (180x300) to layer 21010
07-24 16:02:46.150: I/WindowManager(88): createSurface Window{415ec2c8  paused=false}: DRAW NOW PENDING
07-24 16:02:46.570: W/ActivityManager(88): Activity pause timeout for ActivityRecord{41539578 ieeng.music.alarm/.splash}
07-24 16:02:46.870: E/SurfaceTexture(36): [com.android.launcher/com.android.launcher2.Launcher] connect: already connected (cur=2, req=2)
07-24 16:02:47.020: E/ViewRootImpl(187): IllegalArgumentException locking surface
07-24 16:02:47.020: E/ViewRootImpl(187): java.lang.IllegalArgumentException
07-24 16:02:47.020: E/ViewRootImpl(187):         at android.view.Surface.lockCanvasNative(Native Method)
07-24 16:02:47.020: E/ViewRootImpl(187):         at android.view.Surface.lockCanvas(Surface.java:76)
07-24 16:02:47.020: E/ViewRootImpl(187):         at android.view.ViewRootImpl.draw(ViewRootImpl.java:1924)
07-24 16:02:47.020: E/ViewRootImpl(187):         at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1613)
07-24 16:02:47.020: E/ViewRootImpl(187):         at android.view.ViewRootImpl.handleMessage(ViewRootImpl.java:2418)
07-24 16:02:47.020: E/ViewRootImpl(187):         at android.os.Handler.dispatchMessage(Handler.java:99)
07-24 16:02:47.020: E/ViewRootImpl(187):         at android.os.Looper.loop(Looper.java:137)
07-24 16:02:47.020: E/ViewRootImpl(187):         at android.app.ActivityThread.main(ActivityThread.java:4340)
07-24 16:02:47.020: E/ViewRootImpl(187):         at java.lang.reflect.Method.invokeNative(Native Method)
07-24 16:02:47.020: E/ViewRootImpl(187):         at java.lang.reflect.Method.invoke(Method.java:511)
07-24 16:02:47.020: E/ViewRootImpl(187):         at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
07-24 16:02:47.020: E/ViewRootImpl(187):         at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
07-24 16:02:47.020: E/ViewRootImpl(187):         at dalvik.system.NativeStart.main(Native Method)
07-24 16:02:47.040: W/NetworkManagementSocketTagger(88): setKernelCountSet(10040, 0) failed with errno -2
07-24 16:02:57.084: W/ActivityManager(88): Activity destroy timeout for ActivityRecord{41539578 ieeng.music.alarm/.splash}

Qualcuno sa cosa voglia dire e come si risolve??

Grazie..

Offline salvatore.zagarella

  • Utente normale
  • ***
  • Post: 239
  • Respect: +2
    • Mostra profilo
    • Ieeng Solution
Re:Error inflating ???
« Risposta #1 il: 24 Luglio 2012, 18:21:48 CEST »
0
Bastava ridimensionare l'img di sfondo..

Scusate..