Giter Club home page Giter Club logo

android-mvvmcomponent-app's Introduction

一款模仿 Eyepetizer | 开眼视频的 开源app

  • 这是一个完全模仿 开眼视频的开源Demo,个人非常喜欢这款app 的UI 风格,由此第二次模仿该app进行相关技术的学习与整合,

  • 废话不多说,直接上图 ,不论是商业项目还是开源app,首先肯定是看眼缘

效果图:

app_02.png app_03.png app_04.png
app_05.png app_06.png app_07.png
app_08.png app_09.png app_10.png

图片加载不出来?附上简书地址

项目结构

该开源项目采用组件化的方式开发,使用MVVM + AndroidX + jetpack 组件为基本架构进行开发。

  • 项目结构图

app_12.png

  • app 架构图

app_os.png

app 功能介绍

当然由于是个人闲暇时间基于兴趣开发的,没有UI 小姐姐 和测试小姐姐的陪伴,自然存在许些缺陷,当然写这个项目更多的是为了学习和锻炼app架构搭建的思维,希望能够帮到刷到这个博文的小伙伴,一起学习一起进步。

功能方面,想了想觉得还是没啥好说的,就是UI 上显示的那样,相信在座的各位看官都是熟的不能再熟了,

app 使用技术介绍

  • Mvvm 架构设计 关于各种mvx 的区别,我就不一一介绍了,上Google 搜一下就好,关于项目中使用的mvvm设计封装,请移步 这里 ;代码是最好的老师,直接看源码吧。

  • Android X 这个也没啥好说的,就是android Support 库的升级迁移版而已,现在新项目肯定都是直接androidX了,对Android X 不熟悉的小伙伴,请移步 官方介绍

  • jetpack 这个也没啥好说的,jetpack就是Google推出的一套组件开发库,直接上图可能更好, 官方介绍

基本最主要使用的就是这些了 jetpack

app 第三方的依赖

  • RxEasyHttp RxEasyHttp是一款github上开源的RxJava2+Retrofit2实现简单易用的网络请求框架,在本人发现并观摩其源码和设计原理后,发现着实写的不错,各种业务场景基本都设计到了,api 设计的也不错,当然也存在一些瑕疵,所以实际项目中还需根据自己的业务需求进行二次开发,推荐给各位看官RxEasyHttp

  • Loadsir loadsir是一个app 页面状态管理的第三方库,也非常得实用,用来控制app 内的加载页面 、加载错误页面、空页面显示,点击重试等,从此告别自己控制网络加载失败等页面 show 、 hint 操作 和ViewStub等的控制, 可以基于自己的业务进行基类封装,具体请看项目base库中activity 和fragment 基类的封装。推荐给各位看官 Loadsir

  • mmkv mmkv 是腾讯开源的一个轻量级的存储库,用来代替SharedPreferences 再好不过了,具体使用请看官方介绍

  • BaseRecyclerViewAdapterHelper 相信对于这个库大家应该是非常熟悉了吧,基本做android 开发的都用过吧,不多说了

  • SmartRefreshLayout 这个库和上面那个库一样,用的非常多,

  • immersionbar 实现沉浸式状态栏的一个第三方库,也是非常常用

  • glide 图片加载库

  • rxpermissions 权限加载库

  • logger 日志打印库,打出来的日志格式看得比较舒服

  • utilcodex 一个android 工具库,里面有非常多的工具类,当然实际项目用不到这么多,所以可以根据需求copy代码就好,不用集成

  • BannerViewPager 一个第三方轮播图的库,这个库比较新,所以start数比较少,但是挺好用,推荐

  • PagerBottomTabStrip 一个第三方导航库,app中的底部导航就是基于这个库,挺好用,自带小红点管理

  • gsyVideoPlayer 一个第三方视频播放库,基于bilibili 开源的 ijkplayer,可自定义性也还不错, 主要使用这个库实现类似微博等视频列表根据滚动判断自动播放,

项目Api

声明 ,项目中所有api接口都是抓取自开眼app,所有版权均归属开眼app所有,仅供学习借鉴使用,请勿用做商业用途,若有侵权,请联系作者删除。

首页

1.发现更多

2.每日推荐

3.日报精选

社区

1.推荐

2.关注

通知

1.主题

2.通知

3.互动

视频详情页

1.相关推荐

参数说明 说明 是否必须 默认值
id 当前播放视频的id,从跳转页面视频item中获取
  1. 评论
参数说明 说明 是否必须 默认值
videoId 当前播放视频的id,从跳转页面视频item中获取

apk下载

安装密码:darryrzhong

项目地址

欢迎关注作者darryrzhong,更多干货等你来拿哟.

请赏个小红心!因为你的鼓励是我写作的最大动力!

更多精彩文章请关注

android-mvvmcomponent-app's People

Contributors

darryrzhong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

android-mvvmcomponent-app's Issues

Execution failed for JetifyTransform:

FAILURE: Build completed with 23 failures.

1: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':module-main:dataBindingMergeDependencyArtifactsDebug'.

Could not resolve all files for configuration ':module-main:debugCompileClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-databinding}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • 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.
    ==============================================================================

2: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':module-main:dataBindingMergeGenClassesDebug'.

Could not resolve all files for configuration ':module-main:debugCompileClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-databinding-class-log}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • 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.
    ==============================================================================

3: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':module-main:generateDebugRFile'.

Could not resolve all files for configuration ':module-main:debugCompileClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-symbol-with-package-name}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • 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.
    ==============================================================================

4: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeDebugResources'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-res}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • 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.
    ==============================================================================

5: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:processDebugManifest'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-manifest}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • 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.
    ==============================================================================

6: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeDebugAssets'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-assets}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • 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.
    ==============================================================================

7: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkDebugDuplicateClasses'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-classes, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • 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.
    ==============================================================================

8: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:desugarDebugFileDependencies'.

Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=processed-jar}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • 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.
    ==============================================================================

9: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:mergeDebugAndroidTestAssets'.

Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-assets}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • 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.
    ==============================================================================

10: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkDebugAndroidTestDuplicateClasses'.

Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-classes, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • 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.
    ==============================================================================

11: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':app:desugarDebugAndroidTestFileDependencies'.

Could not resolve all files for configuration ':app:debugAndroidTestRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=processed-jar}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • 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.
    ==============================================================================

12: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':library-base:compileDebugUnitTestJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • 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.
    ==============================================================================

13: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':library-base:compileDebugAndroidTestJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • 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.
    ==============================================================================

14: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':library-common:compileDebugUnitTestJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • 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.
    ==============================================================================

15: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':library-common:compileDebugAndroidTestJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • 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.
    ==============================================================================

16: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':library-network:compileDebugUnitTestJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • 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.
    ==============================================================================

17: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':library-network:compileDebugAndroidTestJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • 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.
    ==============================================================================

18: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':library-video:compileDebugUnitTestJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • 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.
    ==============================================================================

19: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':library-video:compileDebugAndroidTestJavaWithJavac'.

Compilation failed; see the compiler error output for details.

  • 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.
    ==============================================================================

20: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':module-main:processDebugAndroidTestManifest'.

Could not resolve all files for configuration ':module-main:debugAndroidTestRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-manifest}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • 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.
    ==============================================================================

21: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':module-main:mergeDebugAndroidTestAssets'.

Could not resolve all files for configuration ':module-main:debugAndroidTestRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-assets}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • 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.
    ==============================================================================

22: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':module-main:checkDebugAndroidTestDuplicateClasses'.

Could not resolve all files for configuration ':module-main:debugAndroidTestRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=android-classes, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • 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.
    ==============================================================================

23: Task failed with an exception.

  • What went wrong:
    Execution failed for task ':module-main:desugarDebugAndroidTestFileDependencies'.

Could not resolve all files for configuration ':module-main:debugAndroidTestRuntimeClasspath'.
Failed to transform artifact 'annotation-experimental.aar (androidx.annotation:annotation-experimental:1.4.0)' to match attributes {artifactType=processed-jar}.
> Execution failed for JetifyTransform: /home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar.
> Failed to transform '/home/ts/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-experimental/1.4.0/c7a2038d831d0cfbfb9a440890b287c2e839ecf/annotation-experimental-1.4.0.aar' using Jetifier. Reason: Unsupported class file major version 61. (Run with --stacktrace for more details.)

  • 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 2m 27s
666 actionable tasks: 646 executed, 20 up-to-date

构建失败,不知道什么原因

进入直接OOM了

Process: com.mvvm.mvvmcomponent, PID: 31392
java.lang.OutOfMemoryError: Failed to allocate a 24037772 byte allocation with 16777216 free bytes and 19MB until OOM
at dalvik.system.VMRuntime.newNonMovableArray(Native Method)
at android.graphics.BitmapFactory.nativeDecodeAsset(Native Method)
at android.graphics.BitmapFactory.decodeStream(BitmapFactory.java:609)
at android.graphics.BitmapFactory.decodeResourceStream(BitmapFactory.java:444)
at android.graphics.drawable.Drawable.createFromResourceStream(Drawable.java:1080)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2650)
at android.content.res.Resources.loadDrawable(Resources.java:2555)
at android.content.res.Resources.getDrawable(Resources.java:814)
at android.content.res.XResources.getDrawable(XResources.java:790)
at android.content.Context.getDrawable(Context.java:458)
at androidx.core.content.ContextCompat.getDrawable(ContextCompat.java:455)
at androidx.appcompat.widget.ResourceManagerInternal.getDrawable(ResourceManagerInternal.java:144)
at androidx.appcompat.widget.ResourceManagerInternal.getDrawable(ResourceManagerInternal.java:132)
at androidx.appcompat.content.res.AppCompatResources.getDrawable(AppCompatResources.java:104)
at androidx.appcompat.widget.AppCompatImageHelper.setImageResource(AppCompatImageHelper.java:86)
at androidx.appcompat.widget.AppCompatImageView.setImageResource(AppCompatImageView.java:94)
at com.drz.main.viewholder.CustomPageViewHolder.onBind(CustomPageViewHolder.java:32)
at com.drz.main.viewholder.CustomPageViewHolder.onBind(CustomPageViewHolder.java:20)
at com.zhpan.bannerview.adapter.BannerPagerAdapter.createView(BannerPagerAdapter.java:92)
at com.zhpan.bannerview.adapter.BannerPagerAdapter.getView(BannerPagerAdapter.java:84)
at com.zhpan.bannerview.adapter.BannerPagerAdapter.instantiateItem(BannerPagerAdapter.java:56)
at androidx.viewpager.widget.ViewPager.addNewItem(ViewPager.java:1010)
at androidx.viewpager.widget.ViewPager.populate(ViewPager.java:1224)
at androidx.viewpager.widget.ViewPager.populate(ViewPager.java:1092)
at androidx.viewpager.widget.ViewPager$3.run(ViewPager.java:273)

列表图片加载内存一直增加

@BindingAdapter使用,在列表中会存在内存一直增加,大佬这个是什么原因造成的呢,是不是因为@BindingAdapter对应的方法是静态的导致的。
@BindingAdapter("imageUrl")
public static void loadImage(ImageView imageView, String url) {
if (!TextUtils.isEmpty(url)) {
Glide.with(imageView.getContext())
.load(url)
.apply(RequestOptions.bitmapTransform(new RoundedCorners(40)))
.into(imageView);
}
}

点击不同的卡片播放同一个视频

先进入APP点击一个卡片进入播放页,在播放页下面点击不同的播放卡片 ,点击之后推出当前播放页,在首页点击不同卡片会播放同一个视频。

MVVM架构

我感觉你这个怎么有点mvp的意思,照理说mvvm不是应该view和viewModel解耦的吗,你怎么又把它耦合在一起

SmartRefreshLayout加载数据问题

我按的SmartRefreshLayout方式加载数据,showLoading();调用就会崩溃,LoadingCallback.class空指针,我找不到初始化的位置,还有就是加载数据采用Provider这个是有两种情况,第一种是数据显示不全
数据显示不全
; 第二种情况是加载完数据并显示成,但是我切换底部的菜单(模块)比如我从当前的消息界面切换到发现界面,或者其他界面后,再进入消息界面就无法显示数据。
成功显示数据
数据显示不全

请问大神我应该如何做呢?

运行一下午了还是不行

刚开始报The binary version of its metadata is 1.5.1, expected version is 1.1.16
我把kotlin改成1.5以后又报
No version of NDK matched the requested version 20.0.5594570. Versions available locally: 16.1.4479499

多个请求的问题

看到项目里面一个页面都是一个请求,如果一个activity里面有多个请求,应该怎么处理?

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.