Giter Site home page Giter Site logo

不能打开书籍看书! about mybookshelf HOT 6 CLOSED

gedoor avatar gedoor commented on August 24, 2024
不能打开书籍看书!

from mybookshelf.

Comments (6)

gedoor avatar gedoor commented on August 24, 2024

缓存目录下的错误报告发出来看看

from mybookshelf.

xukongyang avatar xukongyang commented on August 24, 2024

首先谢谢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.

gedoor avatar gedoor commented on August 24, 2024

from mybookshelf.

xukongyang avatar xukongyang commented on August 24, 2024

谢谢答复,注释掉上面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.

xukongyang avatar xukongyang commented on August 24, 2024

找到解决方法了,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.

gedoor avatar gedoor commented on August 24, 2024

from mybookshelf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.