我正在尝试使用PhoneGap在Android中开发应用程序.
这是我的代码
package com.example.streat; import org.apache.cordova.DroidGap; import android.os.Bundle; import android.util.Log; public class MainActivity extends DroidGap { @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Log.e("SOMESTRING", "I am into pGAP"); super.setIntegerProperty("loadUrlTimeoutValue", 60000); super.loadUrl("file:///android_asset/www/index.html"); } }
AndroidManifest.xml中
当在Logcat内部进行监控时,我最终会收到此异常
04-23 05:27:36.570: E/chromium(902): [ERROR:gles2_cmd_decoder.cc(3389)] GLES2DecoderImpl::ResizeOffscreenFrameBuffer failed to allocate storage for offscreen target depth buffer. 04-23 05:27:36.580: E/chromium(902): [ERROR:in_process_command_buffer.cc(465)] Could not initialize decoder. 04-23 05:27:36.590: A/libc(902): Fatal signal 11 (SIGSEGV) at 0x00000048 (code=1), thread 902 (.example.streat)
有人可以告诉我如何解决这个错误.我也试图增加ram和堆的大小,但没有任何效果.