请问有大神能帮我看看为什么闪退吗

04-17 22:57:47.229 1542-1597/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=-0.00 rxSuccessRate=-0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45
04-17 22:58:02.995 2185-2185/? E/memtrack: Couldn't load memtrack module (No such file or directory)
04-17 22:58:02.995 2185-2185/? E/android.os.Debug: failed to load memtrack module: -2
04-17 22:58:03.486 2212-2212/? E/libnativebridge: denglibol LoadNativeBridge error! nb_library_filename invalid!
04-17 22:58:07.177 2243-2243/? E/memtrack: Couldn't load memtrack module (No such file or directory)
04-17 22:58:07.177 2243-2243/? E/android.os.Debug: failed to load memtrack module: -2
04-17 22:58:07.231 1542-1597/system_process E/WifiStateMachine: WifiStateMachine CMD_START_SCAN source -2 txSuccessRate=-0.00 rxSuccessRate=-0.00 targetRoamBSSID=00:81:ec:72:db:e9 RSSI=-45
04-17 22:58:07.334 1542-1597/system_process E/WifiStateMachine: denglibo mScanResults.size=1
04-17 22:58:07.420 2255-2255/com.example.hasee.myapplication E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.hasee.myapplication, PID: 2255
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.hasee.myapplication/com.example.hasee.myapplication.MainActivity}: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
at android.app.ActivityThread.access$800(ActivityThread.java:151)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5254)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700)
Caused by: java.lang.RuntimeException: Your content must have a ListView whose id attribute is 'android.R.id.list'
at android.app.ListActivity.onContentChanged(ListActivity.java:243)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:382)
at android.app.Activity.setContentView(Activity.java:2145)
at com.example.hasee.myapplication.MainActivity.onCreate(MainActivity.java:34)
at android.app.Activity.performCreate(Activity.java:5990)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387) 
at android.app.ActivityThread.access$800(ActivityThread.java:151) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303) 
at android.os.Handler.dispatchMessage(Handler.java:102) 
at android.os.Looper.loop(Looper.java:135) 
at android.app.ActivityThread.main(ActivityThread.java:5254) 
at java.lang.reflect.Method.invoke(Native Method) 
at java.lang.reflect.Method.invoke(Method.java:372) 
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:905) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:700) 
04-17 22:58:07.587 1366-1366/? E/EGL_adreno: tid 1366: eglCreateSyncKHR(1987): error 0x3004 (EGL_BAD_ATTRIBUTE)
04-17 22:58:09.087 1542-2272/system_process E/EGL_adreno: tid 2272: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH)
04-17 22:58:09.653 1916-2071/com.android.launcher3 E/EGL_adreno: tid 2071: eglSurfaceAttrib(1266): error 0x3009 (EGL_BAD_MATCH)

查看全部
qq_41896467
Chrisddddddd
2019/04/17 23:00
  • android-studio
  • xml
  • android
  • 点赞
  • 收藏
  • 回答
    私信

1个回复