Unity集成穿山甲后打包报错android:networkSecurityConfig , Picked up JAVA_TOOL_OPTIONS:-Dfile.encoding=UTF-8

Unity集成穿山甲4.0SDK后打包报错 ,

/Users/…/Temp/gradleOut/unityLibrary/src/main/AndroidManifest.xml:31:3-138:17 Warning:
application@android:networkSecurityConfig was tagged at AndroidManifest.xml:31 to replace other declarations but no other declaration present
/Users/…/Temp/gradleOut/unityLibrary/src/main/AndroidManifest.xml:31:3-138:17 Warning:
application@android:allowBackup was tagged at AndroidManifest.xml:31 to replace other declarations but no other declaration present

看到这里 , 第一反应是删掉 AndroidManifest里面对应的报错

android:networkSecurityConfig=“@xml/network_config”
tools:replace=“android:networkSecurityConfig,android:allowBackup”

但是删除之后 , 又会报百度SDK的问题 , 因为百度的SDK又需要android:allowBackup这个东西
所以 这不是个解决方式 , 仔细查看了报错的详细内容

Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF-8 编译器 (1.8.0-adoptopenjdk) 中出现异常错误。如果在 Bug Database (http://bugs.java.com)
中没有找到该错误, 请通过 Java Bug 报告页 (http://bugreport.java.com) 建立该 Java 编译器
Bug。请在报告中附上您的程序和以下诊断信息。谢谢。 java.lang.AssertionError: annotationType():
unrecognized Attribute name MODULE (class
com.sun.tools.javac.util.UnsharedNameTable N a m e I m p l ) a t c o m . s u n . t o o l s . j a v a c . u t i l . A s s e r t . e r r o r ( A s s e r t . j a v a : 133 ) a t c o m . s u n . t o o l s . j a v a c . c o d e . T y p e A n n o t a t i o n s . a n n o t a t i o n T y p e ( T y p e A n n o t a t i o n s . j a v a : 231 ) a t c o m . s u n . t o o l s . j a v a c . c o d e . T y p e A n n o t a t i o n s NameImpl) at com.sun.tools.javac.util.Assert.error(Assert.java:133) at com.sun.tools.javac.code.TypeAnnotations.annotationType(TypeAnnotations.java:231) at com.sun.tools.javac.code.TypeAnnotations NameImpl)atcom.sun.tools.javac.util.Assert.error(Assert.java:133)atcom.sun.tools.javac.code.TypeAnnotations.annotationType(TypeAnnotations.java:231)atcom.sun.tools.javac.code.TypeAnnotationsTypeAnnotationPositions.separateAnnotationsKinds(TypeAnnotations.java:294)
at
com.sun.tools.javac.code.TypeAnnotations T y p e A n n o t a t i o n P o s i t i o n s . v i s i t V a r D e f ( T y p e A n n o t a t i o n s . j a v a : 1164 ) a t c o m . s u n . t o o l s . j a v a c . t r e e . J C T r e e TypeAnnotationPositions.visitVarDef(TypeAnnotations.java:1164) at com.sun.tools.javac.tree.JCTree TypeAnnotationPositions.visitVarDef(TypeAnnotations.java:1164)atcom.sun.tools.javac.tree.JCTreeJCVariableDecl.accept(JCTree.java:852)
at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49) at
com.sun.tools.javac.code.TypeAnnotations T y p e A n n o t a t i o n P o s i t i o n s . s c a n ( T y p e A n n o t a t i o n s . j a v a : 275 ) a t c o m . s u n . t o o l s . j a v a c . t r e e . T r e e S c a n n e r . s c a n ( T r e e S c a n n e r . j a v a : 57 ) a t c o m . s u n . t o o l s . j a v a c . c o d e . T y p e A n n o t a t i o n s TypeAnnotationPositions.scan(TypeAnnotations.java:275) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57) at com.sun.tools.javac.code.TypeAnnotations TypeAnnotationPositions.scan(TypeAnnotations.java:275)atcom.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)atcom.sun.tools.javac.code.TypeAnnotationsTypeAnnotationPositions.visitClassDef(TypeAnnotations.java:1042)
at
com.sun.tools.javac.tree.JCTree J C C l a s s D e c l . a c c e p t ( J C T r e e . j a v a : 693 ) a t c o m . s u n . t o o l s . j a v a c . t r e e . T r e e S c a n n e r . s c a n ( T r e e S c a n n e r . j a v a : 49 ) a t c o m . s u n . t o o l s . j a v a c . c o d e . T y p e A n n o t a t i o n s JCClassDecl.accept(JCTree.java:693) at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49) at com.sun.tools.javac.code.TypeAnnotations JCClassDecl.accept(JCTree.java:693)atcom.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)atcom.sun.tools.javac.code.TypeAnnotationsTypeAnnotationPositions.scan(TypeAnnotations.java:275)
at
com.sun.tools.javac.code.TypeAnnotations 1. r u n ( T y p e A n n o t a t i o n s . j a v a : 127 ) a t c o m . s u n . t o o l s . j a v a c . c o m p . A n n o t a t e . f l u s h ( A n n o t a t e . j a v a : 152 ) a t c o m . s u n . t o o l s . j a v a c . c o m p . A n n o t a t e . e n t e r D o n e ( A n n o t a t e . j a v a : 129 ) a t c o m . s u n . t o o l s . j a v a c . c o m p . E n t e r . c o m p l e t e ( E n t e r . j a v a : 512 ) a t c o m . s u n . t o o l s . j a v a c . c o m p . E n t e r . m a i n ( E n t e r . j a v a : 471 ) a t c o m . s u n . t o o l s . j a v a c . m a i n . J a v a C o m p i l e r . e n t e r T r e e s ( J a v a C o m p i l e r . j a v a : 982 ) a t c o m . s u n . t o o l s . j a v a c . m a i n . J a v a C o m p i l e r . c o m p i l e ( J a v a C o m p i l e r . j a v a : 857 ) a t c o m . s u n . t o o l s . j a v a c . m a i n . M a i n . c o m p i l e ( M a i n . j a v a : 523 ) a t c o m . s u n . t o o l s . j a v a c . a p i . J a v a c T a s k I m p l . d o C a l l ( J a v a c T a s k I m p l . j a v a : 129 ) a t c o m . s u n . t o o l s . j a v a c . a p i . J a v a c T a s k I m p l . c a l l ( J a v a c T a s k I m p l . j a v a : 138 ) a t o r g . g r a d l e . a p i . i n t e r n a l . t a s k s . c o m p i l e . A n n o t a t i o n P r o c e s s i n g C o m p i l e T a s k . c a l l ( A n n o t a t i o n P r o c e s s i n g C o m p i l e T a s k . j a v a : 93 ) a t o r g . g r a d l e . a p i . i n t e r n a l . t a s k s . c o m p i l e . R e s o u r c e C l e a n i n g C o m p i l a t i o n T a s k . c a l l ( R e s o u r c e C l e a n i n g C o m p i l a t i o n T a s k . j a v a : 57 ) a t o r g . g r a d l e . a p i . i n t e r n a l . t a s k s . c o m p i l e . J d k J a v a C o m p i l e r . e x e c u t e ( J d k J a v a C o m p i l e r . j a v a : 54 ) a t o r g . g r a d l e . a p i . i n t e r n a l . t a s k s . c o m p i l e . J d k J a v a C o m p i l e r . e x e c u t e ( J d k J a v a C o m p i l e r . j a v a : 39 ) a t o r g . g r a d l e . a p i . i n t e r n a l . t a s k s . c o m p i l e . N o r m a l i z i n g J a v a C o m p i l e r . d e l e g a t e A n d H a n d l e E r r o r s ( N o r m a l i z i n g J a v a C o m p i l e r . j a v a : 100 ) a t o r g . g r a d l e . a p i . i n t e r n a l . t a s k s . c o m p i l e . N o r m a l i z i n g J a v a C o m p i l e r . e x e c u t e ( N o r m a l i z i n g J a v a C o m p i l e r . j a v a : 52 ) a t o r g . g r a d l e . a p i . i n t e r n a l . t a s k s . c o m p i l e . N o r m a l i z i n g J a v a C o m p i l e r . e x e c u t e ( N o r m a l i z i n g J a v a C o m p i l e r . j a v a : 38 ) a t o r g . g r a d l e . a p i . i n t e r n a l . t a s k s . c o m p i l e . A n n o t a t i o n P r o c e s s o r D i s c o v e r i n g C o m p i l e r . e x e c u t e ( A n n o t a t i o n P r o c e s s o r D i s c o v e r i n g C o m p i l e r . j a v a : 51 ) a t o r g . g r a d l e . a p i . i n t e r n a l . t a s k s . c o m p i l e . A n n o t a t i o n P r o c e s s o r D i s c o v e r i n g C o m p i l e r . e x e c u t e ( A n n o t a t i o n P r o c e s s o r D i s c o v e r i n g C o m p i l e r . j a v a : 37 ) a t o r g . g r a d l e . a p i . i n t e r n a l . t a s k s . c o m p i l e . C l e a n i n g J a v a C o m p i l e r . e x e c u t e ( C l e a n i n g J a v a C o m p i l e r . j a v a : 53 ) a t o r g . g r a d l e . a p i . i n t e r n a l . t a s k s . c o m p i l e . i n c r e m e n t a l . I n c r e m e n t a l C o m p i l e r F a c t o r y . l a m b d a 1.run(TypeAnnotations.java:127) at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:152) at com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:129) at com.sun.tools.javac.comp.Enter.complete(Enter.java:512) at com.sun.tools.javac.comp.Enter.main(Enter.java:471) at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:982) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:857) at com.sun.tools.javac.main.Main.compile(Main.java:523) at com.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129) at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138) at org.gradle.api.internal.tasks.compile.AnnotationProcessingCompileTask.call(AnnotationProcessingCompileTask.java:93) at org.gradle.api.internal.tasks.compile.ResourceCleaningCompilationTask.call(ResourceCleaningCompilationTask.java:57) at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:54) at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:39) at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:100) at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:52) at org.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:38) at org.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:51) at org.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:37) at org.gradle.api.internal.tasks.compile.CleaningJavaCompiler.execute(CleaningJavaCompiler.java:53) at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory.lambda 1.run(TypeAnnotations.java:127)atcom.sun.tools.javac.comp.Annotate.flush(Annotate.java:152)atcom.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:129)atcom.sun.tools.javac.comp.Enter.complete(Enter.java:512)atcom.sun.tools.javac.comp.Enter.main(Enter.java:471)atcom.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:982)atcom.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:857)atcom.sun.tools.javac.main.Main.compile(Main.java:523)atcom.sun.tools.javac.api.JavacTaskImpl.doCall(JavacTaskImpl.java:129)atcom.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:138)atorg.gradle.api.internal.tasks.compile.AnnotationProcessingCompileTask.call(AnnotationProcessingCompileTask.java:93)atorg.gradle.api.internal.tasks.compile.ResourceCleaningCompilationTask.call(ResourceCleaningCompilationTask.java:57)atorg.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:54)atorg.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:39)atorg.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.delegateAndHandleErrors(NormalizingJavaCompiler.java:100)atorg.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:52)atorg.gradle.api.internal.tasks.compile.NormalizingJavaCompiler.execute(NormalizingJavaCompiler.java:38)atorg.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:51)atorg.gradle.api.internal.tasks.compile.AnnotationProcessorDiscoveringCompiler.execute(AnnotationProcessorDiscoveringCompiler.java:37)atorg.gradle.api.internal.tasks.compile.CleaningJavaCompiler.execute(CleaningJavaCompiler.java:53)atorg.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory.lambdacreateRebuildAllCompiler$0(IncrementalCompilerFactory.java:98)
at
org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:60)
at
org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:44)
at
org.gradle.api.internal.tasks.compile.CompileJavaBuildOperationReportingCompiler$2.call(CompileJavaBuildOperationReportingCompiler.java:59)
at
org.gradle.api.internal.tasks.compile.CompileJavaBuildOperationReportingCompiler 2. c a l l ( C o m p i l e J a v a B u i l d O p e r a t i o n R e p o r t i n g C o m p i l e r . j a v a : 51 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n E x e c u t o r 2.call(CompileJavaBuildOperationReportingCompiler.java:51) at org.gradle.internal.operations.DefaultBuildOperationExecutor 2.call(CompileJavaBuildOperationReportingCompiler.java:51)atorg.gradle.internal.operations.DefaultBuildOperationExecutorCallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
at
org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
at
org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at
org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at
org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at
org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)
at
org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
at
org.gradle.api.internal.tasks.compile.CompileJavaBuildOperationReportingCompiler.execute(CompileJavaBuildOperationReportingCompiler.java:51)
at
org.gradle.api.tasks.compile.JavaCompile.performCompilation(JavaCompile.java:208)
at
org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:179)
at
org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:146)
at
com.android.build.gradle.tasks.AndroidJavaCompile.compile(AndroidJavaCompile.kt:214)
at sun.reflect.GeneratedMethodAccessor336.invoke(Unknown Source) at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498) at
org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:104) at
org.gradle.api.internal.project.taskfactory.BridgingIncrementalInputsTaskAction.doExecute(BridgingIncrementalInputsTaskAction.java:39)
at
org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:42)
at
org.gradle.api.internal.project.taskfactory.AbstractIncrementalTaskAction.execute(AbstractIncrementalTaskAction.java:25)
at
org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
at
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter 3. r u n ( E x e c u t e A c t i o n s T a s k E x e c u t e r . j a v a : 568 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n E x e c u t o r 3.run(ExecuteActionsTaskExecuter.java:568) at org.gradle.internal.operations.DefaultBuildOperationExecutor 3.run(ExecuteActionsTaskExecuter.java:568)atorg.gradle.internal.operations.DefaultBuildOperationExecutorRunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:402)
at
org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:394)
at
org.gradle.internal.operations.DefaultBuildOperationExecutor$1.execute(DefaultBuildOperationExecutor.java:165)
at
org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)
at
org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)
at
org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:92)
at
org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
at
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:553)
at
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:536)
at
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access 300 ( E x e c u t e A c t i o n s T a s k E x e c u t e r . j a v a : 109 ) a t o r g . g r a d l e . a p i . i n t e r n a l . t a s k s . e x e c u t i o n . E x e c u t e A c t i o n s T a s k E x e c u t e r 300(ExecuteActionsTaskExecuter.java:109) at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter 300(ExecuteActionsTaskExecuter.java:109)atorg.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuterTaskExecution.executeWithPreviousOutputFiles(ExecuteActionsTaskExecuter.java:276)
at
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter T a s k E x e c u t i o n . e x e c u t e ( E x e c u t e A c t i o n s T a s k E x e c u t e r . j a v a : 265 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . E x e c u t e S t e p . l a m b d a TaskExecution.execute(ExecuteActionsTaskExecuter.java:265) at org.gradle.internal.execution.steps.ExecuteStep.lambda TaskExecution.execute(ExecuteActionsTaskExecuter.java:265)atorg.gradle.internal.execution.steps.ExecuteStep.lambdaexecute 0 ( E x e c u t e S t e p . j a v a : 32 ) a t j a v a . u t i l . O p t i o n a l . m a p ( O p t i o n a l . j a v a : 215 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . E x e c u t e S t e p . e x e c u t e ( E x e c u t e S t e p . j a v a : 32 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . E x e c u t e S t e p . e x e c u t e ( E x e c u t e S t e p . j a v a : 26 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . C l e a n u p O u t p u t s S t e p . e x e c u t e ( C l e a n u p O u t p u t s S t e p . j a v a : 63 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . C l e a n u p O u t p u t s S t e p . e x e c u t e ( C l e a n u p O u t p u t s S t e p . j a v a : 35 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . R e s o l v e I n p u t C h a n g e s S t e p . e x e c u t e ( R e s o l v e I n p u t C h a n g e s S t e p . j a v a : 49 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . R e s o l v e I n p u t C h a n g e s S t e p . e x e c u t e ( R e s o l v e I n p u t C h a n g e s S t e p . j a v a : 34 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . C a n c e l E x e c u t i o n S t e p . e x e c u t e ( C a n c e l E x e c u t i o n S t e p . j a v a : 43 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . T i m e o u t S t e p . e x e c u t e W i t h o u t T i m e o u t ( T i m e o u t S t e p . j a v a : 73 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . T i m e o u t S t e p . e x e c u t e ( T i m e o u t S t e p . j a v a : 54 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . C a t c h E x c e p t i o n S t e p . e x e c u t e ( C a t c h E x c e p t i o n S t e p . j a v a : 34 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . C r e a t e O u t p u t s S t e p . e x e c u t e ( C r e a t e O u t p u t s S t e p . j a v a : 44 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . S n a p s h o t O u t p u t s S t e p . e x e c u t e ( S n a p s h o t O u t p u t s S t e p . j a v a : 54 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . S n a p s h o t O u t p u t s S t e p . e x e c u t e ( S n a p s h o t O u t p u t s S t e p . j a v a : 38 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . B r o a d c a s t C h a n g i n g O u t p u t s S t e p . e x e c u t e ( B r o a d c a s t C h a n g i n g O u t p u t s S t e p . j a v a : 49 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . C a c h e S t e p . e x e c u t e W i t h o u t C a c h e ( C a c h e S t e p . j a v a : 153 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . C a c h e S t e p . e x e c u t e ( C a c h e S t e p . j a v a : 67 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . C a c h e S t e p . e x e c u t e ( C a c h e S t e p . j a v a : 41 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . S t o r e E x e c u t i o n S t a t e S t e p . e x e c u t e ( S t o r e E x e c u t i o n S t a t e S t e p . j a v a : 44 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . S t o r e E x e c u t i o n S t a t e S t e p . e x e c u t e ( S t o r e E x e c u t i o n S t a t e S t e p . j a v a : 33 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . R e c o r d O u t p u t s S t e p . e x e c u t e ( R e c o r d O u t p u t s S t e p . j a v a : 38 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . R e c o r d O u t p u t s S t e p . e x e c u t e ( R e c o r d O u t p u t s S t e p . j a v a : 24 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . S k i p U p T o D a t e S t e p . e x e c u t e B e c a u s e ( S k i p U p T o D a t e S t e p . j a v a : 92 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . S k i p U p T o D a t e S t e p . l a m b d a 0(ExecuteStep.java:32) at java.util.Optional.map(Optional.java:215) at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:32) at org.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26) at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:63) at org.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:35) at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:49) at org.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:34) at org.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:43) at org.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73) at org.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54) at org.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:34) at org.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:44) at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:54) at org.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:38) at org.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49) at org.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:153) at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:67) at org.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:41) at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:44) at org.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:33) at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38) at org.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24) at org.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:92) at org.gradle.internal.execution.steps.SkipUpToDateStep.lambda 0(ExecuteStep.java:32)atjava.util.Optional.map(Optional.java:215)atorg.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:32)atorg.gradle.internal.execution.steps.ExecuteStep.execute(ExecuteStep.java:26)atorg.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:63)atorg.gradle.internal.execution.steps.CleanupOutputsStep.execute(CleanupOutputsStep.java:35)atorg.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:49)atorg.gradle.internal.execution.steps.ResolveInputChangesStep.execute(ResolveInputChangesStep.java:34)atorg.gradle.internal.execution.steps.CancelExecutionStep.execute(CancelExecutionStep.java:43)atorg.gradle.internal.execution.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:73)atorg.gradle.internal.execution.steps.TimeoutStep.execute(TimeoutStep.java:54)atorg.gradle.internal.execution.steps.CatchExceptionStep.execute(CatchExceptionStep.java:34)atorg.gradle.internal.execution.steps.CreateOutputsStep.execute(CreateOutputsStep.java:44)atorg.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:54)atorg.gradle.internal.execution.steps.SnapshotOutputsStep.execute(SnapshotOutputsStep.java:38)atorg.gradle.internal.execution.steps.BroadcastChangingOutputsStep.execute(BroadcastChangingOutputsStep.java:49)atorg.gradle.internal.execution.steps.CacheStep.executeWithoutCache(CacheStep.java:153)atorg.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:67)atorg.gradle.internal.execution.steps.CacheStep.execute(CacheStep.java:41)atorg.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:44)atorg.gradle.internal.execution.steps.StoreExecutionStateStep.execute(StoreExecutionStateStep.java:33)atorg.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:38)atorg.gradle.internal.execution.steps.RecordOutputsStep.execute(RecordOutputsStep.java:24)atorg.gradle.internal.execution.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:92)atorg.gradle.internal.execution.steps.SkipUpToDateStep.lambdaexecute 0 ( S k i p U p T o D a t e S t e p . j a v a : 85 ) a t j a v a . u t i l . O p t i o n a l . m a p ( O p t i o n a l . j a v a : 215 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . S k i p U p T o D a t e S t e p . e x e c u t e ( S k i p U p T o D a t e S t e p . j a v a : 55 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . S k i p U p T o D a t e S t e p . e x e c u t e ( S k i p U p T o D a t e S t e p . j a v a : 39 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . R e s o l v e C h a n g e s S t e p . e x e c u t e ( R e s o l v e C h a n g e s S t e p . j a v a : 76 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . R e s o l v e C h a n g e s S t e p . e x e c u t e ( R e s o l v e C h a n g e s S t e p . j a v a : 37 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . l e g a c y . M a r k S n a p s h o t t i n g I n p u t s F i n i s h e d S t e p . e x e c u t e ( M a r k S n a p s h o t t i n g I n p u t s F i n i s h e d S t e p . j a v a : 36 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . l e g a c y . M a r k S n a p s h o t t i n g I n p u t s F i n i s h e d S t e p . e x e c u t e ( M a r k S n a p s h o t t i n g I n p u t s F i n i s h e d S t e p . j a v a : 26 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . R e s o l v e C a c h i n g S t a t e S t e p . e x e c u t e ( R e s o l v e C a c h i n g S t a t e S t e p . j a v a : 94 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . R e s o l v e C a c h i n g S t a t e S t e p . e x e c u t e ( R e s o l v e C a c h i n g S t a t e S t e p . j a v a : 49 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . C a p t u r e S t a t e B e f o r e E x e c u t i o n S t e p . e x e c u t e ( C a p t u r e S t a t e B e f o r e E x e c u t i o n S t e p . j a v a : 79 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . C a p t u r e S t a t e B e f o r e E x e c u t i o n S t e p . e x e c u t e ( C a p t u r e S t a t e B e f o r e E x e c u t i o n S t e p . j a v a : 53 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . V a l i d a t e S t e p . e x e c u t e ( V a l i d a t e S t e p . j a v a : 74 ) a t o r g . g r a d l e . i n t e r n a l . e x e c u t i o n . s t e p s . S k i p E m p t y W o r k S t e p . l a m b d a 0(SkipUpToDateStep.java:85) at java.util.Optional.map(Optional.java:215) at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55) at org.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:39) at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:76) at org.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37) at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:36) at org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:26) at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:94) at org.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:49) at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:79) at org.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:53) at org.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:74) at org.gradle.internal.execution.steps.SkipEmptyWorkStep.lambda 0(SkipUpToDateStep.java:85)atjava.util.Optional.map(Optional.java:215)atorg.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:55)atorg.gradle.internal.execution.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:39)atorg.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:76)atorg.gradle.internal.execution.steps.ResolveChangesStep.execute(ResolveChangesStep.java:37)atorg.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:36)atorg.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsFinishedStep.execute(MarkSnapshottingInputsFinishedStep.java:26)atorg.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:94)atorg.gradle.internal.execution.steps.ResolveCachingStateStep.execute(ResolveCachingStateStep.java:49)atorg.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:79)atorg.gradle.internal.execution.steps.CaptureStateBeforeExecutionStep.execute(CaptureStateBeforeExecutionStep.java:53)atorg.gradle.internal.execution.steps.ValidateStep.execute(ValidateStep.java:74)atorg.gradle.internal.execution.steps.SkipEmptyWorkStep.lambdaexecute$2(SkipEmptyWorkStep.java:78)
at java.util.Optional.orElseGet(Optional.java:267) at
org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:78)
at
org.gradle.internal.execution.steps.SkipEmptyWorkStep.execute(SkipEmptyWorkStep.java:34)
at
org.gradle.internal.execution.steps.legacy.MarkSnapshottingInputsStartedStep.execute(MarkSnapshottingInputsStartedStep.java:39)
at
org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:40)
at
org.gradle.internal.execution.steps.LoadExecutionStateStep.execute(LoadExecutionStateStep.java:28)
at
org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:33)
at
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeIfValid(ExecuteActionsTaskExecuter.java:192)
at
org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:184)
at
org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:109)
at
org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:46)
at
org.gradle.api.internal.tasks.execution.ResolveTaskExecutionModeExecuter.execute(ResolveTaskExecutionModeExecuter.java:62)
at
org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:57)
at
org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:56)
at
org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
at
org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:77)
at
org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:55)
at
org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter 1. c a l l ( E v e n t F i r i n g T a s k E x e c u t e r . j a v a : 52 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n E x e c u t o r 1.call(EventFiringTaskExecuter.java:52) at org.gradle.internal.operations.DefaultBuildOperationExecutor 1.call(EventFiringTaskExecuter.java:52)atorg.gradle.internal.operations.DefaultBuildOperationExecutorCallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:416)
at
org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:406)
at
org.gradle.internal.operations.DefaultBuildOperationExecutor 1. e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . j a v a : 165 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . j a v a : 250 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . e x e c u t e ( D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . j a v a : 158 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . c a l l ( D e f a u l t B u i l d O p e r a t i o n E x e c u t o r . j a v a : 102 ) a t o r g . g r a d l e . i n t e r n a l . o p e r a t i o n s . D e l e g a t i n g B u i l d O p e r a t i o n E x e c u t o r . c a l l ( D e l e g a t i n g B u i l d O p e r a t i o n E x e c u t o r . j a v a : 36 ) a t o r g . g r a d l e . a p i . i n t e r n a l . t a s k s . e x e c u t i o n . E v e n t F i r i n g T a s k E x e c u t e r . e x e c u t e ( E v e n t F i r i n g T a s k E x e c u t e r . j a v a : 52 ) a t o r g . g r a d l e . e x e c u t i o n . p l a n . L o c a l T a s k N o d e E x e c u t o r . e x e c u t e ( L o c a l T a s k N o d e E x e c u t o r . j a v a : 41 ) a t o r g . g r a d l e . e x e c u t i o n . t a s k g r a p h . D e f a u l t T a s k E x e c u t i o n G r a p h 1.execute(DefaultBuildOperationExecutor.java:165) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250) at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158) at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102) at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36) at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52) at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph 1.execute(DefaultBuildOperationExecutor.java:165)atorg.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:250)atorg.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:158)atorg.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:102)atorg.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)atorg.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:52)atorg.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:41)atorg.gradle.execution.taskgraph.DefaultTaskExecutionGraphInvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:372)
at
org.gradle.execution.taskgraph.DefaultTaskExecutionGraph I n v o k e N o d e E x e c u t o r s A c t i o n . e x e c u t e ( D e f a u l t T a s k E x e c u t i o n G r a p h . j a v a : 359 ) a t o r g . g r a d l e . e x e c u t i o n . t a s k g r a p h . D e f a u l t T a s k E x e c u t i o n G r a p h InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:359) at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:359)atorg.gradle.execution.taskgraph.DefaultTaskExecutionGraphBuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:352)
at
org.gradle.execution.taskgraph.DefaultTaskExecutionGraph B u i l d O p e r a t i o n A w a r e E x e c u t i o n A c t i o n . e x e c u t e ( D e f a u l t T a s k E x e c u t i o n G r a p h . j a v a : 338 ) a t o r g . g r a d l e . e x e c u t i o n . p l a n . D e f a u l t P l a n E x e c u t o r BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:338) at org.gradle.execution.plan.DefaultPlanExecutor BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:338)atorg.gradle.execution.plan.DefaultPlanExecutorExecutorWorker.lambda$run 0 ( D e f a u l t P l a n E x e c u t o r . j a v a : 127 ) a t o r g . g r a d l e . e x e c u t i o n . p l a n . D e f a u l t P l a n E x e c u t o r 0(DefaultPlanExecutor.java:127) at org.gradle.execution.plan.DefaultPlanExecutor 0(DefaultPlanExecutor.java:127)atorg.gradle.execution.plan.DefaultPlanExecutorExecutorWorker.execute(DefaultPlanExecutor.java:191)
at
org.gradle.execution.plan.DefaultPlanExecutor E x e c u t o r W o r k e r . e x e c u t e N e x t N o d e ( D e f a u l t P l a n E x e c u t o r . j a v a : 182 ) a t o r g . g r a d l e . e x e c u t i o n . p l a n . D e f a u l t P l a n E x e c u t o r ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182) at org.gradle.execution.plan.DefaultPlanExecutor ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:182)atorg.gradle.execution.plan.DefaultPlanExecutorExecutorWorker.run(DefaultPlanExecutor.java:124)
at
org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at
org.gradle.internal.concurrent.ManagedExecutorImpl 1. r u n ( M a n a g e d E x e c u t o r I m p l . j a v a : 48 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r . r u n W o r k e r ( T h r e a d P o o l E x e c u t o r . j a v a : 1149 ) a t j a v a . u t i l . c o n c u r r e n t . T h r e a d P o o l E x e c u t o r 1.run(ManagedExecutorImpl.java:48) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor 1.run(ManagedExecutorImpl.java:48)atjava.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)atjava.util.concurrent.ThreadPoolExecutorWorker.run(ThreadPoolExecutor.java:624)
at
org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
at java.lang.Thread.run(Thread.java:748)

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ‘:launcher:compileReleaseJavaWithJavac’.

Compilation failed; see the compiler error output for 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 3s

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) (at
/Users/bokken/b

尝试了一下 又仔细分析 , 发现是安卓编译的问题 , 这个target API版本之前是默认最高版本 , 编译才会有问题 , 修改为30版本 , 也能兼容31和32 , 打包 正常了

Player Setting -> Player -> Other Setting -> Identification
在这里插入图片描述
问题解决 , 记录一下
2022年05月14日11:41:58

你可能感兴趣的:(Unity练手及学习,android,unity,java)