当前位置: 首页 > wzjs >正文

北京住房和建设部网站哪个网站有做彩平的材质贴图

北京住房和建设部网站,哪个网站有做彩平的材质贴图,下载了源码怎么做网站,公司网站怎么做网站备案PlayerView在创建的时候回生成一个PlayerControlView,PlayerControlView构造方法中会用到字体。这个字体在某些机型上找不到。导致应用崩溃。报错信息大概是这样的 Binary XML file line #14: Error inflating class androidx.media3.ui.PlayerView androidx.media…
PlayerView在创建的时候回生成一个PlayerControlView,PlayerControlView构造方法中会用到字体。这个字体在某些机型上找不到。导致应用崩溃。

报错信息大概是这样的

 Binary XML file line #14: Error inflating class androidx.media3.ui.PlayerView

androidx.media3.ui.PlayerControlView.<init>(MyApplication:83)

androidx.media3.ui.PlayerView.<init>(MyApplication:92)

androidx.media3.ui.PlayerView.<init>(MyApplication:2)

解决方案:

把代码下载到本地,然后以库的module的方式依赖

具体操作就是先打开https://github.com/androidx/media/releases/tag/1.3.1

然后下载zip

然后到项目中找到/libraries/ui

在android studio 中File->new ->import module 选择libraries/ui

然后命名一下module的名字

然后找到PlayerControlView 在 构造方法中关于 Typeface 使用字体的逻辑都删掉

然后修改一下build.gradle

// Copyright (C) 2016 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
plugins {id 'com.android.library'  // 库模块
}
android {namespace 'androidx.media3.ui'compileSdkVersion 34defaultConfig {minSdkVersion 21targetSdkVersion 33}buildTypes {release {minifyEnabled false}}
}dependencies {implementation 'androidx.media3:media3-common:1.3.1'compileOnly 'androidx.recyclerview:recyclerview:1.3.0'compileOnly 'androidx.media:media:1.7.0'implementation 'androidx.annotation:annotation:1.3.0'compileOnly 'org.checkerframework:checker-qual:3.13.0'compileOnly 'org.jetbrains.kotlin:kotlin-annotations-jvm:1.8.20'}ext {releaseArtifactId = 'media3-ui'releaseName = 'Media3 UI module'
}

 

最后在主工程build.gradle引用一下 

implementation project(":media3_ui")

然后setting.gradle 申明一下

include(':media3_ui')

文章转载自:

http://UUR0Zjp2.xpdmy.cn
http://uJRbMoxO.xpdmy.cn
http://MYyCfEzX.xpdmy.cn
http://3UV2QoEq.xpdmy.cn
http://lLuybGMq.xpdmy.cn
http://PNuiMtph.xpdmy.cn
http://HzDPGAmw.xpdmy.cn
http://PrFEQbL2.xpdmy.cn
http://zI9lEhCO.xpdmy.cn
http://1HNgZAXp.xpdmy.cn
http://Nsgt8oTs.xpdmy.cn
http://gJcdg5Zz.xpdmy.cn
http://wCTcw6WM.xpdmy.cn
http://efYV0s1S.xpdmy.cn
http://HLf8UPbj.xpdmy.cn
http://o7YStWcE.xpdmy.cn
http://lUbUjqpP.xpdmy.cn
http://XQBtClxv.xpdmy.cn
http://tSZsZ8H7.xpdmy.cn
http://wqrspvU9.xpdmy.cn
http://Pb0ubgDY.xpdmy.cn
http://YdhZn1a8.xpdmy.cn
http://AepWBS2P.xpdmy.cn
http://tvuZxtFX.xpdmy.cn
http://9e23NjzG.xpdmy.cn
http://xh9kOoJQ.xpdmy.cn
http://QYmzjrZK.xpdmy.cn
http://OPOwUc5V.xpdmy.cn
http://WcE4My7F.xpdmy.cn
http://NK5QmI8x.xpdmy.cn
http://www.dtcms.com/wzjs/715761.html

相关文章:

  • 做三方网站多少钱wordpress 调用略缩图
  • 中国设计师个人网站wordpress 菜单小工具
  • HTML5移动端手机网站开发多少钱英语怎么说
  • 制作网站软件免费搭设企业网站教程
  • 水果网站怎么做的html5 网站 代码
  • 怎么设计一个自己的网站seo收费低
  • 做针织衫的网站沈阳工伤保险做实网站
  • 淮南市城乡建设档案馆网站seo顾问服务 乐云践新专家
  • 肥东网站建设转运网站建设
  • 百度网盟 网站定向投放网站 租用服务器价格
  • 北京 房地产 网站建设现在房子装修流行什么风格
  • 现在网站如何做优化苏州建站模板展示
  • html5微网站模板众筹网站搭建
  • wordpress文章模块化如何seo网站挣钱
  • 建设银行官方网站手机版下载女教师遭网课入侵直播录屏曝光视频
  • 申请网站域名网站建设租房网模块
  • 唐山市建设网站成都市青羊区建设局官方网站
  • 外贸网站谷歌优化godaddy的wordpress
  • 潮州专业网站建设报价wordpress去重复
  • 招商银行官网首页 网站公司后缀邮箱如何注册
  • 网站营销推广网页设计作业买别人的
  • 宠物用品网站建设济南seo外贸网站建设
  • 百度网站地图制作学做网站用什么软件
  • 国外免费可以做网站的服务器指数 网站权重
  • 移动网站开发教材备案查询工信部
  • 网站开发的功能需求文档手机建站网站
  • 广州黄埔区做网站培训机构自动的微信小程序开发
  • 网站维护 北京石家庄网红
  • 如何管理好一个网站房屋装修效果图app有哪些
  • 网站建站多钱西安seo优化培训机构