suming77 / sumtea_android Goto Github PK
View Code? Open in Web Editor NEW基于组件化+模块化+Kotlin+协程+Flow+Retrofit+Jetpack+MVVM+短视频架构实现的WanAndroid客户端
Home Page: https://juejin.cn/user/1654096907477549/posts
基于组件化+模块化+Kotlin+协程+Flow+Retrofit+Jetpack+MVVM+短视频架构实现的WanAndroid客户端
Home Page: https://juejin.cn/user/1654096907477549/posts
大佬能不能做一期貨拉拉路由的
你们的xml的预览界面能正常显示吗,我的为什么只显示包名,用了最新的as也不行
//compileOnly rootProject.depsLibs.constraintlayout
implementation rootProject.depsLibs.constraintlayout
点击短视频闪退: java.lang.AbstractMethodError: abstract method "void com.google.android.exoplayer2.Player$Listener.onSurfaceSizeChanged(int, int)" at com.google.android.exoplayer2.ExoPlayerImpl.lambda$maybeNotifySurfaceSizeChanged$27(ExoPlayerImpl.java:2596) at com.google.android.exoplayer2.ExoPlayerImpl$$ExternalSyntheticLambda23.invoke(Unknown Source:6) at com.google.android.exoplayer2.util.ListenerSet$ListenerHolder.invoke(ListenerSet.java:330) at com.google.android.exoplayer2.util.ListenerSet.lambda$queueEvent$0(ListenerSet.java:214) at com.google.android.exoplayer2.util.ListenerSet$$ExternalSyntheticLambda1.run(Unknown Source:6) at com.google.android.exoplayer2.util.ListenerSet.flushEvents(ListenerSet.java:236) at com.google.android.exoplayer2.util.ListenerSet.sendEvent(ListenerSet.java:251) at com.google.android.exoplayer2.ExoPlayerImpl.maybeNotifySurfaceSizeChanged(ExoPlayerImpl.java:2595) at com.google.android.exoplayer2.ExoPlayerImpl.access$1800(ExoPlayerImpl.java:109) at com.google.android.exoplayer2.ExoPlayerImpl$ComponentListener.surfaceChanged(ExoPlayerImpl.java:2953) at android.view.SurfaceView.updateSurface(SurfaceView.java:916) at android.view.SurfaceView$2.onPreDraw(SurfaceView.java:180) at android.view.ViewTreeObserver.dispatchOnPreDraw(ViewTreeObserver.java:1088) at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:3248) at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:2121) at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:8554) at android.view.Choreographer$CallbackRecord.run(Choreographer.java:1073) at android.view.Choreographer.doCallbacks(Choreographer.java:897) at android.view.Choreographer.doFrame(Choreographer.java:824) at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:1058) at android.os.Handler.handleCallback(Handler.java:883) at android.os.Handler.dispatchMessage(Handler.java:100) at android.os.Looper.loop(Looper.java:238) at android.app.ActivityThread.main(ActivityThread.java:7823) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:532) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1028) 2023-05-16 17:10:01.999 1486-2247 OppoThermalStats system_server E Error getting package info: com.oppo.launcher 2023-05-16 17:10:02.045 1486-1756 InputDispatcher system_server E channel '7ea2186 com.sum.tea/com.sum.video.VideoPlayActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 2023-05-16 17:10:02.045 1486-1756 InputDispatcher system_server E channel '3b301c8 com.sum.tea/com.sum.video.VideoPlayActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 2023-05-16 17:10:02.045 1486-1756 InputDispatcher system_server E channel 'bee977c com.sum.tea/com.sum.main.MainActivity (server)' ~ Channel is unrecoverably broken and will be disposed! 2023-05-16 17:10:02.070 21331-21352 SafeCenter...ityMonitor com.coloros.persist.system E onProcessDied com.sum.tea
除了app壳下面所有module的xml中使用ConstraintLayout 布局无法预览。报错missing class。但是可以点击ConstraintLayout标签进入源码,只是无法预览,主module可以
说这个app高危
navigation 最新版本是2.5.2,FragmentNavigator 源码已经改变,不是在navigate中切换Fragment 了,原来的replace 替换为show等方式失效,需要做版本兼容
自定义FragmentNavigator能适配一下最新版本吗(navigation 2.6.0)?能更新一下吗在线等
Process: com.sum.tea, PID: 15209
kotlin.UninitializedPropertyAccessException: lateinit property mainService has not been initialized
at com.sum.common.provider.MainServiceProvider.getMainService(MainServiceProvider.kt:18)
at com.sum.common.provider.MainServiceProvider.toMain(MainServiceProvider.kt:30)
at com.sum.common.provider.MainServiceProvider.toMain$default(MainServiceProvider.kt:29)
at com.sum.main.ui.SplashActivity$initView$3.invoke(SplashActivity.kt:29)
at com.sum.main.ui.SplashActivity$initView$3.invoke(SplashActivity.kt:26)
at com.sum.framework.ext.FlowExtKt$countDownCoroutines$3.invokeSuspend(FlowExt.kt:33)
at com.sum.framework.ext.FlowExtKt$countDownCoroutines$3.invoke(Unknown Source:9)
at com.sum.framework.ext.FlowExtKt$countDownCoroutines$3.invoke(Unknown Source:6)
at kotlinx.coroutines.flow.FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1.collect(SafeCollector.common.kt:128)
at kotlinx.coroutines.flow.FlowKt__EmittersKt$onCompletion$$inlined$unsafeFlow$1$1.invokeSuspend(Unknown Source:15)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTaskKt.resume(DispatchedTask.kt:234)
at kotlinx.coroutines.DispatchedTaskKt.dispatch(DispatchedTask.kt:166)
at kotlinx.coroutines.CancellableContinuationImpl.dispatchResume(CancellableContinuationImpl.kt:397)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl(CancellableContinuationImpl.kt:431)
at kotlinx.coroutines.CancellableContinuationImpl.resumeImpl$default(CancellableContinuationImpl.kt:420)
at kotlinx.coroutines.CancellableContinuationImpl.resumeUndispatched(CancellableContinuationImpl.kt:518)
at kotlinx.coroutines.android.HandlerContext$scheduleResumeAfterDelay$$inlined$Runnable$1.run(Runnable.kt:19)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:8061)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:703)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:911)
Suppressed: kotlinx.coroutines.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@8340837, Dispatchers.Main.immediate]
哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow哪里用到 了Flow
不能组件模式和基础模式切换
SplashActivity的倒计时功能没有效果,通过打断点发现
mBinding.tvSkip.onClick {
MainServiceProvider.toMain(this)
}
在没有点击的情况下被触发了
大佬,能不能把逻辑层拆分出来,可以直接依赖使用
在发出一个请求时,数据还没返回,马上进行下一个请求,直接打断上一个请求,使用最新请求的数据
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.