该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
05-15 20:12:17.333 32240-32240/com.example.coolweather E/Process: android_os_Process_getProcessNameByPid pid is 32240
android_os_Process_getProcessNameByPid value is ple.coolweather
05-15 20:12:17.783 32240-32240/com.example.coolweather E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.coolweather, PID: 32240
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.coolweather/com.example.coolweather.MainActivity}: org.litepal.exceptions.InvalidAttributesException: dbname is empty or not defined in litepal.xml file, or your litepal.xml file is missing.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2496)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2568)
at android.app.ActivityThread.access$1000(ActivityThread.java:164)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1453)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:159)
at android.app.ActivityThread.main(ActivityThread.java:5532)
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:964)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)
Caused by: org.litepal.exceptions.InvalidAttributesException: dbname is empty or not defined in litepal.xml file, or your litepal.xml file is missing.
at org.litepal.parser.LitePalAttr.checkSelfValid(LitePalAttr.java:197)
at org.litepal.tablemanager.Connector.buildConnection(Connector.java:105)
at org.litepal.tablemanager.Connector.getWritableDatabase(Connector.java:63)
at org.litepal.tablemanager.Connector.getDatabase(Connector.java:87)
at org.litepal.crud.DataSupport.findAll(DataSupport.java:1027)
at org.litepal.crud.DataSupport.findAll(DataSupport.java:994)
at com.example.coolweather.ChooseAreaFragment.queryProvinces(ChooseAreaFragment.java:117)
at com.example.coolweather.ChooseAreaFragment.onActivityCreated(ChooseAreaFragment.java:109)
at android.support.v4.app.Fragment.performActivityCreated(Fragment.java:2355)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1451)
at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1759)
at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1827)
at android.support.v4.app.FragmentManagerImpl.dispatchStateChange(FragmentManager.java:3244)
at android.support.v4.app.FragmentManagerImpl.dispatchActivityCreated(FragmentManager.java:3200)
at android.support.v4.app.FragmentController.dispatchActivityCreated(FragmentController.java:195)
at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:597)
at android.support.v7.app.AppCompatActivity.onStart(AppCompatActivity.java:177)
at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1236)
at android.app.Activity.performStart(Activity.java:6123)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2459)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2568)
at android.app.ActivityThread.access$1000(ActivityThread.java:164)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1453)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:159)
at android.app.ActivityThread.main(ActivityThread.java:5532)
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:964)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:759)