2019-03-18 17:47:35.910 8798-8798/? E/Zygote: v2 2019-03-18 17:47:35.910 8798-8798/? I/libpersona: KNOX_SDCARD checking this for 10248 2019-03-18 17:47:35.910 8798-8798/? I/libpersona: KNOX_SDCARD not a persona 2019-03-18 17:47:35.912 8798-8798/? E/Zygote: accessInfo : 0 2019-03-18 17:47:35.914 8798-8798/? W/SELinux: SELinux selinux_android_compute_policy_index : Policy Index[2], Con:u:r:zygote:s0 RAM:SEPF_SECMOBILE_7.0_0005, [-1 -1 -1 -1 0 1] 2019-03-18 17:47:35.916 8798-8798/? I/SELinux: SELinux: seapp_context_lookup: seinfo=untrusted, level=s0:c512,c768, pkgname=com.example.ftpuploaddemo3 2019-03-18 17:47:35.926 8798-8798/? I/art: Late-enabling -Xcheck:jni 2019-03-18 17:47:35.973 8798-8798/? D/TimaKeyStoreProvider: TimaSignature is unavailable 2019-03-18 17:47:35.975 8798-8798/? D/ActivityThread: Added TimaKeyStore provider 2019-03-18 17:47:36.155 8798-8798/com.example.ftpuploaddemo3 W/System: ClassLoader referenced unknown path: /data/app/com.example.ftpuploaddemo3-1/lib/arm64 2019-03-18 17:47:36.180 8798-8798/com.example.ftpuploaddemo3 D/ContextRelationMgrBrdg: loadKlass() : caller=com.samsung.android.bridge.multiscreen.common.ContextRelationManagerBridge.:28 android.app.LoadedApk.makeApplication:840 2019-03-18 17:47:36.193 8798-8798/com.example.ftpuploaddemo3 I/InstantRun: starting instant run server: is main process 2019-03-18 17:47:36.309 8798-8798/com.example.ftpuploaddemo3 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 2019-03-18 17:47:36.403 8798-8798/? I/art: Rejecting re-init on previously-failed class java.lang.Class: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/view/View$OnUnhandledKeyEventListener; 2019-03-18 17:47:36.403 8798-8798/? I/art: at void android.support.v4.view.ViewCompat.setBackground(android.view.View, android.graphics.drawable.Drawable) (ViewCompat.java:2341) 2019-03-18 17:47:36.403 8798-8798/? I/art: at void android.support.v7.widget.ActionBarContainer.(android.content.Context, android.util.AttributeSet) (ActionBarContainer.java:62) 2019-03-18 17:47:36.403 8798-8798/? I/art: at java.lang.Object java.lang.reflect.Constructor.newInstance0!(java.lang.Object[]) (Constructor.java:-2) 2019-03-18 17:47:36.403 8798-8798/? I/art: at java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[]) (Constructor.java:430) 2019-03-18 17:47:36.403 8798-8798/? I/art: at android.view.View android.view.LayoutInflater.createView(java.lang.String, java.lang.String, android.util.AttributeSet) (LayoutInflater.java:652) 2019-03-18 17:47:36.403 8798-8798/? I/art: at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:794) 2019-03-18 17:47:36.403 8798-8798/? I/art: at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (LayoutInflater.java:734) 2019-03-18 17:47:36.403 8798-8798/? I/art: at void android.view.LayoutInflater.rInflate(org.xmlpull.v1.XmlPullParser, android.view.View, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:865) 2019-03-18 17:47:36.403 8798-8798/? I/art: at void android.view.LayoutInflater.rInflateChildren(org.xmlpull.v1.XmlPullParser, android.view.View, android.util.AttributeSet, boolean) (LayoutInflater.java:828) 2019-03-18 17:47:36.403 8798-8798/? I/art: at android.view.View android.view.LayoutInflater.inflate(org.xmlpull.v1.XmlPullParser, android.view.ViewGroup, boolean) (LayoutInflater.java:525) 2019-03-18 17:47:36.403 8798-8798/? I/art: at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup, boolean) (LayoutInflater.java:427) 2019-03-18 17:47:36.403 8798-8798/? I/art: at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup) (LayoutInflater.java:378) 2019-03-18 17:47:36.403 8798-8798/? I/art: at android.view.ViewGroup android.support.v7.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:607) 2019-03-18 17:47:36.403 8798-8798/? I/art: at void android.support.v7.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:518) 2019-03-18 17:47:36.403 8798-8798/? I/art: at void android.support.v7.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:466) 2019-03-18 17:47:36.403 8798-8798/? I/art: at void android.support.v7.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:140) 2019-03-18 17:47:36.403 8798-8798/? I/art: at void com.example.ftpuploaddemo3.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:19) 2019-03-18 17:47:36.403 8798-8798/? I/art: at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6912) 2019-03-18 17:47:36.403 8798-8798/? I/art: at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1126) 2019-03-18 17:47:36.404 8798-8798/? I/art: at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2877) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2985) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.app.ActivityThread.-wrap14(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1635) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.os.Looper.loop() (Looper.java:154) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6692) 2019-03-18 17:47:36.404 8798-8798/? I/art: at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1468) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1358) 2019-03-18 17:47:36.404 8798-8798/? I/art: Caused by: java.lang.ClassNotFoundException: Didn't find class "android.view.View$OnUnhandledKeyEventListener" on path: DexPathList[[zip file "/data/app/com.example.ftpuploaddemo3-1/base.apk", zip file "/data/app/com.example.ftpuploaddemo3-1/split_lib_dependencies_apk.apk", zip file "/data/app/com.example.ftpuploaddemo3-1/split_lib_slice_0_apk.apk", zip file "/data/app/com.example.ftpuploaddemo3-1/split_lib_slice_1_apk.apk", zip file "/data/app/com.example.ftpuploaddemo3-1/split_lib_slice_2_apk.apk", zip file "/data/app/com.example.ftpuploaddemo3-1/split_lib_slice_3_apk.apk", zip file "/data/app/com.example.ftpuploaddemo3-1/split_lib_slice_4_apk.apk", zip file "/data/app/com.example.ftpuploaddemo3-1/split_lib_slice_5_apk.apk", zip file "/data/app/com.example.ftpuploaddemo3-1/split_lib_slice_6_apk.apk", zip file "/data/app/com.example.ftpuploaddemo3-1/split_lib_slice_7_apk.apk", zip file "/data/app/com.example.ftpuploaddemo3-1/split_lib_slice_8_apk.apk", zip file "/data/app/com.example.ftpuploaddemo3-1/split_ 2019-03-18 17:47:36.404 8798-8798/? I/art: at java.lang.Class dalvik.system.BaseDexClassLoader.findClass(java.lang.String) (BaseDexClassLoader.java:56) 2019-03-18 17:47:36.404 8798-8798/? I/art: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String, boolean) (ClassLoader.java:380) 2019-03-18 17:47:36.404 8798-8798/? I/art: at java.lang.Class java.lang.ClassLoader.loadClass(java.lang.String) (ClassLoader.java:312) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.support.v4.view.ViewCompat.setBackground(android.view.View, android.graphics.drawable.Drawable) (ViewCompat.java:2341) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.support.v7.widget.ActionBarContainer.(android.content.Context, android.util.AttributeSet) (ActionBarContainer.java:62) 2019-03-18 17:47:36.404 8798-8798/? I/art: at java.lang.Object java.lang.reflect.Constructor.newInstance0!(java.lang.Object[]) (Constructor.java:-2) 2019-03-18 17:47:36.404 8798-8798/? I/art: at java.lang.Object java.lang.reflect.Constructor.newInstance(java.lang.Object[]) (Constructor.java:430) 2019-03-18 17:47:36.404 8798-8798/? I/art: at android.view.View android.view.LayoutInflater.createView(java.lang.String, java.lang.String, android.util.AttributeSet) (LayoutInflater.java:652) 2019-03-18 17:47:36.404 8798-8798/? I/art: at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:794) 2019-03-18 17:47:36.404 8798-8798/? I/art: at android.view.View android.view.LayoutInflater.createViewFromTag(android.view.View, java.lang.String, android.content.Context, android.util.AttributeSet) (LayoutInflater.java:734) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.view.LayoutInflater.rInflate(org.xmlpull.v1.XmlPullParser, android.view.View, android.content.Context, android.util.AttributeSet, boolean) (LayoutInflater.java:865) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.view.LayoutInflater.rInflateChildren(org.xmlpull.v1.XmlPullParser, android.view.View, android.util.AttributeSet, boolean) (LayoutInflater.java:828) 2019-03-18 17:47:36.404 8798-8798/? I/art: at android.view.View android.view.LayoutInflater.inflate(org.xmlpull.v1.XmlPullParser, android.view.ViewGroup, boolean) (LayoutInflater.java:525) 2019-03-18 17:47:36.404 8798-8798/? I/art: at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup, boolean) (LayoutInflater.java:427) 2019-03-18 17:47:36.404 8798-8798/? I/art: at android.view.View android.view.LayoutInflater.inflate(int, android.view.ViewGroup) (LayoutInflater.java:378) 2019-03-18 17:47:36.404 8798-8798/? I/art: at android.view.ViewGroup android.support.v7.app.AppCompatDelegateImpl.createSubDecor() (AppCompatDelegateImpl.java:607) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.support.v7.app.AppCompatDelegateImpl.ensureSubDecor() (AppCompatDelegateImpl.java:518) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.support.v7.app.AppCompatDelegateImpl.setContentView(int) (AppCompatDelegateImpl.java:466) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.support.v7.app.AppCompatActivity.setContentView(int) (AppCompatActivity.java:140) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void com.example.ftpuploaddemo3.MainActivity.onCreate(android.os.Bundle) (MainActivity.java:19) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.app.Activity.performCreate(android.os.Bundle) (Activity.java:6912) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.app.Instrumentation.callActivityOnCreate(android.app.Activity, android.os.Bundle) (Instrumentation.java:1126) 2019-03-18 17:47:36.404 8798-8798/? I/art: at android.app.Activity android.app.ActivityThread.performLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent) (ActivityThread.java:2877) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.app.ActivityThread.handleLaunchActivity(android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:2985) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.app.ActivityThread.-wrap14(android.app.ActivityThread, android.app.ActivityThread$ActivityClientRecord, android.content.Intent, java.lang.String) (ActivityThread.java:-1) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.app.ActivityThread$H.handleMessage(android.os.Message) (ActivityThread.java:1635) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.os.Handler.dispatchMessage(android.os.Message) (Handler.java:102) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.os.Looper.loop() (Looper.java:154) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void android.app.ActivityThread.main(java.lang.String[]) (ActivityThread.java:6692) 2019-03-18 17:47:36.404 8798-8798/? I/art: at java.lang.Object java.lang.reflect.Method.invoke!(java.lang.Object, java.lang.Object[]) (Method.java:-2) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run() (ZygoteInit.java:1468) 2019-03-18 17:47:36.404 8798-8798/? I/art: at void com.android.internal.os.ZygoteInit.main(java.lang.String[]) (ZygoteInit.java:1358) 2019-03-18 17:47:36.471 8798-8798/? D/TextView: setTypeface with style : 0 2019-03-18 17:47:36.472 8798-8798/? D/TextView: setTypeface with style : 0 2019-03-18 17:47:36.520 8798-8798/? D/TextView: setTypeface with style : 0 2019-03-18 17:47:36.539 8798-8798/? D/AndroidRuntime: Shutting down VM 2019-03-18 17:47:36.541 8798-8798/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.example.ftpuploaddemo3, PID: 8798 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.ftpuploaddemo3/com.example.ftpuploaddemo3.MainActivity}: android.os.NetworkOnMainThreadException at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2924) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2985) at android.app.ActivityThread.-wrap14(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1635) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6692) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358) Caused by: android.os.NetworkOnMainThreadException at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1303) at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:86) at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:74) at java.net.InetAddress.getByName(InetAddress.java:708) at java.net.InetSocketAddress.(InetSocketAddress.java:232) at java.net.Socket.(Socket.java:210) at org.apache.commons.net.DefaultSocketFactory.createSocket(DefaultSocketFactory.java:53) at org.apache.commons.net.SocketClient.connect(SocketClient.java:162) at com.example.ftpuploaddemo3.MainActivity.SendFilePerFTP(MainActivity.java:39) at com.example.ftpuploaddemo3.MainActivity.onCreate(MainActivity.java:21) at android.app.Activity.performCreate(Activity.java:6912) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2877) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2985)  at android.app.ActivityThread.-wrap14(ActivityThread.java)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1635)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:154)  at android.app.ActivityThread.main(ActivityThread.java:6692)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)  2019-03-18 17:47:36.585 8798-8798/? I/Process: Sending signal. PID: 8798 SIG: 9