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 /
This question was closed Feb 06, 2018 at 09:15 AM by pako for the following reason:

The question is answered, right answer was accepted

avatar image
1
Question by husnain_rao · Jan 21, 2018 at 04:17 PM · build-errorerror messageandroid buildtools

android Build Issue

Hey Firends i m getting an error message while build to android Ther errors are:

 CommandInvokationFailure: Failed to re-package resources.
 E:\Softwere\Dev Tools\ANdroid Development\Sdk_tools\build-tools\27.0.3\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "E:/Softwere/Dev Tools/ANdroid Development/Sdk_tools\platforms\android-23\android.jar" -F bin/resources.ap_
 //
 UnityEditor.BuildPlayerWindow+BuildMethodException: 3 errors
   at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (BuildPlayerOptions options) [0x00207] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:172 
   at UnityEditor.BuildPlayerWindow.CallBuildMethods (Boolean askForBuildLocation, BuildOptions defaultBuildOptions) [0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83 
 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
 
 


i m using unity(2017.2.0) can any one solve this issue Thanx.

Comment
Add comment · Show 2
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 WinterboltGames · Jan 21, 2018 at 04:19 PM 0
Share

can you please share the full log?

avatar image husnain_rao · Jan 21, 2018 at 06:36 PM 0
Share

alt text

CommandInvokationFailure: Failed to build apk. C:/Program Files/Java/jdk-9.0.1\bin\java.exe -Xmx2048$$anonymous$$ -Dcom.android.sdkmanager.toolsdir="E:/Softwere/Dev Tools/ANdroid Development/Sdk_tools\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

stderr[ Exception in thread "main" java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.Native$$anonymous$$ethodAccessorImpl.invoke0(Native $$anonymous$$ethod) at java.base/jdk.internal.reflect.Native$$anonymous$$ethodAccessorImpl.invoke(Native$$anonymous$$ethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.Delegating$$anonymous$$ethodAccessorImpl.invoke(Delegating$$anonymous$$ethodAccessorImpl.java:43) at java.base/java.lang.reflect.$$anonymous$$ethod.invoke($$anonymous$$ethod.java:564) at SD$$anonymous$$$$anonymous$$ain.main(SD$$anonymous$$$$anonymous$$ain.java:130) Caused by: java.lang.NoClassDefFoundError: sun/misc/BASE64Encoder at com.android.sdklib.internal.build.SignedJarBuilder.(SignedJarBuilder.java:177) at com.android.sdklib.build.ApkBuilder.init(ApkBuilder.java:446) at com.android.sdklib.build.ApkBuilder.(ApkBuilder.java:422) at com.android.sdklib.build.ApkBuilder.(ApkBuilder.java:362) at UnityApkBuilder.(UnityApkBuilder.java:214) at UnityApkBuilder.main(UnityApkBuilder.java:34) ... 5 more Caused by: java.lang.ClassNotFoundException: sun.misc.BASE64Encoder at java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:466) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:563) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:496) ... 11 more ] stdout[

] exit code: 1 UnityEditor.Android.Command.WaitForProgramToRun (UnityEditor.Utils.Program p, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String error$$anonymous$$sg) UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String error$$anonymous$$sg) UnityEditor.Android.AndroidSD$$anonymous$$Tools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memory$$anonymous$$B, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String error$$anonymous$$sg) UnityEditor.Android.AndroidSD$$anonymous$$Tools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memory$$anonymous$$B, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String error$$anonymous$$sg) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)

capture.png (109.4 kB)

1 Reply

  • Sort: 
avatar image
1
Best Answer

Answer by husnain_rao · Jan 23, 2018 at 10:02 AM

Downgrading to Jdk8 Worked For me!

Comment
Add comment · Show 6 · 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 Ellior · Feb 05, 2018 at 07:39 PM 0
Share

The same problem. Jdk8 didn't helped

avatar image husnain_rao Ellior · Feb 06, 2018 at 09:01 AM 0
Share

Please post Your Errors.

avatar image pako Ellior · Feb 06, 2018 at 09:15 AM 0
Share

@Ellior this is a very specific problem, which gets solved by downgrading to JD$$anonymous$$ 8. since Unity is currently incompatible with JD$$anonymous$$ 9.

So, if downgrading to JD$$anonymous$$ 8 didn't help you, it's NOT the same problem. Post a new question.

avatar image husnain_rao · Feb 06, 2018 at 09:32 AM 0
Share

i am telling u that downgrading solved my issue

avatar image pako husnain_rao · Feb 06, 2018 at 09:35 AM 0
Share

who are u telling that and why?

avatar image husnain_rao · Feb 06, 2018 at 03:52 PM 0
Share

i am Husnain Rao u can see my Name

Follow this Question

Answers Answers and Comments

79 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

Related Questions

The game freezes after a splash screen 0 Answers

CommandInvokationFailure: Failed to re-package resources. 0 Answers

How to remove android.enableR8' from the project 9 Answers

Please Help! CommandInvokationFailure and other build errors 1 Answer

how do i get OpenSSL for android build facebook setting? 2 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