Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 ehsan1234 · May 27, 2016 at 07:29 AM · androidandroid builddllandroidpluginstripping

Android build problem with stripping level and Newtonsoft.Json.dll

hi I'm trying to build an android game but it give me the following error when i select something exept "Disable" in stripping level Error: UnityException: Failed assemblies stripper: C:/Program Files/Unity/Editor/Data/Mono/bin\mono.exe "C:\Program Files\Unity\Editor\Data\Tools/UnusedBytecodeStripper.exe" -l none -c link -a "Assembly-CSharp-firstpass.dll" -a "Assembly-CSharp.dll" -out output -x "C:\Program Files\Unity\Editor\Data\Tools\link.xml" -d "Temp/StagingArea/Data/Managed" -x "tmplink.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\AI.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Animation.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Audio.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\CloudWebServices.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Core.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\IMGUI.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\JSONSerialize.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\ParticlesLegacy.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\ParticleSystem.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Physics.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Physics2D.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Terrain.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\TerrainPhysics.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\TextRendering.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\UI.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\UNET.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\UnityAds.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\UnityAnalytics.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\UnityConnect.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\UnityWebRequest.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\VR.xml" -x "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Whitelists\Web.xml" current dir : Temp/StagingArea/Data/Managed result file exists: False. Timed out: False

stdout:

stderr:

Unhandled Exception: Mono.Linker.ResolutionException: Can not resolve reference: System.ComponentModel.AddingNewEventHandler

at Mono.Linker.Steps.MarkStep.MarkType (Mono.Cecil.TypeReference reference, System.Object markedby) [0x00000] in :0

at Mono.Linker.Steps.MarkStep.MarkField (Mono.Cecil.FieldReference reference, System.Object markedby) [0x00000] in :0

at Mono.Linker.Steps.MarkStep.MarkFields (Mono.Cecil.TypeDefinition type) [0x00000] in :0

at UnusedBytecodeStripper.VerboseMarkStep.ApplyPreserveInfo (Mono.Cecil.TypeDefinition type) [0x00000] in :0

at Mono.Linker.Steps.MarkStep.MarkType (Mono.Cecil.TypeReference reference, System.Object markedby) [0x00000] in :0

at Mono.Linker.Steps.MarkStep.MarkField (Mono.Cecil.FieldReference reference, System.Object markedby) [0x00000] in :0

at Mono.Linker.Steps.MarkStep.MarkFields (Mono.Cecil.TypeDefinition type) [0x00000] in :0

at UnusedBytecodeStripper.VerboseMarkStep.ApplyPreserveInfo (Mono.Cecil.TypeDefinition type) [0x00000] in :0

at Mono.Linker.Steps.MarkStep.MarkType (Mono.Cecil.TypeReference reference, System.Object markedby) [0x00000] in :0

at Mono.Linker.Steps.MarkStep.MarkInstruction (Mono.Cecil.Cil.Instruction instruction, Mono.Cecil.MethodDefinition markedby) [0x00000] in :0

at Mono.Linker.Steps.MarkStep.MarkMethodBody (Mono.Cecil.Cil.MethodBody body) [0x00000] in :0

at Mono.Linker.Steps.MarkStep.ProcessMethod (Mono.Cecil.MethodDefinition method) [0x00000] in :0

at Mono.Linker.Steps.MarkStep.ProcessQueue () [0x00000] in :0

at Mono.Linker.Steps.MarkStep.Process () [0x00000] in :0

at Mono.Linker.Steps.MarkStep.Process (Mono.Linker.LinkContext context) [0x00000] in :0

at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00000] in :0

at UnusedBytecodeStripper.Program.Main (System.String[] args) [0x00000] in :0

UnityEditor.MonoProcessUtility.RunMonoProcess (System.Diagnostics.Process process, System.String name, System.String resultingFile) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/MonoAssemblyStripping.cs:113) UnityEditor.MonoAssemblyStripping.MonoLink (BuildTarget buildTarget, System.String managedLibrariesDirectory, System.String[] input, System.String[] allAssemblies, UnityEditor.RuntimeClassRegistry usedClasses) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/MonoAssemblyStripping.cs:395) UnityEditor.HostView:OnGUI()

the problem will resolve when i disable stripping level or remove Newtonsoft.Json.dll (or build on windows) I'm using other dlls too, but don't have any problem with them.

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

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by ehsan1234 · May 28, 2016 at 05:25 AM

i changed Api compatibility level to .Net 2.0 and it work

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 ehsan1234 · May 28, 2016 at 07:46 AM 0
Share

the app will build after this change but Newtonsoft.Json not work... any suggest?

avatar image NJ-chieh · Oct 21, 2016 at 03:32 AM 0
Share

@ehsan1234 are you solve it. i have same problem for this.

avatar image
0

Answer by NJ-chieh · Oct 21, 2016 at 07:28 AM

the project work? i have same problem for this. can't solve it.

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

Answer by NJ-chieh · Oct 21, 2016 at 07:28 AM

i find the answer http://westwoodforever.blogspot.tw/2014/02/unityexception-failed-assemblies.html

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

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

How to get rid off error - The SourceSet 'lintOptions' not recognized by the Android Gradle Plugin 0 Answers

CommandInvokationFailure: Gradle build failed. unity 2019.4.22 1 Answer

android app dont start on device after inistalation 2 Answers

Unity game not working properly in android build,Scripts not functioning properly when building apk using unity 0 Answers

When update android project from 2017 to 2018, I can't build it anymore 0 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