Estou na aula 3: Utilizando Menus porem quando executo o código, a seguinte mensagem é apresentada na tela do smartphone: O aplicativo parou.
erro exibido no log:
09-08 11:33:29.783 8329-8329/br.com.alura.agenda I/Process: Sending signal. PID: 8329 SIG: 9
09-08 11:33:43.451 11471-11471/br.com.alura.agenda W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
09-08 11:33:43.568 11471-11471/br.com.alura.agenda D/AndroidRuntime: Shutting down VM
--------- beginning of crash
09-08 11:33:43.572 11471-11471/br.com.alura.agenda E/AndroidRuntime: FATAL EXCEPTION: main
Process: br.com.alura.agenda, PID: 11471
java.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.alura.agenda/br.com.alura.agenda.ListaAlunosActivity}: android.view.InflateException: Binary XML file line #7: Error inflating class Listview
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2339)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2413)
at android.app.ActivityThread.access$800(ActivityThread.java:155)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5343)
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: android.view.InflateException: Binary XML file line #7: Error inflating class Listview
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:757)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:280)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
at br.com.alura.agenda.ListaAlunosActivity.onCreate(ListaAlunosActivity.java:15)
at android.app.Activity.performCreate(Activity.java:6010)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1129)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2413)
at android.app.ActivityThread.access$800(ActivityThread.java:155)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5343)
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.ClassNotFoundException: Didn't find class "android.view.Listview" on path: DexPathList[[zip file "/data/app/br.com.alura.agenda-1/base.apk"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at android.view.LayoutInflater.createView(LayoutInflater.java:571)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:665)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:65)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:682)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:741)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at android.view.LayoutInflater.inflate(LayoutInflater.java:365)
at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:280)
at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
at br.com.alura.agenda.ListaAlunosActivity.onCreate(ListaAlunosActivity.java:15)
at android.app.Activity.performCreate(Activity.java:6010)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1129)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2292)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2413)
at android.app.ActivityThread.access$800(ActivityThread.java:155)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1317)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5343)
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)
Suppressed: java.lang.ClassNotFoundException: Didn't find class "android.view.Listview" on path: DexPathList[[dex file "/data/data/br.com.alura.agenda/files/instant-run/dex/slice-support-annotations-23.4.0_ae74b21a09621537acf0829627f7bb6ddd0534f3-classes.dex", dex file "/data/data/br.com.alura.agenda/files/instant-run/dex/slice-slice_9-classes.dex", dex file "/data/data/br.com.alura.agenda/files/instant-run/dex/slice-slice_8-classes.dex", dex file "/data/data/br.com.alura.agenda/files/instant-run/dex/slice-slice_7-classes.dex", dex file "/data/data/br.com.alura.agenda/files/instant-run/dex/slice-slice_6-classes.dex", dex file "/data/data/br.com.alura.agenda/files/instant-run/dex/slice-slice_5-classes.dex", dex file "/data/data/br.com.alura.agenda/files/instant-run/dex/slice-slice_4-classes.dex", dex file "/data/data/br.com.alura.agenda/files/instant-run/dex/slice-slice_3-classes.dex", dex file "/data/data/br.com.alura.agenda/files/instant-run/dex/slice-slice_2-classes.dex", dex file "/data/data/br.com.alura.agenda/files/instant-run/dex/slice-slice_1-classes.dex", dex file "/data/data/br.com.alura.agenda/files/instant-run/dex/slice-slice_0-classes.dex", dex file "/data/data/br.com.alura.agenda/files/instant-run/dex/slice-internal_impl-23.4.0_7e78a09bebefa74dcee77da6b0e651495948fcb1-classes.dex", dex file "/dat
Segue o código activity_lista_alunos.xml:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<Listview
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/lista_alunos"/>
<Button android:id="@+id/novo_aluno"
android:layout_width="56dp"
android:layout_height="56dp"
android:text="+"
android:textColor="#ffffff"
android:textSize="40sp"
android:elevation="6dp"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_marginBottom="16dp"
android:layout_marginRight="16dp"
android:background="@drawable/fundo1"
android:stateListAnimator="@null"/>
</RelativeLayout>
Obrigado!