菜鸡学Unity 之 坑神之路 (记录坑点,不断更新中~)

LZ-Says:万事儿开头难,枪在手,不得不发~

这里写图片描述

前言

最近在了解Unity这块的内容,不得不说,新的领域,陌生的代码世界,初入茅庐,太多的陌生与不适,唯有咬紧牙关,坚持下去,到最后,会发现,一切不过尔尔!

这里写图片描述

本文目标

本文,将作为在Study Unity过程中遇到的问题记录汇总,欢迎各位补充~

LZ当前软件环境

Unity: Unity 2017.3.1f1 (64-bit)

Visual Studio: Visual Studio 2017 社区版

问题详情以及解决之道

1. Failed to compile resources with the following parameters

问题详细日志:

-bootclasspath "E:/WorkSoftware/AndroidStudio/sdk\platforms\android-27\android.jar" -d "E:\UntiyPro\UnityDemo\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding UTF-8 "com\aiyou\testlib\R.java" "com\aiyou\testlib\resources\R.java"
警告: E:\WorkSoftware\AndroidStudio\sdk\platforms\android-27\android.jar(java/lang/Object.class): 主版本 52 比 51 新, 此编译器支持最新的主版本建议升级此编译器
警告: E:\WorkSoftware\AndroidStudio\sdk\platforms\android-27\android.jar(java/lang/AutoCloseable.class): 主版本 52 比 51 新, 此编译器支持最新的主版本建议升级此编译器
2个警告UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

问题解决办法:

首先,我们需要清楚:

从Unity 2017开始,Unity与JDK 9不兼容,所以只能降级到 JDK 8 (1.8)

所以,第一步,需要将你电脑安装的JDK版本替换到JDK 8,并且配置好相关环境变量以及Unity所依赖的JDK。

其次,LZ属于由Android提供Jar包供Unity使用,所以,在打包过程中,需要指定当前使用的JDK版本,如下:

    compileOptions {sourceCompatibility JavaVersion.VERSION_1_8targetCompatibility JavaVersion.VERSION_1_8}

2. Android SDK is outdated

问题截图:

这里写图片描述

问题解决:

你可以点击左侧,去Update Android SDK,也可以点击右侧Use Highest Installed使用本地已下载安装的最高版本。

3. Unable to list target platforms

问题截图:

这里写图片描述

日志详情:

这里写图片描述

问题解决:

这个问题是:Unity编译Android包错误导致,也就是Unity找不到SDK的Tools。

需要官方下载对应的Tools包,之后解压到本地SDK安装目录即可,下面附上官方地址:

https://developer.android.com/studio/index.html

完成之后本地sdk目录如下:

这里写图片描述

而有的小伙伴会问了,我该下载什么呢?

类似这:tools_r25.2.3-windows.zip

根据你版本看即可,下面附上一张网上哥儿们对比的不同版本(25.2.3 vs 25.3.1)之间的tools目录区别。

这里写图片描述

4. Unable to list target platforms

问题截图:

这里写图片描述

日志详情:

CommandInvokationFailure: Gradle build failed. 
C:/Program Files/Java/jdk1.8.0_161\bin\java.exe -classpath "E:\WorkSoftware\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.0.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleRelease"stderr[
Dex: Error converting bytecode to dex:
Cause: Dex cannot parse version 52 byte code.
This is caused by library dependencies that have been compiled using Java 8 or above.
If you are using the 'java' gradle plugin in a library submodule add 
targetCompatibility = '1.7'
sourceCompatibility = '1.7'
to that submodule's build.gradle file.UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Exception parsing classesat com.android.dx.command.dexer.Main.processClass(Main.java:781)at com.android.dx.command.dexer.Main.processFileBytes(Main.java:747)at com.android.dx.command.dexer.Main.access$1200(Main.java:88)at com.android.dx.command.dexer.Main$FileBytesConsumer.processFileBytes(Main.java:1689)at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:284)at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:166)at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:144)at com.android.dx.command.dexer.Main.processOne(Main.java:695)at com.android.dx.command.dexer.Main.processAllFiles(Main.java:592)at com.android.dx.command.dexer.Main.runMonoDex(Main.java:321)at com.android.dx.command.dexer.Main.run(Main.java:292)at com.android.builder.internal.compiler.DexWrapper.run(DexWrapper.java:54)at com.android.builder.core.DexByteCodeConverter.lambda$dexInProcess$0(DexByteCodeConverter.java:174)at java.util.concurrent.FutureTask.run(FutureTask.java:266)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)at java.lang.Thread.run(Thread.java:748)
Caused by: com.android.dx.cf.iface.ParseException: bad class file magic (cafebabe) or version (0034.0000)at com.android.dx.cf.direct.DirectClassFile.parse0(DirectClassFile.java:476)at com.android.dx.cf.direct.DirectClassFile.parse(DirectClassFile.java:406)at com.android.dx.cf.direct.DirectClassFile.parseToInterfacesIfNecessary(DirectClassFile.java:388)at com.android.dx.cf.direct.DirectClassFile.getMagic(DirectClassFile.java:251)at com.android.dx.command.dexer.Main.parseClass(Main.java:793)at com.android.dx.command.dexer.Main.access$1600(Main.java:88)at com.android.dx.command.dexer.Main$ClassParserTask.call(Main.java:1728)at com.android.dx.command.dexer.Main.processClass(Main.java:779)... 16 more1 error; abortingFAILURE: Build failed with an exception.* What went wrong:
Execution failed for task ':transformClassesWithDexForRelease'.
> com.android.build.api.transform.TransformException: java.lang.RuntimeException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Return code 1 for dex process* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.BUILD FAILED in 2s

问题原因以及解决:

这是由于使用Java 8 或 以上编译的库以来关系引起。

所以,将Unity JDK路径替换为JDK 1.7即可:

这里写图片描述

5. Gradle build failed.See the Console for details.

问题截图:

这里写图片描述

日志详情:

CommandInvokationFailure: Gradle build failed. 
C:/Program Files/Java/jdk1.7.0_80\bin\java.exe -classpath "E:\WorkSoftware\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.0.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleRelease"stderr[FAILURE: Build failed with an exception.* Where:
Build file 'E:\UntiyPro\UnityDemo\Temp\gradleOut\build.gradle' line: 20* What went wrong:
A problem occurred evaluating root project 'gradleOut'.
> java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.BUILD FAILED in 1s
]
stdout[]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1 progress, System.String error)
UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

重点关注:Unsupported major.minor version 52.0

JDK高版本能兼容低版本,但是低版本不能兼容高版本。由于之前使用JDK 1.8编译,遂导致JDK 1.7 无法编译 JDK 1.8 编译后的项目。

所以,只需要将Unity中的JDK版本修改为 1.8 的即可。

6. CommandInvokationFailure: Gradle build failed (这个就是屎啊!!!)

问题截图:

这里写图片描述

异常日志:

CommandInvokationFailure: Gradle build failed. 
C:/Program Files/Java/jdk1.8.0_161\bin\java.exe -classpath "E:\WorkSoftware\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.0.1.jar" org.gradle.launcher.GradleMain "-Dorg.gradle.jvmargs=-Xmx2048m" "assembleRelease"stderr[FAILURE: Build failed with an exception.* What went wrong:
Execution failed for task ':transformClassesWithDexForRelease'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Lcom/aiyou/testlib/BuildConfig;* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.BUILD FAILED in 2s
]
stdout[
NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to E:\WorkSoftware\AndroidStudio\sdk\ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.NDK is missing a "platforms" directory.
If you are using NDK, verify the ndk.dir is set to a valid NDK directory.  It is currently set to E:\WorkSoftware\AndroidStudio\sdk\ndk-bundle.
If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.The setTestClassesDir(File) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the setTestClassesDirs(FileCollection) method instead.
The getTestClassesDir() method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the getTestClassesDirs() method instead.
The ConfigurableReport.setDestination(Object) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use the method ConfigurableReport.setDestination(File) instead.
:preBuild UP-TO-DATE
:preReleaseBuild UP-TO-DATE
:checkReleaseManifest
:unity-android-resources:preBuild UP-TO-DATE
:unity-android-resources:preReleaseBuild UP-TO-DATE
:unity-android-resources:checkReleaseManifest
:unity-android-resources:prepareReleaseDependencies
:unity-android-resources:compileReleaseAidl
:unity-android-resources:compileReleaseNdk NO-SOURCE
:unity-android-resources:compileLint
:unity-android-resources:copyReleaseLint NO-SOURCE
:unity-android-resources:mergeReleaseShaders
:unity-android-resources:compileReleaseShaders
:unity-android-resources:generateReleaseAssets
:unity-android-resources:mergeReleaseAssets
:unity-android-resources:mergeReleaseProguardFiles UP-TO-DATE
:unity-android-resources:packageReleaseRenderscript NO-SOURCE
:unity-android-resources:compileReleaseRenderscript
:unity-android-resources:generateReleaseResValues
:unity-android-resources:generateReleaseResources
:unity-android-resources:packageReleaseResources
:unity-android-resources:processReleaseManifest
:unity-android-resources:generateReleaseBuildConfig
:unity-android-resources:processReleaseResources
:unity-android-resources:generateReleaseSources
:unity-android-resources:incrementalReleaseJavaCompilationSafeguard
:unity-android-resources:javaPreCompileRelease
:unity-android-resources:compileReleaseJavaWithJavac
:unity-android-resources:processReleaseJavaRes NO-SOURCE
:unity-android-resources:transformResourcesWithMergeJavaResForRelease
:unity-android-resources:transformClassesAndResourcesWithSyncLibJarsForRelease
:unity-android-resources:mergeReleaseJniLibFolders
:unity-android-resources:transformNativeLibsWithMergeJniLibsForRelease
:unity-android-resources:transformNativeLibsWithSyncJniLibsForRelease
:unity-android-resources:bundleRelease
:prepareReleaseDependencies
:compileReleaseAidl UP-TO-DATE
:compileReleaseRenderscript UP-TO-DATE
:generateReleaseBuildConfig UP-TO-DATE
:generateReleaseResValues UP-TO-DATE
:generateReleaseResources UP-TO-DATE
:mergeReleaseResources UP-TO-DATE
:processReleaseManifest
:processReleaseResources
:generateReleaseSources
:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE
:javaPreCompileRelease
:compileReleaseJavaWithJavac UP-TO-DATE
:compileReleaseNdk NO-SOURCE
:compileReleaseSources UP-TO-DATE
:lintVitalRelease
:mergeReleaseShaders UP-TO-DATE
:compileReleaseShaders UP-TO-DATE
:generateReleaseAssets UP-TO-DATE
:mergeReleaseAssets
:transformClassesWithDexForRelease FAILED
40 actionable tasks: 30 executed, 10 up-to-date
]
exit code: 1
UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidJavaTools.RunJava (System.String args, System.String workingdir, System.Action`1 progress, System.String error)
UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
Rethrow as GradleInvokationException: Gradle build failed
UnityEditor.Android.GradleWrapper.Run (System.String workingdir, System.String task, System.Action`1 progress)
UnityEditor.Android.PostProcessor.Tasks.BuildGradleProject.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

问题解决办法:

第一种方式: 这种方式也知道是什么鬼 后期有时间了解下

Build System选择Internal即可。

这里写图片描述

第二种方式:

解决办法:

直接用winrar打开然后选中BuildConfig.class文件 ,再点击工具栏的“删除”图标就可以了。

放大图、图、图~:

这里写图片描述

之后Build打包即可~

7. Error: NDK 16.1.4479499 is incompatible with IL2CPP & IL2CPP requires r 13b (64-bit)(13.1.3345770)

问题截图:

这里写图片描述

问题原因:

当前版本不兼容:

目前,Android上的IL2CPP需要特定版本的Android NDK(r13b)。

问题解决:

可以通过单击设置NDK路径的字段旁边的“Download”按钮来下载此版本

8. All compiler errors have to be fixed before you can enter playmode

问题截图:

这里写图片描述

问题原因:

编译失败,有错误异常产生。

问题解决:

点击Window选择Console查看错误并解决即可。

8. ExitGUIException: Exception of type ‘UnityEngine.ExitGUIException’ was thrown.

错误日志:

ExitGUIException: Exception of type 'UnityEngine.ExitGUIException' was thrown.
UnityEngine.GUIUtility.ExitGUI () (at C:/buildslave/unity/build/Runtime/IMGUI/Managed/GUIUtility.cs:152)
UnityEditor.Android.AndroidJavaTools.BrowseForJDK (System.String jdkPath)
UnityEditor.Android.AndroidJavaTools.LocateJDKHome ()
UnityEditor.Android.AndroidJavaTools.get_javaPath ()
UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.GetSDKBuildToolsDir ()
UnityEditor.Android.AndroidSDKTools.UpdateToolsDirectories ()
UnityEditor.Android.AndroidSDKTools..ctor (System.String sdkRoot)
UnityEditor.Android.AndroidSDKTools.GetInstance ()
UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessAndroidPlayer.PrepareForBuild (BuildOptions options, BuildTarget target)
UnityEditor.Android.AndroidBuildPostprocessor.PrepareForBuild (BuildOptions options, BuildTarget target)
UnityEditor.PostprocessBuildPlayer.PrepareForBuild (BuildOptions options, BuildTargetGroup targetGroup, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:87)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

解决:

查看本地JDK配置,LZ是由于更改了本地JDK版本导致。

9. Win32Exception: ApplicationName

错误日志:

Win32Exception: ApplicationName='C:/Program Files/Java/jdk1.8.0_161\bin\java.exe', CommandLine='-Xmx2048M -Dcom.android.sdkmanager.toolsdir="E:/WorkSoftware/AndroidStudio/sdk\tools" -Dfile.encoding=UTF8 -jar "E:\WorkSoftware\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -', CurrentDirectory='E:\UntiyPro\UcenterSdkTest'
System.Diagnostics.Process.Start_noshell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process)
System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process)
System.Diagnostics.Process.Start ()
(wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
UnityEditor.Utils.Program.Start (System.EventHandler exitCallback) (at C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:44)
UnityEditor.Utils.Program.Start () (at C:/buildslave/unity/build/Editor/Mono/Utils/Program.cs:28)
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.RunCommand (System.String[] sdkToolCommand, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.AndroidSDKTools.GetSDKBuildToolsDir ()
UnityEditor.Android.AndroidSDKTools.UpdateToolsDirectories ()
UnityEditor.Android.AndroidSDKTools..ctor (System.String sdkRoot)
UnityEditor.Android.AndroidSDKTools.GetInstance ()
UnityEditor.Android.PostProcessor.Tasks.CheckAndroidSDK.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessAndroidPlayer.PrepareForBuild (BuildOptions options, BuildTarget target)
UnityEditor.Android.AndroidBuildPostprocessor.PrepareForBuild (BuildOptions options, BuildTarget target)
UnityEditor.PostprocessBuildPlayer.PrepareForBuild (BuildOptions options, BuildTargetGroup targetGroup, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:87)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

问题解决:

由于LZ在打开Unity的时候,变更了本地JDK版本,导致找不到java.exe文件。

个人公众号

欢迎关注个人公众号,不定期发布博文,感叹等等~

这里写图片描述

让我们一起愉快的撸码~

赞赏

如果感觉LZ所为对你有所帮助,不妨赞助LZ喝点小玩意,啦啦啦~

这里写图片描述

参考资料

  1. https://blog.csdn.net/onafioo/article/details/72548259;
  2. https://blog.csdn.net/superit401/article/details/72731381;
  3. https://blog.csdn.net/qq_37174705/article/details/79825157;
  4. https://answers.unity.com/questions/1325711/error-ndk-1403770861-is-incompatible-with-il2cpp-i.html;
  5. https://github.com/sinaweibosdk/weibo_android_sdk/issues/32;

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.rhkb.cn/news/56868.html

如若内容造成侵权/违法违规/事实不符,请联系长河编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

如何从零学习游戏开发

如何做游戏?从哪里开始学习?找工作需要会哪些东西?我已经工作只想业余时间做游戏该学什么?不知道你是不是和当初的我一样有很多困惑。根据我自身的经验带你去了解如何开始学习游戏开发。 我目前已经 工作2年了,大学时期…

菜鸡学Unity 之 Unity中的坐标系(世界坐标系和局部坐标系)

LZ-Says:哎呦喂,时间,时间,慢点过~ 前言 Today,一起来了解下在Unity中的坐标系。 首先,我们要清楚的是,在Unity中,坐标系分为俩种: 世界坐标系;局部坐标系…

菜鸡学Unity 之 汇总撸码过程中遇到的低级错误(一)

LZ-Says:不畏艰难,一起干!!! 前言 对于任何一门新接触的语言,我们总会因为不熟悉从而导致犯一些基本的低级错误,对于错误,我们要秉承拥抱的态度,遇到的越多,…

菜鸡学Unity 之 Unity中对游戏物体的常用操作旋转移动放缩

LZ-Says:愿时光依旧,美好前方~ 前言 本小节,我们一起来看下Unity中对游戏物体的常用操作旋转移动放缩这些基本骚操作吧~ 基本骚操作 全程都可以简单操纵鼠标完成,当然,直接有效是直接设置数值喽~ 鼠标控制完成基本…

菜鸡学Unity 之 Unity中的基本模型和场景操作

LZ-Say:努力,只是为了有个更好的未来~ 前言 如果我们要做一个3D游戏,那么就会需要一些模型,而模型的设计工具有玛雅,3D MAX,通常由美工和专业人员为我们设计好模型,然后导入Unity&#xff0c…

菜鸡学Unity 之 了解 Unity 中的五个视图窗口

LZ-Says:书山有路勤为径,学海无涯苦作舟~ 简述 本文作为Unity学习的第四篇博文,诣在通过简单了解本质,说白了,让我们一起一步步的熟悉Unity的使用,其次愉快的开启我们的撸码之路。 而今天,我们…

潘云鹤院士获吴文俊人工智能最高成就奖!第十一届“吴文俊人工智能科学技术奖”揭晓...

来源:中国人工智能学会 文章整理:自央视新闻、北京日报 链接: https://content-static.cctvnews.cctv.com/snow-book/video.html?item_id7729020039002188616&t1657962648440&toc_style_idvideo_default&share_towechat&tra…

程序员用300行代码,让外婆实现语音搜索购物

“阿强,手写板怎么又不见了?” 最近,程序员阿强的那位勇于尝试新事物的外婆,又迷上了网购。在不太费劲儿地把购物软件摸得门儿清之后,没想到,本以为顺畅的网购之路,卡在了搜索物品上。 在手写…

Android App开发语音处理之系统自带的语音引擎、文字转语音、语音识别的讲解及实战(超详细 附源码)

需要源码请点赞关注收藏后评论区留下QQ~~~ 一、系统自带的语音引擎 语音播报的本质是将书面文字转换成自然语言的音频流,这个转换操作被称作语音合成,又称TTS(从文本到语音)在转换过程中,为了避免机械合成的呆板和停顿…

自动聊天挂机项目

三木智能聊天云控脚本

拼多多顶级佣金助手-微信群自动发单

注意:微信版本必须使用软件根目录下的安装包安装 1.进入多多进宝网站-注册多多进宝-并创建推广位... 2.打开软件点击-多多授权-授权页面-授权成功会跳转百度,复制百度地址栏code后面的code码... 3.粘贴到软件CODE输入框-点击-确定授权... 4.推广位ID框中出现你自…

30行python代码实现微信自动陪女盆友聊天(itchat-uos + 无限制调用)

先放代码: 再放个文字的(方便复制): import itchat import requestsdef get_reply(keyword):try:url f"https://open.drea.cc/bbsapi/chat/get?keyWord{keyword}&userNametype%3Dbbs"res requests.get(url)data…

[做初中数学题做到打起来了]跟同事为了他小孩的数学题杠上了

✅作者简介:人工智能专业本科在读,喜欢计算机与编程,写博客记录自己的学习历程。 🍎个人主页:小嗷犬的博客 🍊个人信条:为天地立心,为生民立命,为往圣继绝学,…

Whatsapp有效号码筛选 – 号码过滤器 | 电话号码过滤筛选 |配合 Whatsapp营销协议群发软件

Whatsapp号码过滤器能进行快速电话号码过滤筛选,过滤已开通whatsapp号码有效性,精准筛选出有用的whatsapp号码。Whatsapp号码筛选器可与各类Whatsapp群发软件、电话号码采集软件搭配使用,有助于辨识有效Whatsapp号码,过滤无效号码…

网络流量pcap包特征提取并保存

前言 新手写博客,写博客主要目的是为了记录自己做项目的一些过程。关于网络流量项目,刚开始做项目一个月左右,所写的博客必然有很多不足的地方,欢迎大家交流和指教。 获取pcap包 pcap包特征提取第一步是要获得pcap包。pcap一般…

TCP、UDP数据包大小的限制

一、概述 首先要看TCP/IP协议,涉及到四层:链路层,网络层,传输层,应用层。    其中以太网(Ethernet)的数据帧在链路层    IP包在网络层    TCP或UDP包在传输层    TCP或UDP中的数据&…

为程序员准备的英语学习资料

程序员学习英语有用吗?当然有用,而且有很大用! 当我们浏览StackOverFlow的时候,当我们和外国技术大牛交流的时候,当我们去面试FLAG(Facebook,LinkedIn,Amazon,Google&…

黑马程序员python培训PDF下载

在分享资源之前,大家可以先想清楚未来的职业发展方向。毕竟只有找到未来职业发展方向,才更清楚当下重点学习的内容。 根据上图我们基本上一目了然,找到自己未来要发展的方向。在找到之后可以在各个招聘app上了解一下相关岗位的技能要求是什么…

黑马程序员7

算数运算符重载 运算符重载概念:对已有的运算符重新进行定义,赋予其另一种功能,以适应不同的数据类型 加号运算符 通过自己写函数,实现两个对象相加属性后返回新的对象 两种方式重载 成员函数方式重载 全局函数重载 上来 perso…

黑马程序员14套经典IT教程+面试宝典

很多同学对互联网比较感兴趣 ,奈何苦恼不知道如何入门。今天免费给大家分享一波,黑马程序员14套经典IT教程程序员面试宝典!涉及Java、前端、Python、大数据、软件测试、UI设计、新媒体短视频等。从厌学到学嗨,你只差一套黑马教程&…