
bug
Crystal_xing
温不增华,寒不改叶
展开
-
Unable to load class ‘javax.xml.bind.JAXBException‘.
【代码】Unable to load class 'javax.xml.bind.JAXBException'.原创 2022-10-18 15:48:07 · 1252 阅读 · 0 评论 -
RxFFmpeg: Android Error while decoding stream #0:0: Invalid data found when processing input
使用RxFFmpeg将图片+mp3转换成mp4的时候,报此错误,后来把图片文件由jpg改成png的后缀,就好使了原创 2022-02-08 15:43:14 · 3598 阅读 · 0 评论 -
Remote: Support for password authentication was removed on August 13, 2021. Please use a personal ac
代码推不上去的时候报这个错,解决方案是 push的时候,输入密码的地方用token:教程网址:github开发人员在七夕搞事情:remote: Support for password authentication was removed on August 13, 2021._星空-优快云博客...原创 2021-09-22 11:13:30 · 253 阅读 · 0 评论 -
Android:WebView的loadData( )加载html空白
情景是:SdkVersion是28的时候WebView一切正常显示,升级SdkVersion到30的时候,WebVIew用loadData加载html就显示一片了。这时候在如果在onPageFinished里看值,onPageFinished的回调中看url的值:data:text/html; charset=utf-8,<html>%0A<head>%0A<meta charset="utf-8">%0A<meta name="format-detecti原创 2021-03-19 11:30:38 · 1355 阅读 · 0 评论 -
Android: onActivityResult resultCode为0,Intent为null
主流的网上解决方案都是跟Activity的启动模式不是singleTop和Standard有关,但是在Standard模式下还是碰到了这个问题,经过调试发现问题出在: @Override public void onBackPressed() { setCloseResult(); finish(); super.onBackPressed(); } private void setCloseResult(){原创 2021-03-11 17:23:21 · 797 阅读 · 0 评论 -
No cached version of com.facebook.android:facebook-android-sdk:8.1.0 available for offline mode
解决方案:https://www.cnblogs.com/flay/p/12641381.html图片是灵魂:转载 2021-03-09 15:40:39 · 583 阅读 · 0 评论 -
Android:E/IdpSignInActivity: Web sign-in failed, finishing
Twitter登陆碰到这个错误,光从错误日志只有一句,看不出什么:调到Verbose,这个错就好定位了,是sha1指纹不匹配:原创 2021-03-05 17:07:27 · 300 阅读 · 0 评论 -
[GetAuthDomainTask] Error getting project config. Failed with { XXX “message“: “INVALID_CERT_HASH
完整日志如下:2021-02-10 14:39:25.954 28918-30756/jp.or.eiken.studygear E/FirebaseAuth: [GetAuthDomainTask] Error getting project config. Failed with { "error": { "code": 400, "message": "INVALID_CERT_HASH", "errors": [原创 2021-02-10 16:12:51 · 600 阅读 · 0 评论 -
Failed resolution of: Landroidx/browser/customtabs/CustomTabsIntent$Builder;
使用Firebase Auth 认证的时候出现如下错误:1612145598.686 21721-21721/com.change.demox E/om.change.demo: Invalid ID 0x00000000.1612145621.043 21721-21721/com.change.demox E/AndroidRuntime: FATAL EXCEPTION: main Process: com.change.demox, PID: 21721 java.lang.原创 2021-02-01 10:25:13 · 696 阅读 · 0 评论 -
Android:emulator: ERROR: Can‘t find ‘Linux version ‘ string in kernel image file: /Users/admin/Libr
12:24 PM Emulator: emulator: ERROR: Can't find 'Linux version ' string in kernel image file: /Users/admin/Library/Android/sdk/system-images/android-30/google_apis/x86//kernel-ranchu-6412:24 PM Emulator: Process finished with exit code 1步骤:Tools > S.原创 2021-01-18 12:52:18 · 937 阅读 · 0 评论 -
Android: Gradle project sync failed. Please fix your project and try again
出现这种情况,重启项目让Gradle重新编译,多半能解决原创 2021-01-12 16:58:58 · 940 阅读 · 0 评论 -
flutter: This likely happens because you used a `BuildContext` that does not include the providerXXX
Error: Could not find the correct Provider<FeelCalendarViewModel> above this MonthView WidgetThis likely happens because you used a `BuildContext` that does not include the providerof your choice. There are a few common scenarios:- The provider.原创 2020-11-23 11:34:39 · 3208 阅读 · 0 评论 -
flutter: Horizontal viewport was given unbounded height.
════════ Exception caught by rendering library ═════════════════════════════════════════════════════Horizontal viewport was given unbounded height.The relevant error-causing widget was: PageView file:///Users/admin/Documents/project/GitlabFlutter/Fli.原创 2020-11-17 10:01:44 · 762 阅读 · 0 评论 -
flutterText 文字下有黄色下划线
https://www.jianshu.com/p/1f0a29cddba1解决方式采用根节点为脚手架Scaffold组件Scaffold(body: content,);转载 2020-11-11 16:24:41 · 1366 阅读 · 0 评论 -
flutter: Horizontal viewport was given unbounded height.
════════ Exception caught by rendering library ═════════════════════════════════════════════════════Horizontal viewport was given unbounded height.The relevant error-causing widget was: PageView file:///Users/admin/Documents/project/GitlabFlutter/Fli.原创 2020-11-04 09:39:13 · 598 阅读 · 0 评论 -
flutter:RenderFlex children have non-zero flex but incoming width constraints are unbounded.
错误日志如下:════════ Exception caught by rendering library ═════════════════════════════════════════════════════RenderFlex children have non-zero flex but incoming width constraints are unbounded.The relevant error-causing widget was: Row file:///Users.原创 2020-11-02 16:57:17 · 2797 阅读 · 0 评论 -
flutter:A RenderFlex overflowed by 242 pixels on the right
如果父 flex row column 的话,那么抛出此错误的元素使用Expanded或者Flexible 包裹就行,如下@overrideWidget build(BuildContext context) { return new Card( color: Colors.white, elevation: 3.0, child: new Padding( padding: new EdgeInsets.all(15.0),...转载 2020-11-02 15:43:35 · 787 阅读 · 0 评论 -
flutter: You used a `BuildContext` that is an ancestor of the provider you are trying to read
当在StatefulWidget中使用ChangeNotifierProvider绑定ViewModel,就会报如上错误,完整的错误日志如下Error: Could not find the correct Provider<RecordTopViewModel> above this RecordTop WidgetThis likely happens because you used a `BuildContext` that does not include the p..原创 2020-10-30 13:09:14 · 1810 阅读 · 0 评论 -
error: The argument type ‘Function‘ can‘t be assigned to the parameter type ‘void Function()‘.
出错的代码如下:解决方案:声明部分的写法改为:final void Function() onTap;原创 2020-10-23 13:54:14 · 6962 阅读 · 0 评论 -
java.net.UnknownServiceException: CLEARTEXT communication to XX not permitted by network security
https://blog.youkuaiyun.com/qq_37684824/article/details/89681392原因;翻译过来就是安卓9加强了保密性,导致无法进行非加密的http网络请求。转载 2020-10-07 13:14:22 · 308 阅读 · 0 评论 -
Android: ViewModel> has no zero argument constructor
viewModel = ViewModelProvider( this, ViewModelProvider.AndroidViewModelFactory.getInstance(application) ).get(PDFBookDocumentViewModel::class.java)使用上述方法加载viewModel报上述错误。如果您想为ViewModel类提供一个非零参数的构造函数,则可能必须创...原创 2020-09-29 15:04:21 · 4444 阅读 · 0 评论 -
Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
在Json转换的时候遇到这个错,说明是Json的格式不对,Gson期望你的JSON字符串以大括号开头: {,但是实际上传递给它的字符串是以引号开头。报错的字符串:noanswerhistory_get_rslt:{"res":0,""sq":12345,"history":[{"id":11,"num":"","group":0,"time":"20190531235959"},{"id":92,"num":"","group":0,"time":"201905011200...原创 2020-09-07 14:03:08 · 2052 阅读 · 0 评论 -
Android : Can‘t locate AnyEvent.pm in @INC (you may need to install the AnyEvent module)
错误日志的具体版本如下,意思是在运行N700Smon这个可执行文件的时候,电脑中perl库里没有AnyEvent.pm这个文件,解决方案就是去网上下载并安装这个文件:xingjunaodeMini:n700Smon admin$ ./N700Smon Can't locate AnyEvent.pm in @INC (you may need to install the AnyEvent module) (@INC contains: . /Library/Perl/5.18/darw...原创 2020-08-27 15:38:59 · 1542 阅读 · 0 评论 -
关于android setOnClickListener()报错
导入包android.view.View.OnClickListener即可,注意大小写原创 2015-05-23 08:52:22 · 1111 阅读 · 0 评论 -
Android ADB server didn‘t ACK * failed to start daemon * 和The connection to adb is down 简单有效的解决方案
点击开始->运行;2输入cmd,点击确定按钮;3进入dos操作界面效果;4然后输入netstat -an 然后回车,查看端口;5如果输入:netstat -an,提示:不是内部或外部命令,也不是可运行的程序或批处理文件。6提示不是内部或外部原创 2015-05-17 20:07:52 · 608 阅读 · 0 评论 -
Android Parameter ‘directory‘ is not a directory
解决方案:删除.gradle 和 build文件夹,重新make project原创 2020-07-31 12:11:06 · 4589 阅读 · 0 评论 -
Android Realm: Cannot modify managed objects outside of a write transaction.
java.lang.IllegalStateException: Cannot modify managed objects outside of a write transaction. at io.realm.internal.Table.throwImmutable(Table.java:653) at io.realm.internal.Table.checkImmutable(Table.java:522) at io.realm.interna..原创 2020-06-09 15:54:22 · 1584 阅读 · 0 评论 -
Android Glide: IOException(Cleartext HTTP traffic to img1.imgtn.bdimg.com not permitted)
2020-05-13 18:23:08.386 10297-10297/com.change.pdfscrolltrumbnail D/Wain: 加载失败 errorMsg:Failed to load resource There were 2 causes: java.io.IOException(Cleartext HTTP traffic to img1.imgtn.bdimg.com not permitted) java.io.FileNotFoundExceptio.原创 2020-05-13 18:33:38 · 579 阅读 · 0 评论 -
Android:UnsatisfiedLinkError: dalvik.system.[DexPathListXXXlib/arm64, /system/lib64]couldn't find so
java.lang.UnsatisfiedLinkError: dalvik.system.PathClassLoader[DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.toshiba.pocketsphinx-VPrA29DXIucRRuO4G...原创 2020-04-16 14:26:39 · 459 阅读 · 0 评论 -
Android:NullPointerException XXX..ndk.DefaultNdkInfo.findTargetPlatformVersionOrLower
日志如下图:org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: A problem occurred configuring project ':app'. at org.gradle.initialization.DefaultGrad...原创 2020-04-16 13:19:04 · 3173 阅读 · 3 评论 -
kotlin: IllegalStateException: Cannot invoke setValue on a background thread
suspend函数中报了如下的异常日志: java.lang.IllegalStateException: Cannot invoke setValue on a background thread at androidx.lifecycle.LiveData.assertMainThread(LiveData.java:461) at androidx....原创 2020-01-02 10:15:46 · 5313 阅读 · 1 评论 -
Android setCurrentScreen cannot be called with the same class and name(FireBase Analytics)
FireBase Analytics出现这个错的原因是: 在同样的界面连续执行了setCurrentScreen这个统计屏幕迁移的代码原创 2019-08-27 13:41:56 · 1548 阅读 · 2 评论 -
Android Duplicate class com.google.android.gms.internal.measurement.zzdu found in modules classes.
Duplicate class com.google.android.gms.internal.measurement.zzdu found in modules classes.jar (com.google.android.gms:play-services-measurement-impl:17.0.0) and classes.jar (com.google.firebase:fireb...原创 2019-10-10 11:29:38 · 5443 阅读 · 3 评论 -
Android Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider:
崩溃日志如下: java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException: ********************************************...原创 2019-10-14 17:21:25 · 3928 阅读 · 2 评论 -
Android AndroidStudio 出现 Gradle's dependency cache may be corrupt 错误解决方法
https://blog.youkuaiyun.com/ityangjun/article/details/60573907转载 2019-10-24 17:02:45 · 441 阅读 · 0 评论 -
kotlin: gson.JsonSyntaxException: java.lang.IllegalStateException
val json = Gson()val jsonContent = json.toJson(sbn.notification.extras)Gson解析的时候,用上述两行代码报如下错误:nullcom.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected a string but was...原创 2019-10-28 14:23:20 · 764 阅读 · 0 评论 -
Kotlin: Projections are not allowed on type arguments of functions and properties (*(星号)引发)
报错代码如下,星号(*)位置: 错误的原因是: kotlin 不让模糊的写类型,需要具体。 改完之后正确的代码,将星号的模糊部分删除,然后下方具体使用的时候加一个强转,转换的参数参考等号左边 val adapter 的类型, 但是<>部分的内容换成删除的星号*:override fun responseBodyCon...原创 2019-07-30 12:00:04 · 820 阅读 · 0 评论 -
Kotlin : The following declarations have the same JVM signature
kotlin报这个错的意思是:父类中已经定义了同名的getToolbar()方法。解决方案是重新命名函数名。原创 2019-07-05 16:28:00 · 7123 阅读 · 0 评论 -
Kotlin : Type mismatch Required Nothing Found X
在转换完的kotlin版本代码中,出现如下错误:Type mismatch Required :Nothing Found :Datajava:Adapter中的写法: ...原创 2019-07-08 11:15:13 · 6463 阅读 · 0 评论