Android Question Error AndroidYouTubePlayer

nedium

Active Member
Licensed User
Longtime User
Hello, I'm trying to use this library but I get this error when running, does anyone have any idea what it could be?


Eror:
--------- beginning of main

Copying updated assets files (1)

*** Service (starter) Create ***

** Service (starter) Start **

** Activity (main) Create (first time) **

** Activity (main) Resume **

Youtube view is ready

java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/content/ContextCompat;

    at com.pierfrancescosoffritti.youtubeplayer.PlayerControlsWrapper.onStateChange(PlayerControlsWrapper.java:243)

    at com.pierfrancescosoffritti.youtubeplayer.YouTubePlayerBridge$1.run(YouTubePlayerBridge.java:35)

    at android.os.Handler.handleCallback(Handler.java:958)

    at android.os.Handler.dispatchMessage(Handler.java:99)

    at android.os.Looper.loopOnce(Looper.java:230)

    at android.os.Looper.loop(Looper.java:319)

    at android.app.ActivityThread.main(ActivityThread.java:8919)

    at java.lang.reflect.Method.invoke(Native Method)

    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)

    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)

Caused by: java.lang.ClassNotFoundException: android.support.v4.content.ContextCompat

    ... 10 more

Or if someone has already used this library, could you tell me what may be missing.

thank you
 

MarcoRome

Expert
Licensed User
Longtime User
Upvote 0

MarcoRome

Expert
Licensed User
Longtime User
See
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…