Unity 接入Admob SDK 打Apk 过程中遇到的问题

2024-04-26 07:12

本文主要是介绍Unity 接入Admob SDK 打Apk 过程中遇到的问题,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

最近项目接入google Admod ,接入的过程比较顺利按照官网给的教程一步一步来就行,但是打包过程遇到了一些问题,记录如下:

Unity 版本:2023.3.4  Admob 版本:Version 9.1.0

第一个问题:

* What went wrong:
Execution failed for task ':launcher:checkReleaseDuplicateClasses'.
> 1 exception was raised by workers:
  java.lang.RuntimeException: Duplicate class _COROUTINE.ArtificialStackFrames found in modules jetified-kotlinx-coroutines-core-jvm-1.7.1.jar (org.jetbrains.kotlinx.kotlinx-coroutines-core-jvm-1.7.1.jar) and jetified-kotlinx-coroutines-core-jvm-1.7.1.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1)
  Duplicate class _COROUTINE.CoroutineDebuggingKt found in modules jetified-kotlinx-coroutines-core-jvm-1.7.1.jar (org.jetbrains.kotlinx.kotlinx-coroutines-core-jvm-1.7.1.jar) and jetified-kotlinx-coroutines-core-jvm-1.7.1.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1)
  Duplicate class _COROUTINE._BOUNDARY found in modules jetified-kotlinx-coroutines-core-jvm-1.7.1.jar (org.jetbrains.kotlinx.kotlinx-coroutines-core-jvm-1.7.1.jar) and jetified-kotlinx-coroutines-core-jvm-1.7.1.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1)
  Duplicate class _COROUTINE._CREATION found in modules jetified-kotlinx-coroutines-core-jvm-1.7.1.jar (org.jetbrains.kotlinx.kotlinx-coroutines-core-jvm-1.7.1.jar) and jetified-kotlinx-coroutines-core-jvm-1.7.1.jar (org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm:1.7.1)
  Duplicate class android.support.customtabs.ICustomTabsCallback found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.ICustomTabsCallback$Default found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.ICustomTabsCallback$Stub found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.ICustomTabsCallback$Stub$Proxy found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.ICustomTabsService found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.ICustomTabsService$Default found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.ICustomTabsService$Stub found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.ICustomTabsService$Stub$Proxy found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.IPostMessageService found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.IPostMessageService$Default found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.IPostMessageService$Stub found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.IPostMessageService$Stub$Proxy found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.trusted.ITrustedWebActivityCallback found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.trusted.ITrustedWebActivityCallback$Default found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.trusted.ITrustedWebActivityCallback$Stub found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.trusted.ITrustedWebActivityCallback$Stub$Proxy found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.trusted.ITrustedWebActivityService found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.trusted.ITrustedWebActivityService$Default found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.trusted.ITrustedWebActivityService$Stub found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.customtabs.trusted.ITrustedWebActivityService$Stub$Proxy found in modules browser-1.4.0-runtime.jar (androidx.browser:browser:1.4.0) and jetified-androidx.browser.browser-1.4.0-runtime.jar (:androidx.browser.browser-1.4.0:)
  Duplicate class android.support.v4.app.RemoteActionCompatParcelizer found in modules core-1.8.0-runtime.jar (androidx.core:core:1.8.0) and jetified-androidx.core.core-1.8.0-runtime.jar (:androidx.core.core-1.8.0:)
  Duplicate class android.support.v4.graphics.drawable.IconCompatParcelizer found in modules core-1.8.0-runtime.jar (androidx.core:core:1.8.0) and jetified-androidx.core.core-1.8.0-runtime.jar (:androidx.core.core-1.8.0:)
  Duplicate class android.support.v4.os.ResultReceiver found in modules core-1.8.0-runtime.jar (androidx.core:core:1.8.0) and jetified-androidx.core.core-1.8.0-runtime.jar (:androidx.core.core-1.8.0:)
  Duplicate class android.support.v4.os.ResultReceiver$1 found in modules core-1.8.0-runtime.jar (androidx.core:core:1.8.0) and jetified-androidx.core.core-1.8.0-runtime.jar (:androidx.core.core-1.8.0:)
  Duplicate class android.support.v4.os.ResultReceiver$MyResultReceiver found in modules core-1.8.0-runtime.jar (androidx.core:core:1.8.0) and jetified-androidx.core.core-1.8.0-runtime.jar (:androidx.core.core-1.8.0:)
  Duplicate class android.support.v4.os.ResultReceiver$MyRunnable found in modules core-1.8.0-runtime.jar (androidx.core:core:1.8.0) and jetified-androidx.core.core-1.8.0-runtime.jar (:androidx.core.core-1.8.0:)
  Duplicate class androidx.activity.Cancellable found in modules jetified-activity-1.0.0-runtime.jar (androidx.activity:activity:1.0.0) and jetified-androidx.activity.activity-1.0.0-runtime.jar (:androidx.activity.activity-1.0.0:)
  Duplicate class androidx.activity.ComponentActivity found in modules jetified-activity-1.0.0-runtime.jar (androidx.activity:activity:1.0.0) and jetified-androidx.activity.activity-1.0.0-runtime.jar (:androidx.activity.activity-1.0.0:)
  Duplicate class androidx.activity.ComponentActivity$1 found in modules jetified-activity-1.0.0-runtime.jar (androidx.activity:activity:1.0.0) and jetified-androidx.activity.activity-1.0.0-runtime.jar (:androidx.activity.activity-1.0.0:)
  Duplicate class androidx.activity.ComponentActivity$2 found in modules jetified-activity-1.0.0-runtime.jar (androidx.activity:activity:1.0.0) and jetified-androidx.activity.activity-1.0.0-runtime.jar (:androidx.activity.activity-1.0.0:)
  Duplicate class androidx.activity.ComponentActivity$3 found in modules jetified-activity-1.0.0-runtime.jar (androidx.activity:activity:1.0.0) and jetified-androidx.activity.activity-1.0.0-runtime.jar (:androidx.activity.activity-1.0.0:)
  Duplicate class androidx.activity.ComponentActivity$NonConfigurationInstances found in modules jetified-activity-1.0.0-runtime.jar (androidx.activity:activity:1.0.0) and jetified-androidx.activity.activity-1.0.0-runtime.jar (:androidx.activity.activity-1.0.0:)
  Duplicate class androidx.activity.ImmLeaksCleaner found in modules jetified-activity-1.0.0-runtime.jar (androidx.activity:activity:1.0.0) and jetified-androidx.activity.activity-1.0.0-runtime.jar (:androidx.activity.activity-1.0.0:)
  Duplicate class androidx.activity.OnBackPressedCallback found in modules jetified-activity-1.0.0-runtime.jar (androidx.activity:activity:1.0.0) and jetified-androidx.activity.activity-1.0.0-runtime.jar (:androidx.activity.activity-1.0.0:)
  Duplicate class androidx.activity.OnBackPressedDispatcher found in modules jetified-activity-1.0.0-runtime.jar (androidx.activity:activity:1.0.0) and jetified-androidx.activity.activity-1.0.0-runtime.jar (:androidx.activity.activity-1.0.0:)
  Duplicate class androidx.activity.OnBackPressedDispatcher$LifecycleOnBackPressedCancellable found in modules jetified-activity-1.0.0-runtime.jar (androidx.activity:activity:1.0.0) and jetified-androidx.activity.activity-1.0.0-runtime.jar (:androidx.activity.activity-1.0.0:)
  Duplicate class androidx.activity.OnBackPressedDispatcher$OnBackPressedCancellable found in modules jetified-activity-1.0.0-runtime.jar (androidx.activity:activity:1.0.0) and jetified-androidx.activity.activity-1.0.0-runtime.jar (:androidx.activity.activity-1.0.0:)
  Duplicate class androidx.activity.OnBackPressedDispatcherOwner found in modules jetified-activity-1.0.0-runtime.jar (androidx.activity:activity:1.0.0) and jetified-androidx.activity.activity-1.0.0-runtime.jar (:androidx.activity.activity-1.0.0:)
  Duplicate class androidx.annotation.OptIn found in modules jetified-androidx.annotation.annotation-experimental-1.1.0-runtime.jar (:androidx.annotation.annotation-experimental-1.1.0:) and jetified-annotation-experimental-1.1.0-runtime.jar (androidx.annotation:annotation-experimental:1.1.0)
  Duplicate class androidx.annotation.RequiresOptIn found in modules jetified-androidx.annotation.annotation-experimental-1.1.0-runtime.jar (:androidx.annotation.annotation-experimental-1.1.0:) and jetified-annotation-experimental-1.1.0-runtime.jar (androidx.annotation:annotation-experimental:1.1.0)
  Duplicate class androidx.annotation.RequiresOptIn$Level found in modules jetified-androidx.annotation.annotation-experimental-1.1.0-runtime.jar (:androidx.annotation.annotation-experimental-1.1.0:) and jetified-annotation-experimental-1.1.0-runtime.jar (androidx.annotation:annotation-experimental:1.1.0)
  Duplicate class androidx.annotation.experimental.Experimental found in modules jetified-androidx.annotation.annotation-experimental-1.1.0-runtime.jar (:androidx.annotation.annotation-experimental-1.1.0:) and jetified-annotation-experimental-1.1.0-runtime.jar (androidx.annotation:annotation-experimental:1.1.0)
  Duplicate class androidx.annotation.experimental.Experimental$Level found in modules jetified-androidx.annotation.annotation-experimental-1.1.0-runtime.jar (:androidx.annotation.annotation-experimental-1.1.0:) and jetified-annotation-experimental-1.1.0-runtime.jar (androidx.annotation:annotation-experimental:1.1.0)
  Duplicate class androidx.annotation.experimental.UseExperimental found in modules jetified-androidx.annotation.annotation-experimental-1.1.0-runtime.jar (:androidx.annotation.annotation-experimental-1.1.0:) and jetified-annotation-experimental-1.1.0-runtime.jar (androidx.annotation:annotation-experimental:1.1.0)
  Duplicate class androidx.appcompat.app.ActionBar found in modules appcompat-1.2.0-runtime.jar (androidx.appcompat:appcompat:1.2.0) and jetified-androidx.appcompat.appcompat-1.2.0-runtime.jar (:androidx.appcompat.appcompat-1.2.0:)
  Duplicate class androidx.appcompat.app.ActionBar$DisplayOptions found in modules appcompat-1.2.0-runtime.jar (androidx.appcompat:appcompat:1.2.0) and jetified-androidx.appcompat.appcompat-1.2.0-runtime.jar (:androidx.appcompat.appcompat-1.2.0:)
  Duplicate class androidx.appcompat.app.ActionBar$LayoutParams found in modules appcompat-1.2.0-runtime.jar (androidx.appcompat:appcompat:1.2.0) and jetified-androidx.appcompat.appcompat-1.2.0-runtime.jar (:androidx.appcompat.appcompat-1.2.0:)
  Duplicate class androidx.appcompat.app.ActionBar$NavigationMode found in modules appcompat-1.2.0-runtime.jar (androidx.appcompat:appcompat:1.2.0) and jetified-androidx.appcompat.appcompat-1.2.0-runtime.jar (:androidx.appcompat.appcompat-1.2.0:)
  Duplicate class androidx.appcompat.app.ActionBar$OnMenuVisibilityListener found in modules appcompat-1.2.0-runtime.jar (androidx.appcompat:appcompat:1.2.0) and jetified-androidx.appcompat.appcompat-1.2.0-runtime.jar (:androidx.appcompat.appcompat-1.2.0:)
  Duplicate class androidx.appcompat.app.ActionBar$OnNavigationListener found in modules appcompat-1.2.0-runtime.jar (androidx.appcompat:appcompat:1.2.0) and jetified-androidx.appcompat.appcompat-1.2.0-runtime.jar (:<message truncated>
看着很多,其实主要是多个jar包问题,问题出在导入admob的过程中把jar包依赖自动下载到了Plugins/Android 目录下了,正常情况下这个目录如果只有admob的话应该是这样

处理方法:把其他的jar包删除就可以了。

Execution failed for task ':launcher:processReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
   > Android resource linking failed
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:11: AAPT: error: attribute layout_constraintBottom_toBottomOf (aka com.*.*:layout_constraintBottom_toBottomOf) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:11: AAPT: error: attribute layout_constraintEnd_toEndOf (aka com.*.*:layout_constraintEnd_toEndOf) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:11: AAPT: error: attribute layout_constraintStart_toStartOf (aka com.*.*:layout_constraintStart_toStartOf) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:11: AAPT: error: attribute layout_constraintTop_toTopOf (aka com.*.*:layout_constraintTop_toTopOf) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:23: AAPT: error: attribute layout_constraintBottom_toTopOf (aka com.*.*:layout_constraintBottom_toTopOf) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:23: AAPT: error: attribute layout_constraintEnd_toEndOf (aka com.*.*:layout_constraintEnd_toEndOf) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:23: AAPT: error: attribute layout_constraintStart_toStartOf (aka com.*.*:layout_constraintStart_toStartOf) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:23: AAPT: error: attribute layout_constraintTop_toTopOf (aka com.*.*:layout_constraintTop_toTopOf) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:35: AAPT: error: attribute layout_constraintBottom_toTopOf (aka com.*.*:layout_constraintBottom_toTopOf) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:35: AAPT: error: attribute layout_constraintEnd_toEndOf (aka com.*.*:layout_constraintEnd_toEndOf) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:35: AAPT: error: attribute layout_constraintStart_toStartOf (aka com.*.*:layout_constraintStart_toStartOf) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:35: AAPT: error: attribute layout_constraintTop_toBottomOf (aka com.*.*:layout_constraintTop_toBottomOf) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:45: AAPT: error: attribute layout_constraintBottom_toBottomOf (aka com.*.*:layout_constraintBottom_toBottomOf) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:45: AAPT: error: attribute layout_constraintEnd_toEndOf (aka com.*.*:layout_constraintEnd_toEndOf) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:45: AAPT: error: attribute layout_constraintStart_toStartOf (aka com.*.*:layout_constraintStart_toStartOf) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:45: AAPT: error: attribute layout_constraintTop_toTopOf (aka com.*.*:layout_constraintTop_toTopOf) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:55: AAPT: error: attribute layout_constraintBottom_toBottomOf (aka com.*.*:layout_constraintBottom_toBottomOf) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:55: AAPT: error: attribute layout_constraintDimensionRatio (aka com.*.*:layout_constraintDimensionRatio) not found.
         
     C:\Users\DELL\.gradle\caches\transforms-3\246f528239708f672a9905dd9b6fadde\transformed\jetified-googlemobileads-unity\res\layout\gnt_medium_template_view.xml:55: AAPT: error: attribute layout_constraintEnd_toStartOf (aka com.*.*:layout_constraintEnd_toStartOf) not found.
         这个问题的原因是gradleTemplate.properties 没有设置android.useAndroidX=true,正常情况下gradleTemplate.properties内容为

点击Assets > External Dependency Manager > Android Resolver > Resolve 应该就能解决自动生成,如果没有,点击Force Resolve

还有就是打Apk过程中长时间的等待Building Gradle project... 如果超过20分钟可能就build失败了,大概问题是gradle 版本不对,我之前用的版本是6.1.1,报错,改为gradle-6.8 之后正常

最好引入Admob 打包的过程中开vpn,因为有些依赖需要翻墙,或者挂其他代理也行,网上教程比较多,可以查询下

遇到问题国外网站会有更多的解决方法,我百度了很久很多都不对症

这篇关于Unity 接入Admob SDK 打Apk 过程中遇到的问题的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/936918

相关文章

canal实现mysql数据同步的详细过程

《canal实现mysql数据同步的详细过程》:本文主要介绍canal实现mysql数据同步的详细过程,本文通过实例图文相结合给大家介绍的非常详细,对大家的学习或工作具有一定的参考借鉴价值,需要的... 目录1、canal下载2、mysql同步用户创建和授权3、canal admin安装和启动4、canal

MySQL存储过程之循环遍历查询的结果集详解

《MySQL存储过程之循环遍历查询的结果集详解》:本文主要介绍MySQL存储过程之循环遍历查询的结果集,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录前言1. 表结构2. 存储过程3. 关于存储过程的SQL补充总结前言近来碰到这样一个问题:在生产上导入的数据发现

SpringBoot集成LiteFlow实现轻量级工作流引擎的详细过程

《SpringBoot集成LiteFlow实现轻量级工作流引擎的详细过程》LiteFlow是一款专注于逻辑驱动流程编排的轻量级框架,它以组件化方式快速构建和执行业务流程,有效解耦复杂业务逻辑,下面给大... 目录一、基础概念1.1 组件(Component)1.2 规则(Rule)1.3 上下文(Conte

MySQL 设置AUTO_INCREMENT 无效的问题解决

《MySQL设置AUTO_INCREMENT无效的问题解决》本文主要介绍了MySQL设置AUTO_INCREMENT无效的问题解决,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参... 目录快速设置mysql的auto_increment参数一、修改 AUTO_INCREMENT 的值。

关于跨域无效的问题及解决(java后端方案)

《关于跨域无效的问题及解决(java后端方案)》:本文主要介绍关于跨域无效的问题及解决(java后端方案),具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录通用后端跨域方法1、@CrossOrigin 注解2、springboot2.0 实现WebMvcConfig

Go语言中泄漏缓冲区的问题解决

《Go语言中泄漏缓冲区的问题解决》缓冲区是一种常见的数据结构,常被用于在不同的并发单元之间传递数据,然而,若缓冲区使用不当,就可能引发泄漏缓冲区问题,本文就来介绍一下问题的解决,感兴趣的可以了解一下... 目录引言泄漏缓冲区的基本概念代码示例:泄漏缓冲区的产生项目场景:Web 服务器中的请求缓冲场景描述代码

Java死锁问题解决方案及示例详解

《Java死锁问题解决方案及示例详解》死锁是指两个或多个线程因争夺资源而相互等待,导致所有线程都无法继续执行的一种状态,本文给大家详细介绍了Java死锁问题解决方案详解及实践样例,需要的朋友可以参考下... 目录1、简述死锁的四个必要条件:2、死锁示例代码3、如何检测死锁?3.1 使用 jstack3.2

解决JSONField、JsonProperty不生效的问题

《解决JSONField、JsonProperty不生效的问题》:本文主要介绍解决JSONField、JsonProperty不生效的问题,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑... 目录jsONField、JsonProperty不生效javascript问题排查总结JSONField

github打不开的问题分析及解决

《github打不开的问题分析及解决》:本文主要介绍github打不开的问题分析及解决,具有很好的参考价值,希望对大家有所帮助,如有错误或未考虑完全的地方,望不吝赐教... 目录一、找到github.com域名解析的ip地址二、找到github.global.ssl.fastly.net网址解析的ip地址三

MySQL版本问题导致项目无法启动问题的解决方案

《MySQL版本问题导致项目无法启动问题的解决方案》本文记录了一次因MySQL版本不一致导致项目启动失败的经历,详细解析了连接错误的原因,并提供了两种解决方案:调整连接字符串禁用SSL或统一MySQL... 目录本地项目启动报错报错原因:解决方案第一个:第二种:容器启动mysql的坑两种修改时区的方法:本地