Comments (6)
缓存目录下的错误报告发出来看看
from mybookshelf.
首先谢谢gedoor的回复,
不过我经过查看源代码,找到原因了,查看日志,
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.os.Handler.removeCallbacks(java.lang.Runnable)' on a null object reference
at com.monke.monkeybook.view.activity.ReadBookActivity.t(ReadBookActivity.java:265)
at com.monke.monkeybook.view.activity.ReadBookActivity.k(ReadBookActivity.java:226)
at com.monke.monkeybook.base.MBaseActivity.onCreate(MBaseActivity.java:40)
at com.monke.monkeybook.view.activity.ReadBookActivity.onCreate(ReadBookActivity.java:143)
看出错的代码是设置屏幕时间的。
我想了半天,应该是因为我在系统设置中把自动休眠设置为「永不」的原因(因为我要下载书籍,要下很多本书,屏幕自动休眠就会中断下载书籍,所以我就把自动休眠设置为了「永不」)
果然,我把超时时间设置为一个值,例如15分钟,再重新打开阅读,就能正常打开书籍了!!!
另外请教一下gedoor,我尝试编译源码,但是提示 File google-services.json is missing. The Google Services Plugin cannot function without it. 这个该怎么破啊?可以私信我一个这个文件吗?
from mybookshelf.
from mybookshelf.
谢谢答复,注释掉上面2行后,编译不报错了,但是在 build apk的时候又报了个错:
Error:FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:validateSigningDebug'.
Keystore file '/Users/xukong/develop/java/java/MyBookshelf/app/s.keystore.temp' not found for signing config 'myConfig'.
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
BUILD FAILED in 8s
from mybookshelf.
找到解决方法了,apk成功生成了
signingConfigs {
release {
storeFile file("ouman.jks")
storePassword "com.ouman.car "
keyAlias "ouman"
keyPassword "com.ouman.car "
}
}
buildTypes {
debug {
signingConfig signingConfigs.release
}
release {
signingConfig signingConfigs.release
}
}
是把上面这两段代码全都注释。
作者:哆啦U梦
来源:CSDN
原文:https://blog.csdn.net/u013952370/article/details/52923353
版权声明:本文为博主原创文章,转载请附上博文链接!
from mybookshelf.
from mybookshelf.
Related Issues (20)
- clone下来为何编译一直处于Gradle:Build model....., 一直不能编译成功 HOT 1
- 老铁能不能开发IOS版本呢
- 阅读
- 书源能解析带有js的规则吗 HOT 2
- 根目录的Fonts文件夹识别不了。 HOT 1
- 最新两个版本严重的用户体验问题 HOT 2
- 使用蓝牙共享上网时APP 无法更新数据, 提示无网络连接
- 最新几个版本tts初始化失败以及单个书源内校验问题
- 批量删除书籍
- 小米 11 pro 更新后无法读取本地文件 HOT 1
- div类型的表格怎么获取元素 HOT 1
- EPUB格式文件无法加载
- Nothing
- 换字体和vip标识出问题了
- 是否可以支持扫描录入书籍方式和记录书摘功能?
- 发现一个目录读取bug HOT 3
- Photo from Benny HOT 1
- web服务一点软件就闪退
- 定时朗读到期停止后, 通过耳机线控启动下一轮朗读, 持续时间只有一分钟
- 个别网站访问不了 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mybookshelf.