1.
Error:Execution failed for task ':app:mergeDebugResources'
或
Error:java.util.concurrent.ExecutionException:com.android.ide.common.process.ProcessException:
这个问题是Android打包的时候出现的问题:原因是你的某些图片格式不对(例如:1.强转图片格式:jpg强转成png, png强转成jpg等。 2. 图片命名不对,图片一般命名为 stamp_icon.png).
2.
Error:A problem occurred configuring root project 'rootman'.
Could not resolve all dependencies for configuration ':classpath'.
Timeout waiting to lock artifact cache (/Users/xxxx/.gradle/caches/modules-2). It is currently in use by another Gradle instance.
Owner PID: 78970
Our PID: 85378
Owner Operation:
Our operation:
Lock file: /Users/xxxx/.gradle/caches/modules-2/modules-2.lock
Error:A problem occurred configuring root project 'rootman'.
Timeout waiting to lock jars (/Users/xxxx/.gradle/caches/jars-2). It is currently in use by another Gradle instance.
Owner PID: 78970
Our PID: 85717
Owner Operation:
Our operation:
Lock file: /Users/xxxx/.gradle/caches/jars-2/jars-2.lock
出现上面两种情况(当前是Mac电脑,所以文件路径是这样的),
解决办法:在这个 /Users/xxxx/.gradle/caches/文件夹下删除 重复的jars,例如会出现 jars-1、jars-2,这种的。
3
Error:Could not create service of type FileCollectionSnapshotterRegistry using TaskExecutionServices.createFileCollectionSnapshotterRegistry().
Could not create service of type CachingFileHasher using TaskExecutionServices.createFileSnapshotter().
解决办法: Android Studio -> File -> Invalidate Caches and Restart
4
0/ com. xxx. xxxx E/JavaBinder: !U! FAILED BINDER TRANSACTION !U! (parcel size = 554788)
java.lang.Runt imeException: android.os.Transact ionTooLargeException data parcel size 554788 bytes
出现上面两种错误情况:1), Intent传参超过1M,一般超过1M大部分传图片了,或者很多字符串,2), 从当前页分享,或者其他跳出A客户端到B客户端的行为,跳出A客户端之后A客户端奔溃,说明A客户端的当前页内容过多,已超出系统对A客户端可缓存内容的界限。
解决办法:检查A客户端当前页面数据吧
5
Error:Could not create service of type FileCollectionSnapshotterRegistry using TaskExecutionServices.createFileCollectionSnapshotterRegistry().
Could not create service of type CachingFileHasher using TaskExecutionServices.createFileSnapshotter().
解决办法:删除项目根目录下的 .gradle文件
6
当前环境:
Android Studio 3.4
buildToolsVersion = "28.0.3"
buildToolsVersion = "28.0.3"
classpath 'com.android.tools.build:gradle:3.3.0'
distributionUrl=https://services.gradle.org/distributions/gradle-4.10.2-all.zip
react native 0.59.9
问题:
AndroidRuntime: FATAL EXCEPTION: mqt_native_modules
java.lang.NoClassDefFoundError: Failed resolution of: Landroidx/core/util/Pools$SynchronizedPool;
at com.facebook.imagepipeline.platform.PlatformDecoderFactory.buildPlatformDecoder(PlatformDecoderFactory.java:30)
at com.facebook.imagepipeline.core.ImagePipelineFactory.getPlatformDecoder(ImagePipelineFactory.java:304)
at com.facebook.imagepipeline.core.ImagePipelineFactory.getPlatformBitmapFactory(ImagePipelineFactory.java:296)
at com.facebook.imagepipeline.core.ImagePipelineFactory.getAnimatedFactory(ImagePipelineFactory.java:159)
at com.facebook.imagepipeline.core.ImagePipelineFactory.getImageDecoder(ImagePipelineFactory.java:219)
at com.facebook.imagepipeline.core.ImagePipelineFactory.getProducerFactory(ImagePipelineFactory.java:319)
at com.facebook.imagepipeline.core.ImagePipelineFactory.getProducerSequenceFactory(ImagePipelineFactory.java:350)
at com.facebook.imagepipeline.core.ImagePipelineFactory.getImagePipeline(ImagePipelineFactory.java:276)
at com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilderSupplier.<init>(PipelineDraweeControllerBuilderSupplier.java:51)
at com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilderSupplier.<init>(PipelineDraweeControllerBuilderSupplier.java:42)
at com.facebook.drawee.backends.pipeline.PipelineDraweeControllerBuilderSupplier.<init>(PipelineDraweeControllerBuilderSupplier.java:35)
at com.facebook.drawee.backends.pipeline.Fresco.initializeDrawee(Fresco.java:79)
at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:72)
at com.facebook.drawee.backends.pipeline.Fresco.initialize(Fresco.java:44)
at com.facebook.react.modules.fresco.FrescoModule.initialize(FrescoModule.java:105)
at com.facebook.react.bridge.ModuleHolder.doInitialize(ModuleHolder.java:223)
at com.facebook.react.bridge.ModuleHolder.markInitializable(ModuleHolder.java:98)
at com.facebook.react.bridge.NativeModuleRegistry.notifyJSInstanceInitialized(NativeModuleRegistry.java:102)
at com.facebook.react.bridge.CatalystInstanceImpl$2.run(CatalystInstanceImpl.java:405)
at android.os.Handler.handleCallback(Handler.java:790)
at android.os.Handler.dispatchMessage(Handler.java:99)
at com.facebook.react.bridge.queue.MessageQueueThreadHandler.dispatchMessage(MessageQueueThreadHandler.java:29)
at android.os.Looper.loop(Looper.java:192)
at com.facebook.react.bridge.queue.MessageQueueThreadImpl$4.run(MessageQueueThreadImpl.java:232)
at java.lang.Thread.run(Thread.java:764)
解决办法:
这个问题在我这边是为因:
implementation 'com.facebook.fresco:animated-gif:2.0.0'
这个依赖的问题,将这个依赖改为下面这样就好
implementation 'com.facebook.fresco:animated-gif:1.10.0'
------(未完待续)