当我在模拟器中运行并安装我的应用程序时,它工作正常。然后我关闭应用程序并开始下一次它开始崩溃。 我试图阅读不同的问题,但对我没有帮助
程序读取epub / fb2文件并在屏幕上显示
很抱歉链接,但我无法正确格式化代码,问题是错误
堆栈跟踪
Process: net.textreaderfb2epub, PID: 6609
java.lang.RuntimeException: Unable to start activity ComponentInfo{net.textreaderfb2epub/net.textreaderfb2epub.fileBrowser.FileBrowser}: android.content.ActivityNotFoundException: Unable to find explicit activity class {net.textreaderfb2epub.textReader/net.textreaderfb2epub.textReader.TextReader}; have you declared this activity in your AndroidManifest.xml?
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2195)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.content.ActivityNotFoundException: Unable to find explicit activity class {net.textreaderfb2epub.textReader/net.textreaderfb2epub.textReader.TextReader}; have you declared this activity in your AndroidManifest.xml?
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:1628)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1424)
at android.app.Activity.startActivityForResult(Activity.java:3424)
at android.app.Activity.startActivityForResult(Activity.java:3385)
at android.app.Activity.startActivity(Activity.java:3627)
at android.app.Activity.startActivity(Activity.java:3595)
at net.textreaderfb2epub.fileBrowser.FileBrowser.onCreate(FileBrowser.java:115)
at android.app.Activity.performCreate(Activity.java:5231)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2159)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2245)
at android.app.ActivityThread.access$800(ActivityThread.java:135)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5017)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
at dalvik.system.NativeStart.main(Native Method) `
FileBrowser.java :
https://pastebin.com/E0SpgnN1
AndroidManifest.xml :
https://pastebin.com/rqnjqrFN
答案 0 :(得分:0)
无法找到显式活动类{net.textreaderfb2epub.textReader / net.textreaderfb2epub.textReader.TextReader};你有没有在AndroidManifest.xml中声明这个活动?
我愿意打赌你没有将#!groovy
pipeline {
agent any
// Set log rotation, timeout and timestamps in the console
options {
buildDiscarder(logRotator(numToKeepStr:'10'))
timeout(time: 5, unit: 'MINUTES')
}
stages {
stage('Initialize') {
steps {
sh '''
java -version
node --version
npm --version
'''
}
}
}
}
活动添加到TextReader
。尝试在AndroidManifest.xml
标记中添加类似内容:
<application>