10-30 12:12:17.610 26881-26881/? I/art: Late-enabling -Xcheck:jni
10-30 12:12:17.696 26881-26881/com.kidsapp W/System: ClassLoader referenced unknown path: /data/app/com.kidsapp-2/lib/arm
10-30 12:12:17.700 26881-26881/com.kidsapp D/ActivityThread: BIND_APPLICATION handled : 0 / AppBindData{appInfo=ApplicationInfo{32a37bc com.kidsapp}}
10-30 12:12:17.701 26881-26881/com.kidsapp V/ActivityThread: Handling launch of ActivityRecord{d5d3345 token=android.os.BinderProxy@2ac0a9a {com.kidsapp/com.kidsapp.Main2Activity}} startsNotResumed=false
10-30 12:12:17.717 26881-26881/com.kidsapp V/ActivityThread: ActivityRecord{d5d3345 token=android.os.BinderProxy@2ac0a9a {com.kidsapp/com.kidsapp.Main2Activity}}: app=android.app.Application@44113a8, appName=com.kidsapp, pkg=com.kidsapp, comp={com.kidsapp/com.kidsapp.Main2Activity}, dir=/data/app/com.kidsapp-2/base.apk
10-30 12:12:17.754 26881-26881/com.kidsapp 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
10-30 12:12:17.772 26881-26903/com.kidsapp I/System: FinalizerDaemon: finalize objects = 1
10-30 12:12:17.786 26881-26881/com.kidsapp E/MultiWindowProxy: getServiceInstance failed!
10-30 12:12:17.878 26881-26881/? D/AndroidRuntime: Shutting down VM
10-30 12:12:17.881 26881-26881/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.kidsapp, PID: 26881
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kidsapp/com.kidsapp.Main2Activity}: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class com.github.pedrovgs.DraggableView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2572)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1488)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5728)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
Caused by: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class com.github.pedrovgs.DraggableView
at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
at android.view.View.inflate(View.java:20171)
at com.github.pedrovgs.DraggablePanel.initializeView(DraggablePanel.java:263)
at com.kidsapp.Main2Activity.onCreate(Main2Activity.java:27)
at android.app.Activity.performCreate(Activity.java:6301)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2519)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1488)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5728)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
Caused by: android.view.InflateException: Binary XML file line #0: Error inflating class com.github.pedrovgs.DraggableView
at android.view.LayoutInflater.createView(LayoutInflater.java:645)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
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 android.view.View.inflate(View.java:20171)
at com.github.pedrovgs.DraggablePanel.initializeView(DraggablePanel.java:263)
at com.kidsapp.Main2Activity.onCreate(Main2Activity.java:27)
at android.app.Activity.performCreate(Activity.java:6301)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2519)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1488)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5728)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:619)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
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 android.view.View.inflate(View.java:20171)
at com.github.pedrovgs.DraggablePanel.initializeView(DraggablePanel.java:263)
at com.kidsapp.Main2Activity.onCreate(Main2Activity.java:27)
at android.app.Activity.performCreate(Activity.java:6301)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2519)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1488)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5728)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12
at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:666)
at com.github.pedrovgs.DraggableView.initializeAttributes(DraggableView.java:680)
at com.github.pedrovgs.DraggableView.(DraggableView.java:85)
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:619)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
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 android.view.View.inflate(View.java:20171)
at com.github.pedrovgs.DraggablePanel.initializeView(DraggablePanel.java:263)
at com.kidsapp.Main2Activity.onCreate(Main2Activity.java:27)
at android.app.Activity.performCreate(Activity.java:6301)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2519)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1488)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5728)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
10-30 12:12:17.892 26881-26881/? I/Process: Sending signal. PID: 26881 SIG: 9
10-30 12:12:17.610 26881-26881/? I/art: Late-enabling -Xcheck:jni 10-30 12:12:17.696 26881-26881/com.kidsapp W/System: ClassLoader referenced unknown path: /data/app/com.kidsapp-2/lib/arm 10-30 12:12:17.700 26881-26881/com.kidsapp D/ActivityThread: BIND_APPLICATION handled : 0 / AppBindData{appInfo=ApplicationInfo{32a37bc com.kidsapp}} 10-30 12:12:17.701 26881-26881/com.kidsapp V/ActivityThread: Handling launch of ActivityRecord{d5d3345 token=android.os.BinderProxy@2ac0a9a {com.kidsapp/com.kidsapp.Main2Activity}} startsNotResumed=false 10-30 12:12:17.717 26881-26881/com.kidsapp V/ActivityThread: ActivityRecord{d5d3345 token=android.os.BinderProxy@2ac0a9a {com.kidsapp/com.kidsapp.Main2Activity}}: app=android.app.Application@44113a8, appName=com.kidsapp, pkg=com.kidsapp, comp={com.kidsapp/com.kidsapp.Main2Activity}, dir=/data/app/com.kidsapp-2/base.apk 10-30 12:12:17.754 26881-26881/com.kidsapp 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 10-30 12:12:17.772 26881-26903/com.kidsapp I/System: FinalizerDaemon: finalize objects = 1 10-30 12:12:17.786 26881-26881/com.kidsapp E/MultiWindowProxy: getServiceInstance failed! 10-30 12:12:17.878 26881-26881/? D/AndroidRuntime: Shutting down VM 10-30 12:12:17.881 26881-26881/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.kidsapp, PID: 26881 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kidsapp/com.kidsapp.Main2Activity}: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class com.github.pedrovgs.DraggableView at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2572) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1488) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:207) at android.app.ActivityThread.main(ActivityThread.java:5728) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679) Caused by: android.view.InflateException: Binary XML file line #0: Binary XML file line #0: Error inflating class com.github.pedrovgs.DraggableView at android.view.LayoutInflater.inflate(LayoutInflater.java:539) at android.view.LayoutInflater.inflate(LayoutInflater.java:423) at android.view.LayoutInflater.inflate(LayoutInflater.java:374) at android.view.View.inflate(View.java:20171) at com.github.pedrovgs.DraggablePanel.initializeView(DraggablePanel.java:263) at com.kidsapp.Main2Activity.onCreate(Main2Activity.java:27) at android.app.Activity.performCreate(Activity.java:6301) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2519) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1488) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:207) at android.app.ActivityThread.main(ActivityThread.java:5728) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679) Caused by: android.view.InflateException: Binary XML file line #0: Error inflating class com.github.pedrovgs.DraggableView at android.view.LayoutInflater.createView(LayoutInflater.java:645) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) 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 android.view.View.inflate(View.java:20171) at com.github.pedrovgs.DraggablePanel.initializeView(DraggablePanel.java:263) at com.kidsapp.Main2Activity.onCreate(Main2Activity.java:27) at android.app.Activity.performCreate(Activity.java:6301) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2519) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1488) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:207) at android.app.ActivityThread.main(ActivityThread.java:5728) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance(Native Method) at android.view.LayoutInflater.createView(LayoutInflater.java:619) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704) 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 android.view.View.inflate(View.java:20171) at com.github.pedrovgs.DraggablePanel.initializeView(DraggablePanel.java:263) at com.kidsapp.Main2Activity.onCreate(Main2Activity.java:27) at android.app.Activity.performCreate(Activity.java:6301) at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2519) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654) at android.app.ActivityThread.-wrap11(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1488) at android.os.Handler.dispatchMessage(Handler.java:111) at android.os.Looper.loop(Looper.java:207) at android.app.ActivityThread.main(ActivityThread.java:5728) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679) Caused by: java.lang.UnsupportedOperationException: Can't convert to dimension: type=0x12 at android.content.res.TypedArray.getDimensionPixelSize(TypedArray.java:666) at com.github.pedrovgs.DraggableView.initializeAttributes(DraggableView.java:680) at com.github.pedrovgs.DraggableView.(DraggableView.java:85)
at java.lang.reflect.Constructor.newInstance(Native Method)
at android.view.LayoutInflater.createView(LayoutInflater.java:619)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
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 android.view.View.inflate(View.java:20171)
at com.github.pedrovgs.DraggablePanel.initializeView(DraggablePanel.java:263)
at com.kidsapp.Main2Activity.onCreate(Main2Activity.java:27)
at android.app.Activity.performCreate(Activity.java:6301)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1113)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2519)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2654)
at android.app.ActivityThread.-wrap11(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1488)
at android.os.Handler.dispatchMessage(Handler.java:111)
at android.os.Looper.loop(Looper.java:207)
at android.app.ActivityThread.main(ActivityThread.java:5728)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:679)
10-30 12:12:17.892 26881-26881/? I/Process: Sending signal. PID: 26881 SIG: 9
apply plugin: 'com.android.application'
android { compileSdkVersion 26 defaultConfig { applicationId "com.kidsapp" minSdkVersion 16 targetSdkVersion 26 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' implementation files('libs/google-api-services-youtube-v3-rev182-1.22.0.jar') implementation files('libs/YouTubeAndroidPlayerApi.jar') compile 'com.amitshekhar.android:android-networking:1.0.0' compile 'com.squareup.picasso:picasso:2.5.2' compile 'com.github.pedrovgs:draggablepanel:1.9'
}
<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.kidsapp.Main2Activity">
package com.kidsapp;
import android.os.Handler; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button;
import com.github.pedrovgs.DraggablePanel;
public class Main2Activity extends AppCompatActivity {
}