Konnte nicht geladen werden memtrack Modul Logcat Fehler
Ich erhalte eine Fehlermeldung Couldn't load memtrack module (No such file or directory) failed to load memtrack module: -2
zur Laufzeit.
StackTrace Fehler:
E/SoundPool(1280) : error loading /system/media/audio/ui/Effect_Tick.ogg
E/SoundPool(1280) : error loading /system/media/audio/ui/KeypressStandard.ogg
E/SurfaceFlinger(931) : glCheckFramebufferStatusOES error 733995180
E/memtrack(1873) : Couldn't load memtrack module (No such file or directory)
E/android.os.Debug(1873): failed to load memtrack module: -2
E/libEGL(931) : called unimplemented OpenGL ES API
E/libEGL(931) : called unimplemented OpenGL ES API
E/libEGL(931) : called unimplemented OpenGL ES API
E/libEGL(931) : called unimplemented OpenGL ES API
E/SurfaceFlinger(931) : glCheckFramebufferStatusOES error 733995180
E/SurfaceFlinger(931) : got GL_FRAMEBUFFER_COMPLETE_OES error while taking screenshot
E/libEGL(931) : called unimplemented OpenGL ES API
E/libEGL(931) : called unimplemented OpenGL ES API
Manifest:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.hive"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="19" />
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" android:name="com.sit.gems.app.GemsApplication"
android:theme="@style/AppTheme" >
<activity
android:name="com.sit.gems.activity.SplashActivity"
android:label="@string/app_name" android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.sit.gems.activity.HomeActivity" android:screenOrientation="portrait"></activity>
</application>
</manifest>
SplashActivity.java:
package com.sit.gems.activity;
import com.example.hive.R;
import android.content.Intent;
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
public class SplashActivity extends FragmentActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.layout_home);
startActivity(new Intent(SplashActivity.this,HomeActivity.class));
SplashActivity.this.finish();
}
}
layout_home.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"
android:orientation="vertical" >
<TabHost
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_above="@android:id/tabs" >
<FrameLayout
android:id="@+id/tab_home"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
<FrameLayout
android:id="@+id/tab_video"
android:layout_width="fill_parent"
android:layout_height="fill_parent" />
<FrameLayout
android:id="@+id/tab_audio"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</FrameLayout>
<FrameLayout
android:id="@+id/tab_blog"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</FrameLayout>
<FrameLayout
android:id="@+id/tab_gal"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</FrameLayout>
<FrameLayout
android:id="@+id/tab_more"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
</FrameLayout>
</FrameLayout>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="@drawable/bottom_bar"
android:divider="@null" />
<!-- android:background="#d8e49c" -->
</RelativeLayout>
</TabHost>
</LinearLayout>
Ausgabe:
Schließlich zeigt es den leeren Bildschirm.
Weiß jemand, wie die Lösung dieser stacktrace Fehler.Vielen Dank im Voraus.
InformationsquelleAutor der Frage Luffy | 2014-03-25
Du musst angemeldet sein, um einen Kommentar abzugeben.
Dieser Fehler, wie Sie Lesen können, auf die Frage in den Kommentaren obendie Ergebnisse zu:
Schritt 1 unten soll dieses problem beheben. Auch ich sehe, Sie haben einige seltsame Paketnamen, die in Ihrem manifest:
<manifest>
tag,<application>
<activity>
Wie Sie wissen, diese Dinge nicht verhindern, dass Ihre app angezeigt werden. Aber ich denke:
Für eine bessere Ausnutzung und mit wenigen Dingen, kann dies gelöst werden, indem Sie die folgenden Tipps:
1. Versuchen Sie einen anderen emulator...
Und sogar ein echtes Gerät! Die
memtrack module
Fehler scheint im Zusammenhang mit Ihrem emulator. So ändern Sie es inRun configuration
vergessen Sie nicht, ändern Sie dieAPI
zu.2. OpenGL error-logs
Für
OpenGl
Fehler, wiecalled unimplemented OpenGL ES API
es ist nicht ein Fehler, sondern ein statement! Aktivieren Sie es in Ihrem manifest (Lesen Sie diese Antwort wenn Sie mit GLSurfaceView innenHomeActivity.java
es könnte dir helfen):3. Verwenden Sie das gleiche Paket
Nicht erklären verschiedene package-Namen, um alle tags in
Manifest
. Sie sollten das gleiche fürManifest
Activities
usw. So etwas sieht Recht:4. Don ' T get lost mit layouts:
Sollten Sie ein anderes layout für
SplashScreenActivity.java
denn Sie sind nicht mit denTabHost
für den splash-screen und das ist nicht eine sichere Quelle Weg. Deklarieren Sie ein bestimmtes layout, um etwas anderes, wie der app-name und das logo:Vermeiden Sie die Verwendung von Layouts in Aktivitäten, die nicht nutzen es.
5. Der Splash-Screen?
Endlich, ich verstehe nicht, eindeutig den Zweck der
SplashScreenActivity
. Es setzt die Inhalte einsehen und direkt fertig stellen. Dies ist nutzlos.Wie der name ist Splash-Screenich gehe davon aus, dass Sie möchten, um einen Bildschirm aufzurufen, bevor starten Ihrer
HomeActivity
. Daher sollten Sie dies tun und nicht dieTabHost
layout 😉:Ich hoffe, diese Art von Tipps, die Ihnen helfen zu erreichen, was Sie wollen.
Wenn es nicht der Fall ist, lassen Sie mich wissen, wie kann ich Ihnen helfen.
InformationsquelleAutor der Antwort Fllo
Ich hatte den gleichen Fehler. Erstellen Sie eine neue AVD mit den entsprechenden API-level ist mein problem gelöst.
InformationsquelleAutor der Antwort aysenur
Aktivieren der ADB Integration mein problem gelöst.
Im Menü:
Tools -> Android -> Enable ADB Integration
InformationsquelleAutor der Antwort MehrdadSComputer
Ich Stand vor dem gleichen problem, aber Als ich verändert die Haut der AVD Gerät HVGA, es funktionierte.
InformationsquelleAutor der Antwort Ray
Für Menschen mit Xamarin
Fand ich, dass die Einstellung der Verknüpfung Sdk Nur bei Baugruppen funktioniert der trick:
Projekt -> Eigenschaften -> Android-Optionen -> Linker tab -> Verknüpfung:
InformationsquelleAutor der Antwort Pierre
tun Sie rief die ViewTreeObserver und nicht entfernen.
InformationsquelleAutor der Antwort baiiu
Ich hatte dieses Problem auch, auch auf einem emulator ausgeführt.. Die gleiche Meldung zeigte bis auf Logcat, aber das war es nicht, die die Funktionalität der app. Aber es war ärgerlich, und ich weiß nicht, wie Sie sehen Fehler auf dem Protokoll, dass ich nicht verstehe.
Sowieso, ich entledigte sich die Nachricht von Erhöhung der RAM auf dem emulator.
InformationsquelleAutor der Antwort InquisitiveCrow