Wouter Schurgers
Lurker
Hey,
Can anyone help me?
my app keeps stopping.
thank you in advance !!!
Greetings Wouter
java:
logcat:
Can anyone help me?
my app keeps stopping.
thank you in advance !!!
Greetings Wouter
java:
Code:
package com.example.dialog1;
import android.os.Bundle;
import android.view.View;
import android.view.Menu;
import android.view.MenuItem;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import com.google.android.material.floatingactionbutton.FloatingActionButton;
import com.google.android.material.snackbar.Snackbar;
public class DialogActivity extends AppCompatActivity {
[USER=1021285]@override[/USER]
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_dialog);
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
setSupportActionBar(toolbar);
FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
fab.setOnClickListener(new View.OnClickListener() {
[USER=1021285]@override[/USER]
public void onClick(View view) {
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show();
}
});
}
[USER=1021285]@override[/USER]
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_dialog, menu);
return true;
}
[USER=1021285]@override[/USER]
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
}
logcat:
Code:
2019-12-16 21:58:22.563 6161-6161/? I/zygote: Not late-enabling -Xcheck:jni (already on)
2019-12-16 21:58:22.578 6161-6161/? W/zygote: Unexpected CPU variant for X86 using defaults: x86
2019-12-16 21:58:22.597 6161-6168/? E/zygote: Failed sending reply to debugger: Broken pipe
2019-12-16 21:58:22.598 6161-6168/? I/zygote: Debugger is no longer active
2019-12-16 21:58:22.637 6161-6161/? I/zygote: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$OnUnhandledKeyEventListenerWrapper>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener;
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at boolean androidx.core.view.ViewCompat.hasOnClickListeners(android.view.View) (ViewCompat.java:3061)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatViewInflater.checkOnClickListener(android.view.View, android.util.AttributeSet) (AppCompatViewInflater.java:294)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatViewInflater.createView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean, boolean, boolean, boolean) (AppCompatViewInflater.java:169)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatDelegateImpl.createView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (AppCompatDelegateImpl.java:1266)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (AppCompatDelegateImpl.java:1316)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:772)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (LayoutInflater.java:730)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at void android.view.LayoutInflater.rInflate(org.xmlpull.v1.XmlPullParser, android.view.View, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:863)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at void android.view.LayoutInflater.rInflateChildren(org.xmlpull.v1.XmlPullParser, android.view.View, android.util.AttributeSet, boolean) (LayoutInflater.java:824)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(org.xmlpull.v1.XmlPullParser, android.view.ViewGroup, boolean) (LayoutInflater.java:515)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup, boolean) (LayoutInflater.java:423)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup) (LayoutInflater.java:374)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:584)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:518)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:466)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:140)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at void com.example.dialog1.DialogActivity.onCreate(android.os.Bundle) (DialogActivity.java:17)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6975)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1213)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2770)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2892)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at void android.app.ActivityThread.-wrap11(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1593)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:105)
2019-12-16 21:58:22.637 6161-6161/? I/zygote: at void android.os.Looper.loop() (Looper.java:164)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6541)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList[[zip file "/data/app/com.example.dialog1-ZUTF9zJRZF04EKoD79fg9A==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.dialog1-ZUTF9zJRZF04EKoD79fg9A==/lib/x86, /system/lib, /vendor/lib]]
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:93)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at boolean androidx.core.view.ViewCompat.hasOnClickListeners(android.view.View) (ViewCompat.java:3061)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatViewInflater.checkOnClickListener(android.view.View, android.util.AttributeSet) (AppCompatViewInflater.java:294)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatViewInflater.createView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean, boolean, boolean, boolean) (AppCompatViewInflater.java:169)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatDelegateImpl.createView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (AppCompatDelegateImpl.java:1266)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (AppCompatDelegateImpl.java:1316)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:772)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (LayoutInflater.java:730)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void android.view.LayoutInflater.rInflate(org.xmlpull.v1.XmlPullParser, android.view.View, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:863)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void android.view.LayoutInflater.rInflateChildren(org.xmlpull.v1.XmlPullParser, android.view.View, android.util.AttributeSet, boolean) (LayoutInflater.java:824)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(org.xmlpull.v1.XmlPullParser, android.view.ViewGroup, boolean) (LayoutInflater.java:515)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup, boolean) (LayoutInflater.java:423)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup) (LayoutInflater.java:374)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:584)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:518)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:466)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:140)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void com.example.dialog1.DialogActivity.onCreate(android.os.Bundle) (DialogActivity.java:17)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6975)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1213)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2770)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2892)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void android.app.ActivityThread.-wrap11(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1593)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:105)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void android.os.Looper.loop() (Looper.java:164)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6541)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240)
2019-12-16 21:58:22.638 6161-6161/? I/zygote: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$OnUnhandledKeyEventListenerWrapper>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener;
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at boolean androidx.core.view.ViewCompat.hasOnClickListeners(android.view.View) (ViewCompat.java:3061)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatViewInflater.checkOnClickListener(android.view.View, android.util.AttributeSet) (AppCompatViewInflater.java:294)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatViewInflater.createView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean, boolean, boolean, boolean) (AppCompatViewInflater.java:169)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatDelegateImpl.createView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (AppCompatDelegateImpl.java:1266)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (AppCompatDelegateImpl.java:1316)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:772)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (LayoutInflater.java:730)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at void android.view.LayoutInflater.rInflate(org.xmlpull.v1.XmlPullParser, android.view.View, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:863)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at void android.view.LayoutInflater.rInflateChildren(org.xmlpull.v1.XmlPullParser, android.view.View, android.util.AttributeSet, boolean) (LayoutInflater.java:824)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(org.xmlpull.v1.XmlPullParser, android.view.ViewGroup, boolean) (LayoutInflater.java:515)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup, boolean) (LayoutInflater.java:423)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup) (LayoutInflater.java:374)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:584)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:518)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:466)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:140)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at void com.example.dialog1.DialogActivity.onCreate(android.os.Bundle) (DialogActivity.java:17)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6975)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1213)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2770)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2892)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at void android.app.ActivityThread.-wrap11(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1593)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:105)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at void android.os.Looper.loop() (Looper.java:164)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6541)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240)
2019-12-16 21:58:22.639 6161-6161/? I/zygote: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList[[zip file "/data/app/com.example.dialog1-ZUTF9zJRZF04EKoD79fg9A==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.dialog1-ZUTF9zJRZF04EKoD79fg9A==/lib/x86, /system/lib, /vendor/lib]]
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:93)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at boolean androidx.core.view.ViewCompat.hasOnClickListeners(android.view.View) (ViewCompat.java:3061)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatViewInflater.checkOnClickListener(android.view.View, android.util.AttributeSet) (AppCompatViewInflater.java:294)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatViewInflater.createView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean, boolean, boolean, boolean) (AppCompatViewInflater.java:169)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatDelegateImpl.createView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (AppCompatDelegateImpl.java:1266)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (AppCompatDelegateImpl.java:1316)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:772)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (LayoutInflater.java:730)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void android.view.LayoutInflater.rInflate(org.xmlpull.v1.XmlPullParser, android.view.View, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:863)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void android.view.LayoutInflater.rInflateChildren(org.xmlpull.v1.XmlPullParser, android.view.View, android.util.AttributeSet, boolean) (LayoutInflater.java:824)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(org.xmlpull.v1.XmlPullParser, android.view.ViewGroup, boolean) (LayoutInflater.java:515)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup, boolean) (LayoutInflater.java:423)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup) (LayoutInflater.java:374)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:584)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:518)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:466)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:140)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void com.example.dialog1.DialogActivity.onCreate(android.os.Bundle) (DialogActivity.java:17)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6975)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1213)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2770)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2892)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void android.app.ActivityThread.-wrap11(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1593)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:105)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void android.os.Looper.loop() (Looper.java:164)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6541)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: Rejecting re-init on previously-failed class java.lang.Class<androidx.core.view.ViewCompat$OnUnhandledKeyEventListenerWrapper>: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener;
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at boolean androidx.core.view.ViewCompat.hasOnClickListeners(android.view.View) (ViewCompat.java:3061)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatViewInflater.checkOnClickListener(android.view.View, android.util.AttributeSet) (AppCompatViewInflater.java:294)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatViewInflater.createView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean, boolean, boolean, boolean) (AppCompatViewInflater.java:169)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatDelegateImpl.createView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (AppCompatDelegateImpl.java:1266)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (AppCompatDelegateImpl.java:1316)
2019-12-16 21:58:22.640 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:772)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (LayoutInflater.java:730)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.view.LayoutInflater.rInflate(org.xmlpull.v1.XmlPullParser, android.view.View, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:863)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.view.LayoutInflater.rInflateChildren(org.xmlpull.v1.XmlPullParser, android.view.View, android.util.AttributeSet, boolean) (LayoutInflater.java:824)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(org.xmlpull.v1.XmlPullParser, android.view.ViewGroup, boolean) (LayoutInflater.java:515)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup, boolean) (LayoutInflater.java:423)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup) (LayoutInflater.java:374)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:584)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:518)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:466)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:140)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void com.example.dialog1.DialogActivity.onCreate(android.os.Bundle) (DialogActivity.java:17)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6975)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1213)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2770)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2892)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.app.ActivityThread.-wrap11(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1593)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:105)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.os.Looper.loop() (Looper.java:164)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6541)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList[[zip file "/data/app/com.example.dialog1-ZUTF9zJRZF04EKoD79fg9A==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.dialog1-ZUTF9zJRZF04EKoD79fg9A==/lib/x86, /system/lib, /vendor/lib]]
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:93)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:379)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at boolean androidx.core.view.ViewCompat.hasOnClickListeners(android.view.View) (ViewCompat.java:3061)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatViewInflater.checkOnClickListener(android.view.View, android.util.AttributeSet) (AppCompatViewInflater.java:294)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatViewInflater.createView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean, boolean, boolean, boolean) (AppCompatViewInflater.java:169)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatDelegateImpl.createView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (AppCompatDelegateImpl.java:1266)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at android.view.View androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (AppCompatDelegateImpl.java:1316)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:772)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (LayoutInflater.java:730)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.view.LayoutInflater.rInflate(org.xmlpull.v1.XmlPullParser, android.view.View, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:863)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.view.LayoutInflater.rInflateChildren(org.xmlpull.v1.XmlPullParser, android.view.View, android.util.AttributeSet, boolean) (LayoutInflater.java:824)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(org.xmlpull.v1.XmlPullParser, android.view.ViewGroup, boolean) (LayoutInflater.java:515)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup, boolean) (LayoutInflater.java:423)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup) (LayoutInflater.java:374)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at android.view.ViewGroup androidx.appcompat.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:584)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:518)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:466)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void androidx.appcompat.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:140)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void com.example.dialog1.DialogActivity.onCreate(android.os.Bundle) (DialogActivity.java:17)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6975)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1213)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2770)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2892)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.app.ActivityThread.-wrap11(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1593)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:105)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.os.Looper.loop() (Looper.java:164)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6541)
2019-12-16 21:58:22.641 6161-6161/? I/zygote: at java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[]) (Method.java:-2)
2019-12-16 21:58:22.642 6161-6161/? I/zygote: at void com.android.internal.os.Zygote$MethodAndArgsCaller.run() (Zygote.java:240)
2019-12-16 21:58:22.642 6161-6161/? I/zygote: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:767)
2019-12-16 21:58:22.653 6161-6161/? D/AndroidRuntime: Shutting down VM
2019-12-16 21:58:22.658 6161-6161/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.dialog1, PID: 6161
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.dialog1/com.example.dialog1.DialogActivity}: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class android.support.design.widget.CoordinatorLayout
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2817)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)
Caused by: android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class android.support.design.widget.CoordinatorLayout
Caused by: android.view.InflateException: Binary XML file line #2: Error inflating class android.support.design.widget.CoordinatorLayout
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.design.widget.CoordinatorLayout" on path: DexPathList[[zip file "/data/app/com.example.dialog1-ZUTF9zJRZF04EKoD79fg9A==/base.apk"],nativeLibraryDirectories=[/data/app/com.example.dialog1-ZUTF9zJRZF04EKoD79fg9A==/lib/x86, /system/lib, /vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at android.view.LayoutInflater.createView(LayoutInflater.java:606)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:790)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:730)
at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:469)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:140)
at com.example.dialog1.DialogActivity.onCreate(DialogActivity.java:17)
at android.app.Activity.performCreate(Activity.java:6975)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1213)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2770)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2892)
at android.app.ActivityThread.-wrap11(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1593)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6541)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:767)