darryrzhong / android-mvvmcomponent-app Goto Github PK
View Code? Open in Web Editor NEWAndroid 组件化开源app -开眼短视频(OpenEyes)
Android 组件化开源app -开眼短视频(OpenEyes)
我修改 isBuildModule=true 之后单独运行各个模块 奔溃
![image](https://user-images.githubusercontent.com/9635493/85109784-79405180-b244-11ea-
9479-f6ae34b15d08.png)
个人中心点击收藏出现oom,调试后发现是登陆页面两张背景图导致的。将两张图置空后出现内存泄露。
我感觉你这个怎么有点mvp的意思,照理说mvvm不是应该view和viewModel解耦的吗,你怎么又把它耦合在一起
Could not find refresh-drawable-paint.aar 这是怎么回事?未解
单独运行 user模块,奔溃 ARouter::Init::Invoke init(context) first!
感觉不出 是mvvm架构,感觉有点乱
先进入APP点击一个卡片进入播放页,在播放页下面点击不同的播放卡片 ,点击之后推出当前播放页,在首页点击不同卡片会播放同一个视频。
【首页 - 推荐】加载不出来?
FAILURE: Build completed with 23 failures.
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.)
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.)
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.)
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.)
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.)
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.)
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.)
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.)
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.)
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.)
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.)
Compilation failed; see the compiler error output for details.
Compilation failed; see the compiler error output for details.
Compilation failed; see the compiler error output for details.
Compilation failed; see the compiler error output for details.
Compilation failed; see the compiler error output for details.
Compilation failed; see the compiler error output for details.
Compilation failed; see the compiler error output for details.
Compilation failed; see the compiler error output for details.
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.)
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.)
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.)
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
构建失败,不知道什么原因
刚开始报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里面有多个请求,应该怎么处理?
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);
}
}
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.