Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by unity_JhsnEsH2AQ_NpQ · Dec 22, 2021 at 05:07 AM · androidbuildbuild-errorandroid buildil2cpp

Unity Android IL2CPP Build Error

When I use IL2CPP when I want to install the game, it gives an error and I cannot get APK Output. (The MONO option works fine.)


I've been dealing with it for a week, I would be glad if you could help me.


Detailed output of the error on the console screen:


Internal build system error. BuildProgram exited with code -2147024893. System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Program Files\Unity\Hub\Editor\2021.2.5f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\�l2cpp\Release\StaticLibs\armeabi-v7a\compile.rsp'. at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle) at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options) at System.IO.StreamReader.ValidateArgsAndOpenPath(String path, Encoding encoding, Int32 bufferSize) at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks) at System.IO.File.InternalReadAllText(String path, Encoding encoding) at System.IO.File.ReadAllText(String path) at NiceIO.NPath.SystemIOFileSystem.File_ReadAllText(NPath path) at NiceIO.NPath.WindowsFileSystem.File_ReadAllText(NPath path) at Bee.Core.Stevedore.VirtualFileSystem.File_ReadAllText(NPath path) at NiceIO.NPath.RelayingFileSystem.File_ReadAllText(NPath path) at Bee.Core.BuildProgramFileSystem.File_ReadAllText(NPath path) at NiceIO.NPath.ReadAllText() at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupCompile(AndroidSharedLibraryConfiguration config, String name, AndroidTargetDeviceType deviceType, NPath sourceFilePath) at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupLibUnityLibrary()+MoveNext() at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection) at System.Collections.Generic.List`1.AddRange(IEnumerable`1 collection) at AndroidPlayerBuildProgram.AndroidPlayerBuildProgram.SetupPlayerBuild() at PlayerBuildProgramLibrary.PlayerBuildProgramBase.RunBuildProgram() at PlayerBuildProgramTypeWrapper.Run(String[] args) at Program.Main(String[] args) UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

Add comment

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image xxmariofer · Dec 22, 2021 at 07:31 AM 0
Share

could you check this path exists?

C:\Program Files\Unity\Hub\Editor\2021.2.5f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations

inside Variations there should be il2cpp folder, check if exits

avatar image unity_JhsnEsH2AQ_NpQ · Dec 22, 2021 at 06:10 PM 0
Share

@xxmariofer Thanks for your reply, the file path is not missing anything.

avatar image xxmariofer unity_JhsnEsH2AQ_NpQ · Dec 22, 2021 at 07:03 PM 0
Share

The error means it can't locate the compile.rsp file, if that file exists the problem would be probably with the directory name symbol (the l2cpp folder) I would first try to build the apk not targeting armv7, you can find in the build settings under android build settings a toggle selecting armv7 and other types (like arm64) try to select other

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by unity_JhsnEsH2AQ_NpQ · Dec 22, 2021 at 07:15 PM

@xxmariofer When I build apk not targeting Armv7, I get the same error for Arm64.

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image xxmariofer · Dec 22, 2021 at 07:37 PM 0
Share

Downloading the android sdk manually instead of using the unity hub default one will most likely solve the issue since it's a problem with paths, if you have already android sdk installed changed unity preference to use the other sdk

avatar image unity_JhsnEsH2AQ_NpQ · Dec 22, 2021 at 07:42 PM 0
Share

Thank you, i will try.

avatar image unity_JhsnEsH2AQ_NpQ · Dec 26, 2021 at 08:43 PM 0
Share

@xxmariofer I installed the sdk and jdk files in an external folder, (D:), and changed the file path in the External Tools screen. But nothing about the error has changed.

It still tries to reach the C: folder and gives the same error.

avatar image xxmariofer unity_JhsnEsH2AQ_NpQ · Dec 26, 2021 at 09:39 PM 0
Share

It is hard to say, have you tried building using mono instead of il2cpp, that must work 100%

avatar image unity_JhsnEsH2AQ_NpQ · Dec 26, 2021 at 09:44 PM 0
Share

@xxmariofer I need to use il2cpp and Release options to upload to google play. Am I wrong?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

293 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Can't build for Android with IL2CPP 1 Answer

Can not build to Android with backend Il2cpp 2 Answers

il2cpp android build error unity 2019.1.6f1 6 Answers

Android Build Fail, CommandInvokationFailure 1 Answer

Cannot build Android IL2CPP for Unity 5 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges