Ysj001 / DoKitPluginCompat

解决 DoKit 插件在 AGP 8+ 上无法使用的问题。
Apache License 2.0
12 stars 1 forks source link

module-info.class 编译报错,显示文件已存在 #1

Closed daimaxiaohe closed 7 months ago

daimaxiaohe commented 7 months ago

`=================== transform start ===================

gradle version: 8.0 variant: debug loggerLevel: 2 apply modifier: com.ysj.lib.dokit.plugin.compat.DoKitTransformCompat DoKitTransformCompat initialize time:24 ms

Task :app:mergeDebugJavaResource

Task :app:debugBCUTransformTask

bcu scan time: 10269 ms [dokit plugin]===>app->hook glide succeed: com.bumptech.glide.request.SingleRequest(Landroid/content/Context;Lcom/bumptech/glide/GlideContext;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Class;Lcom/bumptech/glide/request/BaseRequestOptions;IILcom/bumptech/glide/Priority;Lcom/bumptech/glide/request/target/Target;Lcom/bumptech/glide/request/RequestListener;Ljava/util/List;Lcom/bumptech/glide/request/RequestCoordinator;Lcom/bumptech/glide/load/engine/Engine;Lcom/bumptech/glide/request/transition/TransitionFactory;Ljava/util/concurrent/Executor;)V [dokit plugin]===>hook loadUrl() all com.didichuxing.doraemonkit.kit.webview.CommWebViewFragment ^com.didichuxing.doraemonkit.kit.core.BaseFragment^com/didichuxing/doraemonkit/widget/webview/MyWebView :: loadUrl , (Ljava/lang/String;)V ,182 [dokit plugin]===>app->hook URL#openConnection method succeed in : com.didichuxing.doraemonkit.util.FileUtilsgetFileLength(Ljava/lang/String;)J [dokit plugin]===>app->insert map to the DoKitReal pluginConfig succeed [dokit plugin]===>app->insert map to the DoKitReal initThirdLibraryInfo succeed [dokit plugin]===>hook loadUrl() all com.didichuxing.doraemonkit.util.DoKitWebUtil$1 ^java.lang.Object^android/webkit/WebView :: loadUrl , (Ljava/lang/String;)V ,182 [dokit plugin]===>app->hook WebView#loadurl method succeed in : com.didichuxing.doraemonkit.util.DoKitWebUtil$1run()V | android/webkit/WebView [dokit plugin]===>app->hook OkhttpClient succeed: okhttp3.OkHttpClient(Lokhttp3/OkHttpClient$Builder;)V [dokit plugin]===>hook loadUrl() all xxx.xxx.project_framework.widget.webview.BaseJsAccessEntrace ^java.lang.Object^com/tencent/smtt/sdk/WebView :: loadUrl , (Ljava/lang/String;)V ,182 [dokit plugin]===>app->hook WebView#loadurl method succeed in : xxx.xxx.project_framework.widget.webview.BaseJsAccessEntraceloadJs(Ljava/lang/String;)V | com/tencent/smtt/sdk/WebView [dokit plugin]===>hook loadUrl() all com.didichuxing.doraemonkit.widget.webview.MyWebView ^android.webkit.WebView^android/webkit/WebView :: loadUrl , (Ljava/lang/String;)V ,183 [dokit plugin]===>app->hook WebView#loadurl method succeed in : com.didichuxing.doraemonkit.widget.webview.MyWebViewloadUrl(Ljava/lang/String;)V | android/webkit/WebView [dokit plugin]===>hook loadUrl() all xxx.xxx.lib_common.ui.fra.WebpageFra ^xxx.xxx.project_framework.base.fragment.BaseFra^xxx/xxx/lib_common/widget/webview/X5WebView :: loadUrl , (Ljava/lang/String;)V ,182 [dokit plugin]===>app->hook URL#openConnection method succeed in : com.bumptech.glide.load.data.HttpUrlFetcher$DefaultHttpUrlConnectionFactorybuild(Ljava/net/URL;)Ljava/net/HttpURLConnection; [dokit plugin]===>hook loadUrl() all com.didichuxing.doraemonkit.kit.webdoor.WebDoorDefaultFragment ^com.didichuxing.doraemonkit.kit.core.BaseFragment^android/webkit/WebView :: loadUrl , (Ljava/lang/String;)V ,182 [dokit plugin]===>app->hook WebView#loadurl method succeed in : com.didichuxing.doraemonkit.kit.webdoor.WebDoorDefaultFragmentonViewCreated(Landroid/view/View;Landroid/os/Bundle;)V | android/webkit/WebView [dokit plugin]===>app->hook URL#openConnection method succeed in : com.didichuxing.doraemonkit.util.HttpsUtildoHttpAction(Ljava/lang/String;ZZLjava/lang/String;)Ljava/lang/String; [dokit plugin]===>app->hook URL#openConnection method succeed in : com.didichuxing.doraemonkit.picasso.UrlConnectionDownloaderopenConnection(Landroid/net/Uri;)Ljava/net/HttpURLConnection; DoKitTransformCompat process time:338 ms bcu modify time: 339 ms bcu transform output time: 2233 ms bcu clean not need output time: 0 ms total process time: 13863 ms bcu transform output /Users/projectName/app/build/intermediates/classes/debug/ALL/debugBCUTransformTask/classes.jar bcu not need output /Users/projectName/app/build/bcu/debugBCUTransformTaskNotNeed

=================== transform end ===================

Task :app:debugBCUAppendTask

BCU append input ---> /Users/projectName/app/build/bcu/debugBCUTransformTaskNotNeed BCU append output ---> /Users/projectName/app/build/intermediates/classes/debug/debugBCUAppendTask BCU append isIncremental ---> false BCU append removed group:0 , size:0 BCU append modified group:0 , size:0 BCU append added group:275 , size:27467

Task :app:debugBCUAppendTask FAILED

FAILURE: Build failed with an exception.

Ysj001 commented 7 months ago

已经在 BCU 2.1.1 中兼容 module-info.class 问题,更新依赖即可