didi / booster

🚀Optimizer for mobile applications
https://booster.johnsonlee.io
Apache License 2.0
4.89k stars 580 forks source link

Uncaught translation error: com.android.dx.cf.code.SimException: stack overflow #83

Open lixiangkai1987 opened 5 years ago

lixiangkai1987 commented 5 years ago

Please provide the following informations.

FAILURE: Build failed with an exception.

johnsonlee commented 5 years ago

能定位到是 transform 哪个 class 或者 jar 的时候异常的吗?

johnsonlee commented 5 years ago

试试:

./gradlew assembleRelease --info
lixiangkai1987 commented 5 years ago

Uncaught translation error: com.android.dx.cf.code.SimException: stack: overflow :app:transformClassesWithDexForBanmaRelease (Thread[Daemon worker Thread 3,5,main]) completed. Took 24.585 secs.

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 3m 47s 240 actionable tasks: 225 executed, 15 up-to-date AAPT2 aapt2-3.2.1-4818971-windows Daemon #0: shutdown AAPT2 aapt2-3.2.1-4818971-windows Daemon #1: shutdown AAPT2 aapt2-3.2.1-4818971-windows Daemon #2: shutdown VCS Checkout Cache (E:\Android\temp\Banma-hotfix\banma-v3.3\Android-Banma-Zwt.gradle\vcsWorkingDirs) has not been cleaned up in 4 days

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 3m 47s

lixiangkai1987 commented 5 years ago

加了--info,只能看到以下错误信息 Uncaught translation error: com.android.dx.cf.code.SimException: stack: overflow :app:transformClassesWithDexForBanmaRelease (Thread[Daemon worker Thread 3,5,main]) completed. Took 24.585 secs.

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 3m 47s 240 actionable tasks: 225 executed, 15 up-to-date AAPT2 aapt2-3.2.1-4818971-windows Daemon #0: shutdown AAPT2 aapt2-3.2.1-4818971-windows Daemon #1: shutdown AAPT2 aapt2-3.2.1-4818971-windows Daemon #2: shutdown VCS Checkout Cache (E:\Android\temp\Banma-hotfix\banma-v3.3\Android-Banma-Zwt.gradle\vcsWorkingDirs) has not been cleaned up in 4 days

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 3m 47s

lixiangkai1987 commented 5 years ago

Uncaught translation error: com.android.dx.cf.code.SimException: stack: overflow

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 51s 240 actionable tasks: 11 executed, 229 up-to-date

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 51s

lixiangkai1987 commented 5 years ago

16:11:18.194 [ERROR] [org.gradle.api.Project] Uncaught translation error: com.android.dex.util.ExceptionWithContext: Unexpected constant type 16:11:18.492 [null] [org.gradle.internal.progress.DefaultBuildOperationExecutor]

Task :app:transformClassesWithDexForBanmaRelease FAILED 16:11:18.194 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Completing Build operation 'Execute transform for :app:transformClassesWithDexForBanmaRelease' 16:11:18.195 [DEBUG] [org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository] Snapshotting property streamOutputFolder (OUTPUT) for task ':app:transformClassesWithDexForBanmaRelease' 16:11:18.196 [DEBUG] [org.gradle.api.internal.changedetection.state.CacheBackedTaskHistoryRepository] No discovered inputs for task ':app:transformClassesWithDexForBanmaRelease' 16:11:18.196 [DEBUG] [org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter] Removed task artifact state for {} from context. 16:11:18.196 [DEBUG] [org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter] Finished executing task ':app:transformClassesWithDexForBanmaRelease' 16:11:18.196 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Completing Build operation 'Task :app:transformClassesWithDexForBanmaRelease' 16:11:18.196 [null] [org.gradle.internal.progress.DefaultBuildOperationExecutor] 16:11:18.196 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Build operation 'Task :app:transformClassesWithDexForBanmaRelease' completed 16:11:18.196 [INFO] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] :app:transformClassesWithDexForBanmaRelease (Thread[Daemon worker Thread 5,5,main]) completed. Took 16.004 secs. 16:11:18.196 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1.13 completed (1 worker(s) in use) 16:11:18.196 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 5: released lock on root.1.13 16:11:18.196 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 5: released lock on : 16:11:18.196 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] Task worker [Thread[Daemon worker Thread 5,5,main]] finished, busy: 16.673 secs, idle: 34.869 secs 16:11:18.196 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] Task worker [Thread[Task worker for ':',5,main]] finished, busy: 29.86 secs, idle: 21.682 secs 16:11:18.196 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] Task worker [Thread[Task worker for ':' Thread 3,5,main]] finished, busy: 4.151 secs, idle: 47.391 secs 16:11:18.196 [DEBUG] [org.gradle.execution.taskgraph.DefaultTaskPlanExecutor] Task worker [Thread[Task worker for ':' Thread 2,5,main]] finished, busy: 0.387 secs, idle: 51.155 secs 16:11:18.197 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Completing Build operation 'Run tasks' 16:11:18.199 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 16:11:18.199 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] FAILURE: Build failed with an exception. 16:11:18.199 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 16:11:18.199 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] What went wrong: 16:11:18.199 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Execution failed for task ':app:transformClassesWithDexForBanmaRelease'. 16:11:18.199 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.la ng.RuntimeException: Translation has been interrupted 16:11:18.199 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 16:11:18.199 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Try: 16:11:18.199 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Run with --stacktrace option to get the stack trace. Run with --scan to get full insights. 16:11:18.199 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] 16:11:18.199 [ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] * Get more help at https://help.gradle.org 16:11:18.199 [WARN] [org.gradle.internal.featurelifecycle.LoggingDeprecatedFeatureHandler] Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings 16:11:18.199 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] 16:11:18.199 [ERROR] [org.gradle.internal.buildevents.BuildResultLogger] BUILD FAILED in 57s 16:11:18.199 [LIFECYCLE] [org.gradle.internal.buildevents.BuildResultLogger] 240 actionable tasks: 11 executed, 229 up-to-date 16:11:18.204 [INFO] [org.gradle.api.Task] AAPT2 aapt2-3.2.1-4818971-windows Daemon #0: shutdown 16:11:18.286 [DEBUG] [org.gradle.internal.work.DefaultWorkerLeaseService] Worker lease root.1 completed (0 worker(s) in use) 16:11:18.286 [DEBUG] [org.gradle.internal.resources.AbstractTrackedResourceLock] Daemon worker Thread 5: released lock on root.1 16:11:18.286 [DEBUG] [org.gradle.internal.progress.DefaultBuildOperationExecutor] Completing Build operation 'Run build' 16:11:18.293 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file content cache (E:\Android\temp\Banma-hotfix\banma-v3.3\Android-Banma-Zwt.gradle\4.6\fileContent) 16:11:18.293 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file content cache (E:\Android\temp\Banma-hotfix\banma-v3.3\Android-Banma-Zwt.gradle\4.6\fileContent). 16:11:18.294 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for task history cache (E:\Android\temp\Banma-hotfix\banma-v3.3\Android-Banma-Zwt.gradle\4.6\taskHistory) 16:11:18.294 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache taskHistory.bin (E:\Android\temp\Banma-hotfix\banma-v3.3\Android-Banma-Zwt.gradle\4.6\taskHistory\taskHistory.bin) 16:11:18.294 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on task history cache (E:\Android\temp\Banma-hotfix\banma-v3.3\Android-Banma-Zwt.gradle\4.6\taskHistory). 16:11:18.296 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for Build Output Cleanup Cache (E:\Android\temp\Banma-hotfix\banma-v3.3\Android-Banma-Zwt.gradle\buildOutputCleanup) 16:11:18.296 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache outputFiles.bin (E:\Android\temp\Banma-hotfix\banma-v3.3\Android-Banma-Zwt.gradle\buildOutputCleanup\outputFiles.bin) 16:11:18.296 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on Build Output Cleanup Cache (E:\Android\temp\Banma-hotfix\banma-v3.3\Android-Banma-Zwt.gradle\buildOutputCleanup). 16:11:18.299 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs) 16:11:18.301 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.CachedStoreFactory] Resolution result cache closed. Cache reads: 0, disk reads: 0 (avg: 0.0 secs, total: 0.0 secs) 16:11:18.306 [DEBUG] [org.gradle.api.internal.artifacts.ivyservice.resolveengine.store.ResolutionResultsStoreFactory] Deleted 8 resolution results binary files in 0.007 secs 16:11:18.307 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopping 0 deployment handles 16:11:18.307 [DEBUG] [org.gradle.deployment.internal.DefaultDeploymentRegistry] Stopped deployment handles 16:11:18.309 [INFO] [org.gradle.cache.internal.DefaultPersistentDirectoryCache] VCS Checkout Cache (E:\Android\temp\Banma-hotfix\banma-v3.3\Android-Banma-Zwt.gradle\vcsWorkingDirs) has not been cleaned up in 4 days 16:11:18.310 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache VCS Checkout Cache (E:\Android\temp\Banma-hotfix\banma-v3.3\Android-Banma-Zwt.gradle\vcsWorkingDirs) was closed 0 times. 16:11:18.316 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for Artifact transforms cache (D:\Program Files\Android\Android Studio\gradle\caches\transforms-1) 16:11:18.316 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on Artifact transforms cache (D:\Program Files\Android\Android Studio\gradle\caches\transforms-1). 16:11:18.317 [DEBUG] [org.gradle.cache.internal.DefaultCacheAccess] Cache Generated Gradle JARs cache (D:\Program Files\Android\Android Studio\gradle\caches\4.6\generated-gradle-jars) was closed 0 times. 16:11:18.318 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for file hash cache (E:\Android\temp\Banma-hotfix\banma-v3.3\Android-Banma-Zwt.gradle\4.6\fileHashes) 16:11:18.318 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache fileHashes.bin (E:\Android\temp\Banma-hotfix\banma-v3.3\Android-Banma-Zwt.gradle\4.6\fileHashes\fileHashes.bin) 16:11:18.318 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on file hash cache (E:\Android\temp\Banma-hotfix\banma-v3.3\Android-Banma-Zwt.gradle\4.6\fileHashes). 16:11:18.320 [DEBUG] [org.gradle.cache.internal.LockOnDemandCrossProcessCacheAccess] Releasing file lock for artifact cache (D:\Program Files\Android\Android Studio\gradle\caches\modules-2) 16:11:18.320 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-metadata.bin (D:\Program Files\Android\Android Studio\gradle\caches\modules-2\metadata-2.53\module-metadata.bin) 16:11:18.320 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-artifact.bin (D:\Program Files\Android\Android Studio\gradle\caches\modules-2\metadata-2.53\module-artifact.bin) 16:11:18.320 [DEBUG] [org.gradle.cache.internal.btree.BTreePersistentIndexedCache] Closing cache module-artifacts.bin (D:\Program Files\Android\Android Studio\gradle\caches\modules-2\metadata-2.53\module-artifacts.bin) 16:11:18.320 [DEBUG] [org.gradle.cache.internal.DefaultFileLockManager] Releasing lock on artifact cache (D:\Program Files\Android\Android Studio\gradle\caches\modules-2). 16:11:18.321 [DEBUG] [org.gradle.launcher.daemon.server.exec.ExecuteBuild] The daemon has finished executing the build. 16:11:21.293 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientInputForwarder] Dispatching close input message: org.gradle.launcher.daemon.protocol.CloseInput@3555b6df 16:11:22.063 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 14: dispatching class org.gradle.launcher.daemon.protocol.CloseInput 16:11:22.063 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClient] Received result Failure[value=org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: Execution failed for task ':a pp:transformClassesWithDexForBanmaRelease'.] from daemon DaemonInfo{pid=8584, address=[caf675bc-851d-4cad-9567-87ebc446715d port:59376, addresses:[/127.0.0.1, /0:0:0:0:0:0:0:1]], state=Idle, lastBusy=1563264162651, context=Defaul tDaemonContext[uid=a5632d3b-270b-42ad-9977-23df982b1675,javaHome=D:\Program Files\Java\jdk1.8.0_112,daemonRegistryDir=D:\Program Files\Android\Android Studio\gradle\daemon,pid=8584,idleTimeout=10800000,daemonOpts=-Xmx4608M,-Dfile .encoding=GBK,-Duser.country=CN,-Duser.language=zh,-Duser.variant]} (build should be done). 16:11:22.064 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: dispatching class org.gradle.launcher.daemon.protocol.Finished 16:11:22.065 [DEBUG] [org.gradle.launcher.daemon.client.DaemonClientConnection] thread 1: connection stop

johnsonlee commented 5 years ago

麻烦提供一下 build.gradle 引入的 booster 模块

lixiangkai1987 commented 5 years ago

classpath('com.tencent.tinker:tinker-patch-gradle-plugin:1.9.13.2') classpath "com.didiglobal.booster:booster-gradle-plugin:$booster_version" classpath "com.didiglobal.booster:booster-task-all:$booster_version" classpath "com.didiglobal.booster:booster-transform-lint:$booster_version" // classpath "com.didiglobal.booster:booster-transform-thread:$booster_version"

去掉 classpath "com.didiglobal.booster:booster-transform-lint:$booster_version"就可以编译通过

johnsonlee commented 5 years ago

classpath('com.tencent.tinker:tinker-patch-gradle-plugin:1.9.13.2') classpath "com.didiglobal.booster:booster-gradle-plugin:$booster_version" classpath "com.didiglobal.booster:booster-task-all:$booster_version" classpath "com.didiglobal.booster:booster-transform-lint:$booster_version" // classpath "com.didiglobal.booster:booster-transform-thread:$booster_version"

去掉 classpath "com.didiglobal.booster:booster-transform-lint:$booster_version"就可以编译通过

booster-transform-lint 这个模块并没有修改 bytecode

lixiangkai1987 commented 5 years ago

classpath('com.tencent.tinker:tinker-patch-gradle-plugin:1.9.13.2') classpath "com.didiglobal.booster:booster-gradle-plugin:$booster_version" classpath "com.didiglobal.booster:booster-task-all:$booster_version"

这样是可以编译通过,加了 classpath "com.didiglobal.booster:booster-transform-lint:$booster_version" 这个就编译不过了,现在只是加了这个在编译,线程那个已经注释掉了

johnsonlee commented 5 years ago

能提供一个 sample repo 方便我们重现问题么?

lixiangkai1987 commented 5 years ago

有时间我确认下,我刚开始以为是加入了微信的tinker影响,但是我写了demo试了是可以正常编译,另外一个可能影响的是阿里的ARoute,我项目中其他的库也都是常用的库,你们试过ARoute组件化么

johnsonlee commented 5 years ago

有时间我确认下,我刚开始以为是加入了微信的tinker影响,但是我写了demo试了是可以正常编译,另外一个可能影响的是阿里的ARoute,我项目中其他的库也都是常用的库,你们试过ARoute组件化么

目前没有,我们试试

johnsonlee commented 5 years ago

试试调整一下 apply plugin 的顺序,把 booster 放在其他插件的前面

lixiangkai1987 commented 5 years ago

apply plugin: 'com.android.application' apply plugin: 'com.didiglobal.booster'

目前就这两个,没有别的了

lixiangkai1987 commented 5 years ago

apply plugin: 'com.android.application' apply plugin: 'com.didiglobal.booster'

就只有这两个排序应该没啥影响吧

neighbWang commented 5 years ago

这两个排序没影响

lixiangkai1987 commented 5 years ago

Banma是其中的一个版本,我们项目是多渠道的

lixiangkai1987 commented 5 years ago

你们那边能复现这个问题或者知道是啥原因引起的不?

johnsonlee commented 5 years ago

你们那边能复现这个问题或者知道是啥原因引起的不?

我们复现不了

lixiangkai1987 commented 5 years ago

DexByteCodeConverter.lambda$dexInProcess$0(DexByteCodeConverter.java:168) 用JDK1.7也是可以的吧?

classpath 'com.android.tools.build:gradle:3.2.1' classpath 'com.tencent.tinker:tinker-patch-gradle-plugin:1.9.13.2' classpath "com.alibaba:arouter-register:1.0.2" classpath "com.didiglobal.booster:booster-gradle-plugin:$booster_version" classpath "com.didiglobal.booster:booster-task-all:$booster_version" // classpath "com.didiglobal.booster:booster-transform-activity-thread:$booster_version" // classpath "com.didiglobal.booster:booster-transform-media-player:$booster_version" // classpath "com.didiglobal.booster:booster-transform-shrink:$booster_version" // classpath "com.didiglobal.booster:booster-transform-lint:$booster_version" // classpath "com.didiglobal.booster:booster-transform-thread:$booster_version" // classpath "com.didiglobal.booster:booster-task-compression:$booster_version" // classpath "com.didiglobal.booster:booster-transform-webview:$booster_version" // classpath "com.didiglobal.booster:booster-transform-shared-preferences:$booster_version"

classpath "com.didiglobal.booster:booster-task-all:$booster_version" -- 只加这个是可以的

lixiangkai1987 commented 5 years ago

Uncaught translation error: com.android.dx.cf.code.SimException: stack: overflow Dex: Error converting bytecode to dex: Cause: java.lang.RuntimeException: Translation has been interrupted UNEXPECTED TOP-LEVEL EXCEPTION: java.lang.RuntimeException: Translation has been interrupted at com.android.dx.command.dexer.Main.processAllFiles(Main.java:614) at com.android.dx.command.dexer.Main.runMultiDex(Main.java:365) at com.android.dx.command.dexer.Main.runDx(Main.java:286) at com.android.dx.command.dexer.Main.main(Main.java:244) at com.android.dx.command.Main.main(Main.java:95) Caused by: java.lang.InterruptedException: Too many errors at com.android.dx.command.dexer.Main.processAllFiles(Main.java:606) ... 4 more

FAILURE: Build failed with an exception.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. See https://docs.gradle.org/4.6/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 3m 20s 255 actionable tasks: 29 executed, 226 up-to-date

johnsonlee commented 5 years ago

JDK 需要 1.8

lixiangkai1987 commented 5 years ago

compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } 必须要改成 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }

对吧

johnsonlee commented 5 years ago

compileOptions { sourceCompatibility JavaVersion.VERSION_1_7 targetCompatibility JavaVersion.VERSION_1_7 } 必须要改成 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }

对吧

compileOptions 跟 JDK version 不是一回事儿,因为 Booster 是 JDK 1.8 编译的,所以运行 gradlew 需要用 JDK 1.8,但是跟 app 用什么 Java 版本没有直接关系

JianGsHanz commented 5 years ago

有时间我确认下,我刚开始以为是加入了微信的tinker影响,但是我写了demo试了是可以正常编译,另外一个可能影响的是阿里的ARoute,我项目中其他的库也都是常用的库,你们试过ARoute组件化么

目前没有,我们试试

请问Booster兼容tinker吗,我这边测试都集成之后,tinker下发补丁不成功,不知道什么原因

cebaoyu commented 5 years ago

请问这个问题有找到route cause吗

johnsonlee commented 5 years ago

我们尝试用这个 https://github.com/boostersamples/app 工程复现此问题,但是未能成功复现

johnsonlee commented 4 years ago

2.3.0 版本中新增了 booster.transform.verify 选项开关,当出现 SimException 时,在 gradle.properties 中设置:

booster.transform.verify=true

来开启 Transform 校验功能,它可以辅助定位有问题的字节码,可以精确到指令级别