Skip to content

Instantly share code, notes, and snippets.

@kovek
Created Sep 14, 2013
Embed
What would you like to do?
12-12 01:17:20.779: E/AndroidRuntime(2916): FATAL EXCEPTION: main
12-12 01:17:20.779: E/AndroidRuntime(2916): java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.road/com.example.road.MainActivity}: android.view.InflateException: Binary XML file line #15: Error inflating class android.widget.ListView
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1956)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.app.ActivityThread.access$600(ActivityThread.java:123)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.os.Handler.dispatchMessage(Handler.java:99)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.os.Looper.loop(Looper.java:137)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.app.ActivityThread.main(ActivityThread.java:4424)
12-12 01:17:20.779: E/AndroidRuntime(2916): at java.lang.reflect.Method.invokeNative(Native Method)
12-12 01:17:20.779: E/AndroidRuntime(2916): at java.lang.reflect.Method.invoke(Method.java:511)
12-12 01:17:20.779: E/AndroidRuntime(2916): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)
12-12 01:17:20.779: E/AndroidRuntime(2916): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)
12-12 01:17:20.779: E/AndroidRuntime(2916): at dalvik.system.NativeStart.main(Native Method)
12-12 01:17:20.779: E/AndroidRuntime(2916): Caused by: android.view.InflateException: Binary XML file line #15: Error inflating class android.widget.ListView
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.view.LayoutInflater.createView(LayoutInflater.java:606)
12-12 01:17:20.779: E/AndroidRuntime(2916): at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.view.LayoutInflater.onCreateView(LayoutInflater.java:653)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:678)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.view.LayoutInflater.rInflate(LayoutInflater.java:739)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.view.LayoutInflater.inflate(LayoutInflater.java:489)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
12-12 01:17:20.779: E/AndroidRuntime(2916): at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:251)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.app.Activity.setContentView(Activity.java:1835)
12-12 01:17:20.779: E/AndroidRuntime(2916): at com.example.road.MainActivity.onCreate(MainActivity.java:27)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.app.Activity.performCreate(Activity.java:4465)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
12-12 01:17:20.779: E/AndroidRuntime(2916): ... 11 more
12-12 01:17:20.779: E/AndroidRuntime(2916): Caused by: java.lang.reflect.InvocationTargetException
12-12 01:17:20.779: E/AndroidRuntime(2916): at java.lang.reflect.Constructor.constructNative(Native Method)
12-12 01:17:20.779: E/AndroidRuntime(2916): at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.view.LayoutInflater.createView(LayoutInflater.java:586)
12-12 01:17:20.779: E/AndroidRuntime(2916): ... 24 more
12-12 01:17:20.779: E/AndroidRuntime(2916): Caused by: java.lang.RuntimeException: Don't call setOnClickListener for an AdapterView. You probably want setOnItemClickListener instead
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.widget.AdapterView.setOnClickListener(AdapterView.java:761)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.view.View.<init>(View.java:3018)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.view.ViewGroup.<init>(ViewGroup.java:385)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.widget.AdapterView.<init>(AdapterView.java:234)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.widget.AbsListView.<init>(AbsListView.java:734)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.widget.ListView.<init>(ListView.java:141)
12-12 01:17:20.779: E/AndroidRuntime(2916): at android.widget.ListView.<init>(ListView.java:137)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment