Win32Exception Native error= The system cannot find the file specified

Hi, everyone!

So today, I’m in the mood of publishing for the first time in my life. I have followed a few latest tutorials to get to the current stage. I’m having a build issue in Unity 2017.1.0f1 x64 (free):

Win32Exception: ApplicationName='E:\Android\android-sdk\build-tools\26.0.0\apksigner.bat', CommandLine='sign --ks "G:/Users/name/path/company/game/Key/game.keystore" --ks-pass pass:"nope" --ks-key-alias "key-game" --key-pass pass:"nada" "G:\Users

ame\path\company\game\Temp/StagingArea/Package.apk"', CurrentDirectory=‘Temp/StagingArea’, Native error= The system cannot find the file specified

I’m checking all paths and all the mentioned files are there where they are supposed to be: Java installed, SDK installed and updated, project folder ok, and Temp/Staging exists for a while but then gets cleaned after a while (after the error occurs). So, I’m a bit clueless right now.

I have exactly the same error. The only way for me to fix it was to change the “Build System” in your Publishing Settings to Gradle (New) instead of Internal (Default).

For me, deleting build-tools version 26 from android sdk manager, has helped.

Check the permissions of the aapt file in the folder, make sure that all users can read and execute it. That’s how I solved it.
The same with zipalign and apksigner, execute and read permissions for all users not only administrators.

listen to me I have the same problem and I solve this problem through:
1- download SDK tools version 25.2.5 from google that will download with zip file.
2- extract zip file.
3- open file--------->tool-----------> here will find android click right and run as administrator.
4- in this step will open the SDK manager.
5- choose android SDK Build-tool 27.0.3 and install it.
6- if you download SDK Build-tool 26 you should click on this and delete it
7- if you finish installing Build-tool 27.0.3 back to unity and open Other settings and choose from a minimum API level 16.
8- back to SDK manager and download Android API level 16 that will take 1 hour.
9- go-to preference in unity and Brouse SDK and choose SDK tools_r25.2.5-windows.
10- Build your project will succeded 100%100.,listen to me I have the same problem and I solve this problem through:
1- download SDK tools version 25.2.5 from google that will download with zip file.
2- extract zip file.
3- open file--------->tool-----------> here will find android click right and run as administrator.
4- this step will open the SDK manager.
5- choose android SDK Build-tool 27.0.3 and install it.
6- if you download SDK Build-tool 26 you should click on this and delete it
7- if you finish installing Build-tool 27.0.3 back to unity and open Other settings and choose from a minimum API level 16.
8- back to SDK manager and download Android API level 16 that will take 1 hour.
9- go-to preference in unity and Brouse SDK and choose SDK tools_r25.2.5-windows.
10- Build your project will succeded 100%100.