首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >解决方案失败:Lcom/google/android/gms/ MiniControllerFragment的通用/内部/zzbq

解决方案失败:Lcom/google/android/gms/ MiniControllerFragment的通用/内部/zzbq
EN

Stack Overflow用户
提问于 2020-11-09 12:21:25
回答 1查看 123关注 0票数 1

我收到了MiniControllerFragment的以下错误,这是一个音乐播放器应用程序&使用CastOptions,升级到最新的gradle之后,我就得到了这个问题。如果早些时候有人面临同样的问题&找到了任何解决方案,那么请你也帮助我。

代码语言:javascript
运行
复制
 Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.android.gms.common.internal.zzbq" on path: DexPathList[[zip file "/data/app/PACKAGE_NAME-btPK9-mYnIhfqmckE-riFw==/base.apk"],nativeLibraryDirectories=[/data/app/PACKAGE_NAME-btPK9-mYnIhfqmckE-riFw==/lib/arm64, /data/app/PACKAGE_NAME-btPK9-mYnIhfqmckE-riFw==/base.apk!/lib/arm64-v8a, /system/lib64, /system/product/lib64]]

at活动

代码语言:javascript
运行
复制
  FrameLayout contentRoot = findViewById(R.id.content_root);
            contentRoot.addView(LayoutInflater.from(this)
                    .inflate(R.layout.fragment_cast_mini_controller, null), params);

下面是布局

代码语言:javascript
运行
复制
<?xml version="1.0" encoding="utf-8"?>
<fragment
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_alignParentBottom="true"
    android:id="@+id/castMiniController"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"

    android:layout_gravity="bottom"
    android:gravity="bottom"
    android:visibility="gone"
    class="com.google.android.gms.cast.framework.media.widget.MiniControllerFragment"/> 

app build.gradle

代码语言:javascript
运行
复制
  implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation "com.android.support:appcompat-v7:27.0.2"
    implementation "com.android.support:design:27.0.2"
    implementation "com.android.support:cardview-v7:27.0.2"
    implementation "com.android.support:recyclerview-v7:27.0.2"
    implementation "com.android.support:palette-v7:27.0.2"
    implementation "com.android.support:percent:27.0.2"
    implementation 'com.android.support:multidex:1.0.3'

    implementation "com.android.support:mediarouter-v7:27.0.2"
    implementation 'com.google.android.gms:play-services-cast-framework:11.6.0'

    implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
    implementation 'net.steamcrafted:materialiconlib:1.1.4'
    implementation 'com.squareup.retrofit:retrofit:1.9.0'
    implementation 'com.squareup.okhttp:okhttp-urlconnection:2.3.0'
    implementation 'com.squareup.okhttp:okhttp:2.3.0'
    implementation 'com.google.code.gson:gson:2.3'
    implementation 'de.Maxr1998:track-selector-lib:1.2'



    implementation 'com.afollestad.material-dialogs:core:0.9.0.2'
    implementation 'com.afollestad.material-dialogs:commons:0.9.0.2'

    implementation 'com.anjlab.android.iab.v3:library:1.0.+'
    implementation 'org.nanohttpd:nanohttpd:2.3.1'

    implementation 'com.google.firebase:firebase-analytics:17.4.1'
    implementation 'com.google.firebase:firebase-crashlytics:17.0.0'
    implementation 'com.google.firebase:firebase-core:17.0.0'

    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'androidx.test:core:1.1.0'
    androidTestImplementation 'androidx.test.ext:junit:1.1.0'
    androidTestImplementation 'androidx.test:runner:1.2.0-alpha05'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0-alpha05'
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-11-10 12:24:33

您应该升级您的gms:play-services-cast-framework版本。

代码语言:javascript
运行
复制
implementation 'com.google.android.gms:play-services-cast-framework:15.0.0'
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64751576

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档