solution for one error of youtube SDK version1.2.2:Implicit intents with startService are not safe: Intent

When work with youtbute SDK version 1.2.2, I use ‘YouTubePlayerFragment’ play video,an error occur,just like this:

Implicit intents with startService are not safe: Intent { }
 Cannot load modern controls UI. Upgrade to the latest version of the Android YouTube API.

I almost try all answers at stackoverflow, but can solve my problem. finally I find out the solution,like youtube sdk’s demo, add this code in you AndroidManifest.xml

<activity android:name=".ActivityMain" android:configChanges="orientation|keyboardHidden|screenSize"> <meta-data android:name="@string/isLaunchableActivity" android:value="true"/> </activity>

1: ActivityMain is my Activity use the YouTubePlayerFragment.

2: isLaunchableActivity’s value is ‘isLaunchableActivity’ .