gpt4 book ai didi

android - 获取运行时权限错误 E/Minikin : addFont failed to create font/system/fonts/NanumGothic. ttf

转载 作者:行者123 更新时间:2023-12-05 00:14:20 33 4
gpt4 key购买 nike

我在 google 和 stackoverflow 上搜索了很多,我得到了这个错误

E/Minikin: addFont failed to create font /system/fonts/NanumGothic.ttf in fragment and fragment reloaded after that

请帮助我吗?重新加载允许按钮 fragment 后,我正在获取运行时权限。

  if (PermissionChecker.checkSelfPermission(getActivity(),
android.Manifest.permission.CAMERA)
!= PackageManager.PERMISSION_GRANTED || ContextCompat.checkSelfPermission(getActivity(),
Manifest.permission.CAMERA)
!= PackageManager.PERMISSION_GRANTED && PermissionChecker.checkSelfPermission(getActivity(),
Manifest.permission.READ_EXTERNAL_STORAGE)
!= PackageManager.PERMISSION_GRANTED || ContextCompat.checkSelfPermission(getActivity(),
Manifest.permission.READ_EXTERNAL_STORAGE)
!= PackageManager.PERMISSION_GRANTED) {



requestPermissions(new String[]{Manifest.permission.CAMERA, Manifest.permission.READ_EXTERNAL_STORAGE}, 1);

// ActivityCompat.requestPermissions(getActivity(),new String[]{android.Manifest.permission.CAMERA}, 0);
} else {


//opening an intent


}

这是我的日志。

    Failed sending reply to debugger: Broken pipe
Unsupported class: com.mediatek.common.telephony.IOnlyOwnerSimSupport
addFont failed to create font /system/fonts/NanumGothic.ttf
addFont failed to create font /system/fonts/DroidSansFallback.ttf
addFont failed to create font /system/fonts/MTLmr3m.ttf
getServiceInstance failed!
ssl=0x7fb2458980 cert_verify_callback x509_store_ctx=0x7f8bd7e360 arg=0x0
ssl=0x7fb2458980 cert_verify_callback calling verifyCertificateChain authMethod=ECDHE_RSA

这是我的依赖

 compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support:design:25.3.0'
compile 'com.android.support:multidex:1.0.1'
compile 'com.google.firebase:firebase-messaging:9.4.0'
compile 'com.google.android.gms:play-services:9.4.0'

如果我创建其他项目完全没问题,但为什么它在我这边不起作用?

最佳答案

在我的情况下,是因为ttf资源borken,所以我重新复制它并修复

这可能是压缩/解压缩问题或复制/粘贴问题。因此,最好确保您使用的文件是否具有正确的扩展名,并且只需删除现有文件并从原始来源再次复制它。

关于android - 获取运行时权限错误 E/Minikin : addFont failed to create font/system/fonts/NanumGothic. ttf,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41826684/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com