How to test a unity project with android cellphone?
How to test a unity project with android cellphone?
let's talk version first.
unity
unity version:2020.3.20f
For looking at unity version, see Unity Version. How to look at Unity Version? -- Unity (unitysettingtutorial.blogspot.com (My article)
cellphone
type: Galaxy M32
OS version:Android Version 11
UI Version:One UI Version 3.1
For looking at device version, see How to look at device version? -- Galaxy M32 (phonesettingstutorial.blogspot.com) (My article)
then let's talk extra package installation.
Android SDK, Android JDK, Android NDK and Gradle is required to test a unity project with android cellphone.
Android environment setup (including version capacity), see unity docs Unity - Manual: Android environment setup (unity3d.com)
Android SDK installation , see unity doc Unity - Manual: Android SDK/NDK setup (unity3d.com)
Android JDK installation , see unity doc Unity - Manual: Android environment setup (unity3d.com)
Android NDK installation ,see unity doc Unity - Manual: Android SDK/NDK setup (unity3d.com)
Gradle installation, see Gradle Build Tool
For setting package path setup, it simple. See Unity Setting (unitysettingtutorial.blogspot.com)
(My article)
Let's come back.
How to test a unity project with android cellphone?
Step1:
Install extra android package I mentioned above. Setup enviroment path.
[NOTE]
(1)
Great Importance!!! Please pay a lot on this notice!!!
Note that the path can neither contain chinese words nor special character
It can only contain digit, english letter and '_'
I recommend that the principle of naming your path is same as the principle of naming variables in C++.
Step2: Build a project in Unity
How to Build a project in unity? See Unity Setting (unitysettingtutorial.blogspot.com
(My article)
[NOTE]
Great Importance!!! Please pay a lot on this notice!!!
(1)
Great Importance!!! Please pay a lot on this notice!!!
The build project must be the subfolder of Packages in your project path.
i.e. <your project path>/Packages
When I don't select the correct path (for me, path is C:\UnityProject\PhoneTest\UnityPhoneTest8\Packages), I can not build a project successfully. The error message such as "Invalid build path: c:/unityproject/phonetest/unityphonetest8/projectsettings" will occurs.
For more details. See
(2)
Great Importance!!! Please pay a lot on this notice!!!
The path of build project can not contain chinese word or special word.
It can only contains english letter or digit or '_ '.
For more details. See Unity WebGL報錯BuildPlayerWindow+BuildMethodException_QQ734821120的博客-CSDN博客
When my path of build project contains chinese word, The error message such as "invalid build path" will occur.
(3)
Great Importance!!! Please pay a lot on this notice!!!
Path name about Desktop.
Although you rename "桌面" as "desktop" in Windows Manager,
Unity also recognize it as "桌面" instead of "desktop" that I expected.
So I recommend that when you create a new Unity project, don't select the location under "desktop" or "桌面".
But... . I created a new Unity project which location was under "desktop" at beginning. What did I do?
I just moved the Unity Project in C:\UnityProject\PhoneTest.
(4)
Great Importance!!! Please pay a lot on this notice!!!
But ... .When I moved some file from "desktop". I encountered an annoying issue. A window was popped up saying my file was opened, can not move it.
I think I did not open files, even though I closed all files, apps and folder windows. I can not solve this issue.
To reader, have you experienced the same problem. Do you think it is odd.
I thought it is odd before. After when I googled it for answer last night, I don't think it is odd anymore.
It may often be caused by thumbnail.db file.
Just close all files, apps and folder window. Then delete permanently about thumbs.db file (all start with "thumbcache" and "iconcache" ) as many as possible. After deleting it, it just left fewer than files.
Remeber that don't let system automatically generate about thumbnail.db file.
For more details. See Windows Settings Tutorial -- How to Clear up Thumbnail cache file and prevent the situation about system generating them automatically? (my article)
Comments
Post a Comment