今天我开始在我的应用程序中实现一个API,当应用程序加载时,它会显示活动(一个加载对话框)一秒钟.然后以下消息在logcat中开始发送垃圾邮件:
10-04 15:54:33.094 27832-27832/nl.berris.roy.raspberrypiproject E/libc: Access denied finding property "vendor.perf.iop_v3.enable"
10-04 15:54:33.094 27832-27832/nl.berris.roy.raspberrypiproject E/libc: Access denied finding property "vendor.perf.iop_v3.enable.debug"
Run Code Online (Sandbox Code Playgroud)
Logcat设置为错误级别,仅在选定的应用程序上使用过滤器.这是唯一给出的输出.
在此消息发送5秒之后,应用程序将强制停止而不显示任何消息.我在谷歌上找不到任何相关信息.有没有人能解释为什么会这样?
我在gradle中的实现:
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:support-v4:25.4.0'
implementation 'com.android.support:appcompat-v7:25.4.0'
implementation 'com.android.support:cardview-v7:25.4.0'
implementation 'com.android.support:recyclerview-v7:25.4.0'
implementation 'com.android.support:design:25.4.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.jakewharton:butterknife:8.8.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.8.1'
implementation 'com.afollestad.material-dialogs:core:0.9.4.3'
implementation ('com.squareup.retrofit2:retrofit:2.3.0') {
exclude module: 'okhttp'
}
implementation 'com.squareup.okhttp3:okhttp:3.6.0'
implementation 'com.squareup.retrofit2:converter-gson:2.4.0'
implementation 'com.squareup.okhttp3:logging-interceptor:3.9.1'
implementation 'com.google.code.gson:gson:2.8.2'
Run Code Online (Sandbox Code Playgroud)
我正在使用Retrofit2进行api调用.我确实注释掉了API代码,应用程序仍然崩溃了.仍然api调用运行异步.
现在只在应用程序中发生的事情是一个打开片段的活动.在这个片段中是一个带有适配器的recyclerview.此外,"失败"MaterialDialog将显示,因为API调用失败.一切都加载,甚至是"失败"对话框.在api调用之后创建(并且失败).几秒钟后,应用程序停止.并显示如上所示的错误消息.
| 归档时间: |
|
| 查看次数: |
2119 次 |
| 最近记录: |