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\name\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.
Answer by Evgenij · Jul 12, 2017 at 02:41 PM
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).
Can you help? Changing to Gradle doesn't help me. I already that build system set to gradle before this error occurred.
Answer by BadGrumpyCat · Jul 15, 2017 at 07:44 PM
For me, deleting build-tools version 26 from android sdk manager, has helped.
Interesting as this was the skd version Unity was building against for me as well. I however also reverted back to the .Net 3.5 + the Gradle build system and app is now published.
Yeah, I fixed the issue by deleting version 26.0.0 and installing 25.0.3 using Android Studio.
This helped to me
@DevLuke " I fixed the issue by deleting version 26.0.0 and installing 25.0.3 using Android Studio."
Answer by ermenda · Sep 14, 2017 at 06:24 PM
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.
Answer by d-o4 · Jun 26, 2020 at 03:23 PM
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.
Your answer
Follow this Question
Related Questions
Problem with unity editor 0 Answers
iOS 9 Bloating Unity Apps 0 Answers
Interactive 2D map using shapefiles 0 Answers
How to duplicate a file and save it in a new folder? 0 Answers
Variables not showing in Inspector 2 Answers