实际上,我正在尝试使用TMDb API制作电影应用。当我在emulater中无错误地运行时,它会显示电影海报。但是,当我在移动设备上运行时,它无效并显示“不幸的应用程序已停止”消息。 / ------------------------
<?xml version="1.0" encoding="utf-8"?>
<manifest package="com.santossingh.popularmoviesapp"
xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.INTERNET"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:exported="true"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
</application>
</manifest>
/----------------------
Logcat Varbose n Debug
03-02 07:53:16.513 25321-25321/? I/art: Late-enabling -Xcheck:jni
03-02 07:53:16.602 25321-25321/com.santossingh.popularmoviesapp W/System: ClassLoader referenced unknown path: /data/app/com.santossingh.popularmoviesapp-1/lib/x86
03-02 07:53:16.778 25321-25341/com.santossingh.popularmoviesapp D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
03-02 07:53:16.934 25321-25341/com.santossingh.popularmoviesapp D/libEGL: loaded /system/lib/egl/libEGL_emulation.so
03-02 07:53:16.936 25321-25341/com.santossingh.popularmoviesapp D/libEGL: loaded /system/lib/egl/libGLESv1_CM_emulation.so
03-02 07:53:16.948 25321-25341/com.santossingh.popularmoviesapp D/libEGL: loaded /system/lib/egl/libGLESv2_emulation.so
03-02 07:53:17.067 25321-25341/com.santossingh.popularmoviesapp I/OpenGLRenderer: Initialized EGL, version 1.4
03-02 07:53:17.230 25321-25341/com.santossingh.popularmoviesapp W/EGL_emulation: eglSurfaceAttrib not implemented
03-02 07:53:17.230 25321-25341/com.santossingh.popularmoviesapp W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xed760740, error=EGL_SUCCESS
03-02 07:53:17.778 25321-25321/com.santossingh.popularmoviesapp W/Settings: Setting airplane_mode_on has moved from android.provider.Settings.System to android.provider.Settings.Global, returning read-only value.