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 alee26 · Nov 08, 2021 at 11:42 AM · il2cpp

Unity 2021.2 android project "classes.jar does not exist" error

Hi I have upgraded my project from unity 2019.3.14f1 to 2021.2.1f1. I have installed unity and android support with unityhub. So now unity runs ndk, sdk, jdk and graddle from recommended installs. After setting up the environment I have tried to make my first build but got the below errors. I have tried to build an empty project but the error has repeated. Here are the errors: 1- Building F:\UnityProjects\2021x\RT321x\Library\Android\Prj\IL2CPP\Gradle\unityLibrary\libs\unity-classes.jar failed with output: The source path C:\Program Files\Unity 2021.2.1f1\Editor\Data\PlaybackEngines\AndroidPlayer\Variations\ıl2cpp\Release\Classes\classes.jar does not exist. UnityEditor.GenericMenu:CatchMenu (object,string[],int)

2- Building Library\Bee\artifacts\Android\ManagedStripped failed with output: Unknown arguments : --�nclude-link-xml=F:/UnityProjects/2021x/RT321x/Temp/StagingArea/Data/Managed\MethodsToPreserve.xml --�nclude-link-xml=F:/UnityProjects/2021x/RT321x/Temp/StagingArea/Data/Managed\TypesInScenes.xml --�nclude-link-xml=C:/Program Files/Unity 2021.2.1f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/AndroidNativeLink.xml --�nclude-directory=F:/UnityProjects/2021x/RT321x/Temp/StagingArea/Data/Managed --�nclude-unity-root-assembly=F:/UnityProjects/2021x/RT321x/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll --�nclude-unity-root-assembly=F:/UnityProjects/2021x/RT321x/Temp/StagingArea/Data/Managed/Unity.TextMeshPro.dll --�nclude-unity-root-assembly=F:/UnityProjects/2021x/RT321x/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll UnityEditor.GenericMenu:CatchMenu (object,string[],int)

3- BuildFailedException: Incremental Player build failed! UnityEditor.Modules.BeeBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args) (at :0) UnityEditor.Modules.DefaultBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :0) UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at :0) UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.Int32 subtarget, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at :0) UnityEditor.GenericMenu:CatchMenu(Object, String[], Int32)

4- Build completed with a result of 'Failed' in 40 seconds (40217 ms) UnityEditor.GenericMenu:CatchMenu (object,string[],int)

5- UnityEditor.BuildPlayerWindow+BuildMethodException: 4 errors at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002d8] in :0 at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0 UnityEditor.GenericMenu:CatchMenu (object,string[],int)

Notes: -I am running a pc with Windows 7 SP1 64bit English and all necessary updates were installed. -I have tried several installs of unity 2021.2.1f1 with or without unityhub. -I have tried running unity with external sdk, jdk and ndk with the right versions.

I am on an update for the project and now its pending because of this build error, so please HELP :)

Comment
Add comment
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

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by said123sawn · Nov 22, 2021 at 08:08 PM

I don't know if you have solved this problem, but let me tell you anyway, I solved this problem by making "PlayerSettings>Managed Stripping" Level "Disabled".

Comment
Add comment · Show 2 · 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 alee26 · Nov 26, 2021 at 01:28 PM 0
Share

Thank you for your reply. I have tried disabling managed stripping but it did not work. Same problem contiued. I have downgraded to unity 2019.3.14f1. Downgrading solved this problem :)

avatar image wdr434-domowe · Apr 27 at 07:05 AM 0
Share

It was helps me but i must mention, not directly. In my case i must have set up IL2CPP, but to be able to see Disabled option i was need to have Mono. So i've set up mono and builded. Then i saw other issue, with external library (TriLib). I have fixed that issue and get back to IL2CPP and Managed Stripping Level Minimal. And everything works fine Unity 2021.3.1

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

131 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

Related Questions

iOS 64 bit support problem 1 Answer

Out of memory errors on iOS with 64-bit build 1 Answer

Some scripts not running on device with IL2CPP 3 Answers

IOS IL2CPP runtime error​ NullReferenceException 1 Answer

IL2CPP Android Build Failure 5.5.0p3 1 Answer


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