[해결방법] Developer key cannot be null or empty

This topic contains 0 replies, has 1 voice, and was last updated by  technote 2018-01-19 00:52.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #276

    technote
    Keymaster

    코드 내에 할당받은 API key를 등록하지 않아서 발생한다.

    아래와 같은 에러가 발생하면 해당 링크와 같은 방법으로 해결하면 된다. [https://developers.google.com/youtube/android/player/register]

    E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.examples.youtubeapidemo, PID: 21815
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.examples.youtubeapidemo/com.examples.youtubeapidemo.FragmentDemoActivity}: java.lang.IllegalArgumentException: Developer key cannot be null or empty
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2927)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2988)
    at android.app.ActivityThread.-wrap14(ActivityThread.java)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1631)
    at android.os.Handler.dispatchMessage(Handler.java:102)
    at android.os.Looper.loop(Looper.java:154)
    at android.app.ActivityThread.main(ActivityThread.java:6682)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410)
    Caused by: java.lang.IllegalArgumentException: Developer key cannot be null or empty
    at com.google.android.youtube.player.internal.ab.a(Unknown Source)
    at com.google.android.youtube.player.YouTubePlayerFragment.initialize(Unknown Source)
    at com.examples.youtubeapidemo.FragmentDemoActivity.onCreate(FragmentDemoActivity.java:43)
    at android.app.Activity.performCreate(Activity.java:6942)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1126)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2880)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2988) 
    at android.app.ActivityThread.-wrap14(ActivityThread.java) 
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1631) 
    at android.os.Handler.dispatchMessage(Handler.java:102) 
    at android.os.Looper.loop(Looper.java:154) 
    at android.app.ActivityThread.main(ActivityThread.java:6682) 
    at java.lang.reflect.Method.invoke(Native Method) 
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1520) 
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1410) 

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.