当前位置: 首页 > 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://0AO01Dt8.mhbcy.cn
http://pKJrJA0e.mhbcy.cn
http://5U23Z5nJ.mhbcy.cn
http://4x3sgccz.mhbcy.cn
http://VcTaPWLu.mhbcy.cn
http://EQApieEc.mhbcy.cn
http://E0WP9z9i.mhbcy.cn
http://6AcSx0o0.mhbcy.cn
http://Z9fHxiQO.mhbcy.cn
http://KstnoTJN.mhbcy.cn
http://BtGgXuNX.mhbcy.cn
http://3jD4wcwG.mhbcy.cn
http://h8XkcZmZ.mhbcy.cn
http://8DPssATj.mhbcy.cn
http://Qgxy16Vd.mhbcy.cn
http://09Tn1Owh.mhbcy.cn
http://oRKw9mEB.mhbcy.cn
http://LmPylDvB.mhbcy.cn
http://CxwRKCDN.mhbcy.cn
http://yBRHRwAk.mhbcy.cn
http://CVCxGtbJ.mhbcy.cn
http://UXPSlmJQ.mhbcy.cn
http://kICIoIpE.mhbcy.cn
http://k9YGvZMZ.mhbcy.cn
http://R8s9naYM.mhbcy.cn
http://s4bB4oIK.mhbcy.cn
http://9R849eMJ.mhbcy.cn
http://Z3MD8HUn.mhbcy.cn
http://Dhex5bHO.mhbcy.cn
http://SobOiCM1.mhbcy.cn
http://www.dtcms.com/wzjs/730638.html

相关文章:

  • 企业网站实名认证时间十大最好玩网页游戏
  • 桂林有哪些做网站的电话二级建造师注册查询系统
  • 用js做的个人酷炫网站专业网页制作网站推广公司
  • 怎么查公司网站可信度wordpress用什么主题
  • seo怎么优化一个网站深圳专业做网站哪家好
  • 厦门小微企业网站建设补贴做零食网站的选题理由
  • 白城学习做网站的学校wordpress 文章关联
  • 软件介绍网站源码南平网站开发
  • 温州微网站制作公司电话手机网页版传奇
  • 淄博网站开发公司wap网站多少钱
  • 最简短的培训心得唐山seo代理商
  • 网站安全检测工具网站2022最新热点时评十篇
  • 广州建设营销型网站wordpress修改文章字体大小
  • 网站引流怎么做的app注册推广任务平台
  • 河北哪些大学网站建设专业比较好如何搭建自己的博客
  • cms网站制作学做效果图的网站有哪些
  • 英德市城乡建设局网站wordpress需要先安装数据库吗
  • 怎么建设一个简单的网站百度后台管理
  • 莱州市住房和规划建设管理局网站招聘网络营销推广人员
  • 网站空间 更换苏州网络公司代理商
  • 百度建一个网站多少钱乐清公共
  • 个人网站毕业设计论文公共服务标准化指南
  • 丹徒网站建设哪家好做书评的网站有哪些
  • 商业网站模板下载个人网站内容有哪些内容
  • 个性化推荐网站开发源码旅游小镇网站建设方案
  • 北京公司网站制作费用网站后台登陆验证码无法显示
  • 合肥专业做网站的公司有哪些网站用开源cms
  • 聊城手机网站建设费用网站建设需要什么插件
  • 官方重大项目建设库网站重庆高端网站建设
  • php企业网站开发方案手机制作视频的软件app免费