Tag Archives: unity3d

Unity – error reporting encountered in APK package

Unity – error reporting encountered in APK package

    gradle build failed
    reason: the installed as downloads sdk31 version by default, and compilesdkversion uses 31 by default. Version 31 is Android 12, which is incompatible with existing projects
    solution: delete 31 and download version 30 or below to solve the problem
    ( https://www.cnblogs.com/woaixingxing/p/15251383.html The solution found in this big man’s article, thank this big man!!!)

    CommandInvokationFailure: Gradle build failed. 
    D:\Program Files\Unity2018.4.32f1\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\OpenJDK\Windows\bin\java.exe -classpath "D:\Program Files\Unity2018.4.32f1\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-5.1.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx4096m" "assembleRelease"
    
    stderr[
    ������ (1.8.0-adoptopenjdk) �г����쳣��������� Bug Database (http://bugs.java.com) ��û���ҵ��ô���, ��ͨ�� Java Bug ����ҳ (http://bugreport.java.com) ������ Java ������ Bug�����ڱ����и������ij�������������Ϣ��лл��
    java.lang.AssertionError: annotationType(): unrecognized Attribute name MODULE (class com.sun.tools.javac.util.UnsharedNameTable$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$TypeAnnotationPositions.separateAnnotationsKinds(TypeAnnotations.java:294)
    	at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitVarDef(TypeAnnotations.java:1164)
    	at com.sun.tools.javac.tree.JCTree$JCVariableDecl.accept(JCTree.java:852)
    	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
    	at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(TypeAnnotations.java:275)
    	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:57)
    	at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.visitClassDef(TypeAnnotations.java:1042)
    	at com.sun.tools.javac.tree.JCTree$JCClassDecl.accept(JCTree.java:693)
    	at com.sun.tools.javac.tree.TreeScanner.scan(TreeScanner.java:49)
    	at com.sun.tools.javac.code.TypeAnnotations$TypeAnnotationPositions.scan(TypeAnnotations.java:275)
    	at com.sun.tools.javac.code.TypeAnnotations$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:91)
    	at org.gradle.api.internal.tasks.compile.ResourceCleaningCompilationTask.call(ResourceCleaningCompilationTask.java:57)
    	at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:50)
    	at org.gradle.api.internal.tasks.compile.JdkJavaCompiler.execute(JdkJavaCompiler.java:36)
    	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.CleaningJavaCompilerSupport.execute(CleaningJavaCompilerSupport.java:39)
    	at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory$2.execute(IncrementalCompilerFactory.java:110)
    	at org.gradle.api.internal.tasks.compile.incremental.IncrementalCompilerFactory$2.execute(IncrementalCompilerFactory.java:106)
    	at org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:59)
    	at org.gradle.api.internal.tasks.compile.incremental.IncrementalResultStoringCompiler.execute(IncrementalResultStoringCompiler.java:43)
    	at org.gradle.api.internal.tasks.compile.CompileJavaBuildOperationReportingCompiler$2.call(CompileJavaBuildOperationReportingCompiler.java:59)
    	at org.gradle.api.internal.tasks.compile.CompileJavaBuildOperationReportingCompiler$2.call(CompileJavaBuildOperationReportingCompiler.java:51)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:315)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:305)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:101)
    	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:154)
    	at org.gradle.api.tasks.compile.JavaCompile.compile(JavaCompile.java:122)
    	at com.android.build.gradle.tasks.AndroidJavaCompile.compile(AndroidJavaCompile.kt:214)
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    	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:73)
    	at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:47)
    	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:41)
    	at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:28)
    	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$2.run(ExecuteActionsTaskExecuter.java:284)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:301)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:293)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:91)
    	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.run(DelegatingBuildOperationExecutor.java:31)
    	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:273)
    	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:258)
    	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.access$200(ExecuteActionsTaskExecuter.java:67)
    	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$TaskExecution.execute(ExecuteActionsTaskExecuter.java:145)
    	at org.gradle.internal.execution.impl.steps.ExecuteStep.execute(ExecuteStep.java:49)
    	at org.gradle.internal.execution.impl.steps.CancelExecutionStep.execute(CancelExecutionStep.java:34)
    	at org.gradle.internal.execution.impl.steps.TimeoutStep.executeWithoutTimeout(TimeoutStep.java:69)
    	at org.gradle.internal.execution.impl.steps.TimeoutStep.execute(TimeoutStep.java:49)
    	at org.gradle.internal.execution.impl.steps.CatchExceptionStep.execute(CatchExceptionStep.java:33)
    	at org.gradle.internal.execution.impl.steps.CreateOutputsStep.execute(CreateOutputsStep.java:50)
    	at org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute(SnapshotOutputStep.java:43)
    	at org.gradle.internal.execution.impl.steps.SnapshotOutputStep.execute(SnapshotOutputStep.java:29)
    	at org.gradle.internal.execution.impl.steps.CacheStep.executeWithoutCache(CacheStep.java:134)
    	at org.gradle.internal.execution.impl.steps.CacheStep.lambda$execute$3(CacheStep.java:83)
    	at java.util.Optional.orElseGet(Optional.java:267)
    	at org.gradle.internal.execution.impl.steps.CacheStep.execute(CacheStep.java:82)
    	at org.gradle.internal.execution.impl.steps.CacheStep.execute(CacheStep.java:36)
    	at org.gradle.internal.execution.impl.steps.PrepareCachingStep.execute(PrepareCachingStep.java:33)
    	at org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:38)
    	at org.gradle.internal.execution.impl.steps.StoreSnapshotsStep.execute(StoreSnapshotsStep.java:23)
    	at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.executeBecause(SkipUpToDateStep.java:96)
    	at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.lambda$execute$0(SkipUpToDateStep.java:89)
    	at java.util.Optional.map(Optional.java:215)
    	at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:52)
    	at org.gradle.internal.execution.impl.steps.SkipUpToDateStep.execute(SkipUpToDateStep.java:36)
    	at org.gradle.internal.execution.impl.DefaultWorkExecutor.execute(DefaultWorkExecutor.java:34)
    	at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:91)
    	at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:91)
    	at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:57)
    	at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:119)
    	at org.gradle.api.internal.tasks.execution.ResolvePreviousStateExecuter.execute(ResolvePreviousStateExecuter.java:43)
    	at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:93)
    	at org.gradle.api.internal.tasks.execution.FinalizePropertiesTaskExecuter.execute(FinalizePropertiesTaskExecuter.java:45)
    	at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:94)
    	at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:56)
    	at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:55)
    	at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:36)
    	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.executeTask(EventFiringTaskExecuter.java:67)
    	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:52)
    	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter$1.call(EventFiringTaskExecuter.java:49)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:315)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor$CallableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:305)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:175)
    	at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:101)
    	at org.gradle.internal.operations.DelegatingBuildOperationExecutor.call(DelegatingBuildOperationExecutor.java:36)
    	at org.gradle.api.internal.tasks.execution.EventFiringTaskExecuter.execute(EventFiringTaskExecuter.java:49)
    	at org.gradle.execution.plan.LocalTaskNodeExecutor.execute(LocalTaskNodeExecutor.java:43)
    	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:355)
    	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$InvokeNodeExecutorsAction.execute(DefaultTaskExecutionGraph.java:343)
    	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:336)
    	at org.gradle.execution.taskgraph.DefaultTaskExecutionGraph$BuildOperationAwareExecutionAction.execute(DefaultTaskExecutionGraph.java:322)
    	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:134)
    	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker$1.execute(DefaultPlanExecutor.java:129)
    	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.execute(DefaultPlanExecutor.java:202)
    	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.executeNextNode(DefaultPlanExecutor.java:193)
    	at org.gradle.execution.plan.DefaultPlanExecutor$ExecutorWorker.run(DefaultPlanExecutor.java:129)
    	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
    	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
    	at java.lang.Thread.run(Thread.java:748)
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':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 5s
    ]
    stdout[
    > Task :preBuild UP-TO-DATE
    > Task :preReleaseBuild
    > Task :compileReleaseAidl NO-SOURCE
    > Task :compileReleaseRenderscript NO-SOURCE
    > Task :checkReleaseManifest UP-TO-DATE
    > Task :generateReleaseBuildConfig UP-TO-DATE
    > Task :prepareLintJar UP-TO-DATE
    > Task :generateReleaseSources UP-TO-DATE
    > Task :javaPreCompileRelease
    > Task :mainApkListPersistenceRelease UP-TO-DATE
    > Task :generateReleaseResValues UP-TO-DATE
    > Task :generateReleaseResources UP-TO-DATE
    > Task :mergeReleaseResources
    > Task :createReleaseCompatibleScreenManifests UP-TO-DATE
    > Task :processReleaseManifest
    > Task :processReleaseResources
    
    > Task :compileReleaseJavaWithJavac FAILED
    
    Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
    Use '--warning-mode all' to show the individual deprecation warnings.
    See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings
    12 actionable tasks: 6 executed, 6 up-to-date
    ]
    exit code: 1
    UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <267278aa48b840c7a0e7281223ea050e>:0)
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <267278aa48b840c7a0e7281223ea050e>:0)
    UnityEditor.Android.Command.Run (System.String command, System.String args, System.String workingdir, UnityEditor.Android.Command+WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg) (at <267278aa48b840c7a0e7281223ea050e>:0)
    UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1[T] progress, System.String error) (at <267278aa48b840c7a0e7281223ea050e>:0)
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <267278aa48b840c7a0e7281223ea050e>:0)
    Rethrow as GradleInvokationException: Gradle build failed
    UnityEditor.Android.GradleWrapper.Run (UnityEditor.Android.AndroidJavaTools javaTools, System.String workingdir, System.String task, System.Action`1[T] progress) (at <267278aa48b840c7a0e7281223ea050e>:0)
    Unity<message truncated>
    

AAPT: error: attribute cardBackgroundColor (aka com.x.x:cardBackgroundColor) not found.

* What went wrong:
Execution failed for task ':launcher:processReleaseResources'.
> Android resource linking failed
  C:\Users\Administrator\.gradle\caches\transforms-2\files-2.1\a3890adfdb75cc00c9c342ba929acf1b\res\layout\com_facebook_device_auth_dialog_fragment.xml:22: AAPT: error: attribute cardBackgroundColor (aka com.test.k22:cardBackgroundColor) not found.
      
  C:\Users\Administrator\.gradle\caches\transforms-2\files-2.1\a3890adfdb75cc00c9c342ba929acf1b\res\layout\com_facebook_device_auth_dialog_fragment.xml:22: AAPT: error: attribute cardElevation (aka com.test.k22:cardElevation) not found.
      
  C:\Users\Administrator\.gradle\caches\transforms-2\files-2.1\a3890adfdb75cc00c9c342ba929acf1b\res\layout\com_facebook_smart_device_dialog_fragment.xml:22: AAPT: error: attribute cardBackgroundColor (aka com.test.k22:cardBackgroundColor) not found.
      
  C:\Users\Administrator\.gradle\caches\transforms-2\files-2.1\a3890adfdb75cc00c9c342ba929acf1b\res\layout\com_facebook_smart_device_dialog_fragment.xml:22: AAPT: error: attribute cardElevation (aka com.test.k22:cardElevation) not found.

https://mvnrepository.com/artifact/androidx.cardview/cardview/1.0.0

Download cardview-1.0.0.aar and import it into Assets/Plugins/Android directory.

[Solved] Unity Error: ‘BuildPipeline‘ does not contain a definition for ‘GetBuildTargetName‘

@[TOC] (error: Library \ packagecache \ com. Unity. XR [email protected] \Editor\XRGeneralBuildProcessor.cs(83,52): error CS0117: ‘BuildPipeline’ does not contain a definition for ‘GetBuildTargetName’)

Problem Description:

when unity develops oculus quest, it will report an error library \ packagecache \ com.unity.xr [email protected] \Editor \ xrgeneralbuildprocessor.cs (83,52): error cs0117: ‘buildpipeline’ doors not contain a definition for ‘getbuildtargetname’
my unit version is 2019.4


Cause analysis:

the version of the plug-in matches the version of the unity step, resulting in </ font>


Solution:

delete ar foundation, downgrade XR plug-in management to 3.2.16, downgrade ar foundation and arkit XR plug-ins to 4.1.1, and reinstall ar foundation
record the pit encountered and it has been solved

The mapboxsdk imports the higher version unity2020 and 2021 and reports an error arbackgroundrenderer

The mapboxsdk imports the higher version unity2020 and 2021 and reports an error arbackgroundrenderer

Using unity above 2020 will result in an error: solution:

Using unity above 2020 will result in an error:

Solution:

Only check mapbox when importing the installation package. The main reason is that unity changed the name and function of the arbackgroundrenderer class in version 2020, and mapbox did not update its SDK, resulting in the inability to use the AR function

Unity reports an error cs0619: ‘guitexture’ is obsolete

Unit reports an error when loading an old version of the project: unit reports an error assets \ standard assets \ utility \ forcedreset. CS (6,27): error cs0619: ‘guitexture’ is obsolete:

The solution is as follows:

1、 Forcedreset.cs

1. Add the namespace
using unityengine.ui;

2. The guitexture in [requirecomponent (typeof (guitexture))] is changed to image, and the result is: [requirecomponent (typeof (image))]

2、 Simpleactivatormenu.cs

1. Add the namespace
using unityengine.ui;

2. Change guitext in public guitext camswitchbutton to text, and the result is:
public text camswitchbutton;

[Solved] Unity3d reports an error using the opencv plug-in: unsafe code may only appear if compiling with/unsafe.

Problem description

When using the opencv for unity plug-in, the error “assets \ opencvforunity \ examples \ advanced \ alphablendingexample \ alphablendingexample. CS (530, 17): error CS0227: Unsafe code may only appear if compiling with /unsafe. Enable “Allow ‘unsafe’ code” in the inspector for ‘Assets/OpenCVForUnity/EnoxSoftware.OpenCVForUnity.asmdef’ to fix this error.”

Solution:

There are two ways to modify:

1. Tools entry modification

Tools > on the upper side of the window; OpenCV For Unity > Check use unsafe code
as shown below:

However, if there may be no such entrance, use method 2

2. Modify asmdef file

The. Asmdef file is an assembly definition file. This method is also available in the error prompt
modify the file in the path of assets/opencvforunity/enoxsoftware.opencvforunity.asmdef. After selecting the file, check the allow ‘unsafe’ code option in the inspector window and click apply.

Solve the error of Chinese file uploaded by springboot

Springboot version: 2.3.0.release

Front end use   File upload with unityengine.wwwform

Service error:

org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request; nested exception is java.lang.NoClassDefFoundError: javax/mail/internet/MimeUtility

Positioning questions:

POM file import dependency

        <dependency>
            <groupId>javax.mail</groupId>
            <artifactId>mail</artifactId>
            <version>1.4.7</version>
        </dependency>

Re run and solve the problem (* ^ ▽ ^ *)~~

Unit package manager error

Although the idea of changing unity to package manager is very good, we always encounter various exotic problems. For example, when importing the project, when processing the package, all kinds of prompts report errors, resulting in the project cannot be opened normally… Click continue to flash back.

Unity package manager error: unable to connect“ https://packages.unity.cn ”

It seems to be the problem of unity China.

The solutions are as follows:

Add environment variables and add them directly from the command line under CMD (please open it in administrator mode). The command is as follows: setx unity_ NOPROXY localhost,127.0.0.1

Wait for the environment variable to be added.

Update: some projects can be done like this. Today another project will always prompt unable to connect“ https://packages.unity.cn “It’s very painful. Unity is too rubbish. Normally, I copy the package cache from other projects. Shouldn’t it work?He can’t

Unity3d mount script error “can’t add script behavior TMP”_ CoroutineTween. …”

“Can’t add script behaviour TMP_ CoroutineTween. The script needs to derive from MonoBehaviour!”

If you can’t hang up the script when you hang up the game object in unity3d, the above error occurs, and the previously hung script can’t be hung back after being cancelled, then you may have the same problem as me

There is a compilation error in a script…

If it’s done, it’s done.