Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么在Android中集成这个库 #109

Open
TonywithZhang opened this issue May 5, 2023 · 1 comment
Open

怎么在Android中集成这个库 #109

TonywithZhang opened this issue May 5, 2023 · 1 comment

Comments

@TonywithZhang
Copy link

我app包下面新建了个目录叫configs,把firefly-log.xml放进去,然后再app module的build.gradle里面implementation files("configs/firefly-log.xml")。但是运行起来报错:
create system logger exception
javassist.NotFoundException: com.fireflysource.common.slf4j.LazyLogger
at javassist.ClassPool.get(ClassPool.java:430)
at com.fireflysource.common.bytecode.JavassistClassProxyFactory.buildClass(JavassistClassProxyFactory.java:153)
at com.fireflysource.common.bytecode.JavassistClassProxyFactory.createProxy(JavassistClassProxyFactory.java:34)
at com.fireflysource.common.sys.SystemLogger.create(SystemLogger.java:27)
at com.fireflysource.net.tcp.aio.AioTcpChannelGroup.(AioTcpChannelGroup.kt:20)
at com.fireflysource.net.CommonTcpChannelGroup.(CommonTcpChannelGroup.kt:22)
at com.fireflysource.$.tcpClient($.java:152)
at com.example.remotemanager.viewModels.pages.WifiViewModel$handleIntents$1$1$emit$2.invokeSuspend(WifiViewModel.kt:71)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
2023-05-05 15:23:15.672 11211-11349 AndroidRuntime com.example.remotemanager E FATAL EXCEPTION: DefaultDispatcher-worker-1
Process: com.example.remotemanager, PID: 11211
java.lang.ExceptionInInitializerError
at com.fireflysource.net.CommonTcpChannelGroup.(CommonTcpChannelGroup.kt:22)
at com.fireflysource.$.tcpClient($.java:152)
at com.example.remotemanager.viewModels.pages.WifiViewModel$handleIntents$1$1$emit$2.invokeSuspend(WifiViewModel.kt:71)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:42)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@67267c5, Dispatchers.IO]
Caused by: java.lang.IllegalStateException: javassist.NotFoundException: com.fireflysource.common.slf4j.LazyLogger
at com.fireflysource.common.sys.SystemLogger.create(SystemLogger.java:34)
at com.fireflysource.net.tcp.aio.AioTcpChannelGroup.(AioTcpChannelGroup.kt:20)
... 11 more
Caused by: javassist.NotFoundException: com.fireflysource.common.slf4j.LazyLogger
at javassist.ClassPool.get(ClassPool.java:430)
at com.fireflysource.common.bytecode.JavassistClassProxyFactory.buildClass(JavassistClassProxyFactory.java:153)
at com.fireflysource.common.bytecode.JavassistClassProxyFactory.createProxy(JavassistClassProxyFactory.java:34)
at com.fireflysource.common.sys.SystemLogger.create(SystemLogger.java:27)
... 12 more

@kevin0016
Copy link

kevin0016 commented May 5, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants