YouTube watchme Android 找不到应用异常 "libffmpeg.so"

YouTube watchme Android application exception couldn't find "libffmpeg.so"

我正在使用这个样本https://github.com/youtube/yt-watchme

我刚刚导入了示例并在 MainActivity 中设置了 ACCOUNT_KEY。 下面是构建 gradle 文件

应用插件:'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.0"

    defaultConfig {
        applicationId "com.google.android.apps.watchme"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    sourceSets {
        main {
            jni.srcDirs = []
        }
    }

}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.google.android.gms:play-services-plus:7.8.0'
    compile 'com.android.support:support-v4:23.0.0'
    compile 'com.android.support:design:23.0.0'
    compile 'com.google.apis:google-api-services-youtube:v3-rev120-1.19.0'
    compile 'com.google.http-client:google-http-client-android:+'
    compile 'com.google.api-client:google-api-client-android:+'
    compile 'com.google.api-client:google-api-client-gson:+'
    compile 'com.mcxiaoke.volley:library:1.0.18'
    compile 'com.google.code.gson:gson:2.3'
}

This is my project structure

当 运行 这个应用程序在我的手机中时,我收到以下异常

java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/data/app/com.google.android.apps.watchme-1/base.apk"],nativeLibraryDirectories=[/data/app/com.google.android.apps.watchme-1/lib/arm64, /vendor/lib64, /system/lib64]]] couldn't find "libffmpeg.so"
                                                                                         at java.lang.Runtime.loadLibrary(Runtime.java:367)
                                                                                         at java.lang.System.loadLibrary(System.java:1076)
                                                                                         at com.google.android.apps.watchme.Ffmpeg.<clinit>(Ffmpeg.java:26)
                                                                                         at com.google.android.apps.watchme.VideoStreamingConnection.open(VideoStreamingConnection.java:71)
                                                                                         at com.google.android.apps.watchme.StreamerService.startStreaming(StreamerService.java:72)
                                                                                         at com.google.android.apps.watchme.StreamerActivity.startStreaming(StreamerActivity.java:208)
                                                                                         at com.google.android.apps.watchme.StreamerActivity.access0(StreamerActivity.java:46)
                                                                                         at com.google.android.apps.watchme.StreamerActivity.onServiceConnected(StreamerActivity.java:66)
                                                                                         at android.app.LoadedApk$ServiceDispatcher.doConnected(LoadedApk.java:1274)
                                                                                         at android.app.LoadedApk$ServiceDispatcher$RunConnection.run(LoadedApk.java:1291)
                                                                                         at android.os.Handler.handleCallback(Handler.java:815)
                                                                                         at android.os.Handler.dispatchMessage(Handler.java:104)
                                                                                         at android.os.Looper.loop(Looper.java:207)
                                                                                         at android.app.ActivityThread.main(ActivityThread.java:5776)
                                                                                         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)

以上错误已得到修复并出现此新错误

com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden
                                                                      {
                                                                        "code": 403,
                                                                        "errors": [
                                                                          {
                                                                            "domain": "youtube.liveBroadcast",
                                                                            "message": "Stream is inactive",
                                                                            "reason": "errorStreamInactive",
                                                                            "extendedHelp": "https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/transition"
                                                                          }
                                                                        ],
                                                                        "message": "Stream is inactive"
                                                                      }
                                                                          at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
                                                                          at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
                                                                          at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.interceptResponse(AbstractGoogleClientRequest.java:321)
                                                                          at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1065)
                                                                          at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419)
                                                                          at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352)
                                                                          at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469)
                                                                          at com.google.android.apps.watchme.util.YouTubeApi.startEvent(YouTubeApi.java:187)
                                                                          at com.google.android.apps.watchme.MainActivity$StartEventTask.doInBackground(MainActivity.java:408)
                                                                          at com.google.android.apps.watchme.MainActivity$StartEventTask.doInBackground(MainActivity.java:393)
                                                                          at android.os.AsyncTask.call(AsyncTask.java:292)
                                                                          at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                                          at android.os.AsyncTask$SerialExecutor.run(AsyncTask.java:231)
                                                                          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
                                                                          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
                                                                          at java.lang.Thread.run(Thread.java:818)

请帮我解决这个问题...

https://developers.google.com/youtube/v3/live/docs/liveBroadcasts/transition

使用这个 link。您将知道为什么会出现此错误。还有一些其他错误及其详细原因。