Android-app-Fehler - leider ist die app aufgehört hat

Ich bin mit eclipse für android app-Entwicklung. Wenn ich meinen code mit einem emulator, der es sagt, leider ist die app beendet wurde. In der log-Katze, es heißt "Low memory killer". Wie dieses problem zu beheben? Kann das jemand bitte um Antwort..

Hier sind die stack-trace, die angezeigt werden, wenn meine app laden..

  09-03 15:54:39.109: E/SysUtils(1892): ApplicationContext is null in ApplicationStatus
09-03 15:54:40.027: E/libEGL(1892): validate_display:255 error 3008 (EGL_BAD_DISPLAY)
09-03 15:54:40.027: E/libEGL(1892): validate_display:255 error 3008 (EGL_BAD_DISPLAY)
09-03 15:54:40.027: E/chromium(1892): [ERROR:gl_surface_egl.cc(327)] No suitable EGL configs found.
09-03 15:54:40.027: E/chromium(1892): [ERROR:gl_surface_android.cc(23)] GLSurfaceEGL::InitializeOneOff failed.
09-03 15:54:40.027: E/chromium(1892): [ERROR:browser_main_loop.cc(698)] GLSurface::InitializeOneOff failed
09-03 15:54:40.396: E/DataReductionProxySettingListener(1892): No DRP key due to exception:java.lang.ClassNotFoundException: com.android.webview.chromium.Drp
09-03 15:54:44.051: A/chromium(1892): [FATAL:gl_surface_android.cc(58)] Check failed: kGLImplementationNone != GetGLImplementation() (0 vs. 0)
09-03 15:54:44.051: A/chromium(1892): --------- beginning of crash
09-03 15:54:44.052: A/libc(1892): Fatal signal 6 (SIGABRT), code -6 in tid 1972 (GpuThread)
09-03 15:57:17.517: E/SysUtils(2115): ApplicationContext is null in ApplicationStatus
09-03 15:57:17.598: E/libEGL(2115): validate_display:255 error 3008 (EGL_BAD_DISPLAY)
09-03 15:57:17.598: E/libEGL(2115): validate_display:255 error 3008 (EGL_BAD_DISPLAY)
09-03 15:57:17.598: E/chromium(2115): [ERROR:gl_surface_egl.cc(327)] No suitable EGL configs found.
09-03 15:57:17.598: E/chromium(2115): [ERROR:gl_surface_android.cc(23)] GLSurfaceEGL::InitializeOneOff failed.
09-03 15:57:17.598: E/chromium(2115): [ERROR:browser_main_loop.cc(698)] GLSurface::InitializeOneOff failed
09-03 15:57:17.674: E/DataReductionProxySettingListener(2115): No DRP key due to exception:java.lang.ClassNotFoundException: com.android.webview.chromium.Drp
09-03 15:57:18.141: A/chromium(2115): [FATAL:gl_surface_android.cc(58)] Check failed: kGLImplementationNone != GetGLImplementation() (0 vs. 0)
09-03 15:57:18.141: A/libc(2115): Fatal signal 6 (SIGABRT), code -6 in tid 2155 (GpuThread)

Haupttätigkeit Datei

package com.example.login4;

import android.app.Activity;
import android.os.Bundle;

import android.webkit.WebView;

public class MainActivity extends Activity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        WebView ourBrow = (WebView) findViewById(R.id.wvBrowser);
        ourBrow.loadUrl("http://www.000webhost.com//");
    }


}

XML-Datei

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"

    tools:context="com.example.login4.MainActivity" >

    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/hello_world" />

    <WebView 
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:id="@+id/wvBrowser"/>

</RelativeLayout> 
Wenn Ihre app abstürzt, logcat Bericht sollte eine Fehlermeldung mit einem kompletten stack-trace. Post, die gesamte stack-trace.
Auch Eclipse ist nicht mehr offiziell unterstützt. Sollten Sie zu bewegen, um Android-Studio, vor allem wenn Sie neu auf Android.
Ok ich werde es versuchen.
Ich versuchen, nach der stack-trace. Aber hier stack over flow sagt, dass es mehr Zeichen als die stack-überlauf ermöglichen, posten Sie einen Kommentar oder eine Frage.
Versuchen Sie, eine Ausnahme bildet nur ein Teil, anstelle des gesamten logcat logs.

InformationsquelleAutor Avini Sasadari Wanigasinghe | 2015-09-03

Schreibe einen Kommentar