Bom dia, estou criando um app para teste de layouts diferentes (retrato e paisagem), porém ao executar estou tendo problemas com erro em XML.
12-28 11:21:46.013 4543-4543/? I/art: Not late-enabling -Xcheck:jni (already on)
12-28 11:21:46.384 4543-4543/risc.ind.br.layout D/AndroidRuntime: Shutting down VM
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: FATAL EXCEPTION: main
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: Process: risc.ind.br.layout, PID: 4543
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{risc.ind.br.layout/risc.ind.br.layout.MainActivity}: android.view.InflateException: Binary XML file line #9: Error inflating class fragment
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2325)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.ActivityThread.access$800(ActivityThread.java:151)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.os.Looper.loop(Looper.java:135)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5257)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class fragment
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:763)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:378)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.Activity.setContentView(Activity.java:2145)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at risc.ind.br.layout.MainActivity.onCreate(MainActivity.java:13)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:5990)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.ActivityThread.access$800(ActivityThread.java:151)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.os.Looper.loop(Looper.java:135)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5257)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method ‘boolean java.lang.String.equals(java.lang.Object)’ on a null object reference
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at risc.ind.br.layout.Regioes.createFromXML(Regioes.java:41)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at risc.ind.br.layout.Regioes.getRegioes(Regioes.java:21)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at risc.ind.br.layout.RegioesListFragment.onCreate(RegioesListFragment.java:33)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.Fragment.performCreate(Fragment.java:2031)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:863)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1045)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.FragmentManagerImpl.addFragment(FragmentManager.java:1147)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.FragmentManagerImpl.onCreateView(FragmentManager.java:2116)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.Activity.onCreateView(Activity.java:5328)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:733)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:378)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.Activity.setContentView(Activity.java:2145)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at risc.ind.br.layout.MainActivity.onCreate(MainActivity.java:13)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:5990)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2390)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.ActivityThread.access$800(ActivityThread.java:151)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.os.Looper.loop(Looper.java:135)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5257)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:372)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
12-28 11:21:46.385 4543-4543/risc.ind.br.layout E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
12-28 11:23:34.653 4543-4543/? I/Process: Sending signal. PID: 4543 SIG: 9