unity 打包 Android 解决方法 Asset Packaging Tool failed.

错误提示:

CommandInvokationFailure: Android Asset Packaging Tool failed.
D:\AndriodAndJAVA\AndroidSDK\SDK\build-tools\26.0.3\aapt.exe package -v -f -F raw.ap_ -A raw -0 "" --ignore-assets "!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~"

Assets\StreamingAssets路径下不能放中文文件夹,删除文件夹就好

错误 提示:

CommandInvokationFailure: Gradle build failed. 
D:/AndriodAndJAVA/JDK1.8.0_111\bin\java.exe -classpath "F:\Unity 2018.2.0f2 (64-bit)\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Tools\gradle\lib\gradle-launcher-4.2.1.jar"

unity 打包 Android 解决方法 Asset Packaging Tool failed._第1张图片

改为 internal ,原因是Gradle  需要签名,internal 不用

错误提示:

CommandInvokationFailure: Unable to install APK to device. Please make sure the Android SDK is installed and is properly configured in the Editor. See the Console for more details.

手机数据线连接电脑不稳定,或者重新安装手机SDK ,还有打开开发者模式,设置手机为可调试,当安装时,点击允许安装

你可能感兴趣的:(学习优化)