To sum up some common problems and errors in creating apks in U3D!
1. Android SDK configuration problems
To create an android APK package, you must first download an official SDK package. Decompress the package locally and associate the SDK with U3D.
On the menu bar of U3D, choose edit-> preferences and set the parameters as follows:
To configure the SDK path, you must note that it must be a relative path... \ Android \ ADT-bundle \ SDK \. If the path is incorrect, the SDK tool version 0 <21 error will be prompted during packaging,
This is a pitfall. It takes a long time to find the cause.
2. Project path. No matter code resources or other art resources in the project, if the path contains Chinese characters, an error will be reported when packaging!
U3D usually prints the path with Chinese characters on the console.
3. the following is an error related to player setting. We recommend that you only use English for company and product. Because I have used numbers and failed to package, I don't need to say anything about Chinese!
Bundle identifier is also used only in English. Otherwise, U3D will prompt that the name of company, product, or bundle identifier is incorrect.
4. There is another problem. If the package is half done, the packaging process will automatically exit and no information is displayed,
Fortunately, I found a method. Haha! Find the optimization option in other setting and select. NET 2.0 in API compatibilitylevel,
. NET 2.0 subset is generally an API compatibility package for network packages. The APK package requires. NET 2.0.
Common U3D APK package errors