发射后应用程序崩溃 [英] App crashes after launch

查看:93
本文介绍了发射后应用程序崩溃的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

该应用程序正在使用作品罚款少没有图像的工作是具体images.But少大小我需要使用大量的图片,并且无法安装在手机内存中我尝试安装在我的SD应用程序卡得到这个错误。 不明白为什么。 如何解决这个

This app am working with works fine with less no of images to be specific less size of images.But i need to use a lot of images,and was unable to install in phone internal memory I tried installing the app on my sd card and got this error . Can not understand why. How to resolve this

这是什么日志猫说

E/dalvikvm-heap(17405): Out of memory on a 3234424-byte allocation.
E/AndroidRuntime(17405): FATAL EXCEPTION: main
E/AndroidRuntime(17405): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mystictreegames.pagecurl/com.mystictreegames.pagecurl.StandaloneExample}: android.view.InflateException: Binary XML file line #6: Error inflating class com.mystictreegames.pagecurl.PageCurlView
E/AndroidRuntime(17405):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2343)
E/AndroidRuntime(17405):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2395)
E/AndroidRuntime(17405):    at android.app.ActivityThread.access$600(ActivityThread.java:162)
E/AndroidRuntime(17405):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1364)
E/AndroidRuntime(17405):    at android.os.Handler.dispatchMessage(Handler.java:107)
E/AndroidRuntime(17405):    at android.os.Looper.loop(Looper.java:194)
E/AndroidRuntime(17405):    at android.app.ActivityThread.main(ActivityThread.java:5371)
E/AndroidRuntime(17405):    at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(17405):    at java.lang.reflect.Method.invoke(Method.java:525)
E/AndroidRuntime(17405):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:833)
E/AndroidRuntime(17405):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
E/AndroidRuntime(17405):    at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(17405): Caused by: android.view.InflateException: Binary XML file line #6: Error inflating class com.mystictreegames.pagecurl.PageCurlView
E/AndroidRuntime(17405):    at android.view.LayoutInflater.createView(LayoutInflater.java:613)

和我的存储卡几乎是空的。

and my memory card is almost empty.

这是standalone_example.xml

This is standalone_example.xml

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">
    <com.mystictreegames.pagecurl.PageCurlView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:id="@+id/dcgpagecurlPageCurlView1"
        android:background="@drawable/background">
    </com.mystictreegames.pagecurl.PageCurlView>
</LinearLayout>

和我的main.xml中包含什么,但一个的ImageButton 我应该张贴也??

and my main.xml contains nothing but an imagebutton should I post that also ??

推荐答案

确认 PageCurlView 放在 com.mystictreegames.pagecurl

这篇关于发射后应用程序崩溃的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆