• 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 Sep 14, 2017 at 03:49 PM by PersianKiller for the following reason:

The question is answered, right answer was accepted

avatar image
0
Question by PersianKiller · Sep 14, 2017 at 07:08 AM · apk

apk build problem.

I changed my windows and now I can't build apk file.I have sdk and jre and jdk.I don't know why this is happening !
alt text

untitled.png (103.7 kB)
Comment
Add comment · Show 1
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 kaplica · Sep 14, 2017 at 07:26 AM 0
Share

See this answer http://answers.unity3d.com/questions/760989/failed-to-re-package-resources-2.html

2 Replies

  • Sort: 
avatar image
0
Best Answer

Answer by kaplica · Sep 14, 2017 at 08:48 AM

Few things to try out:

Try a different aapt.exe (different version, maybe not 24.0).

See if you have any duplicates of libraries like play-services.aar with google-play-services_lib. - if you do then delete the duplicates. (any duplicates, these are examples)

Uninstall Android SDK and Java, and then reinstall fresh.

You can also try using the resolver plugin which resolves android & iOS dependencies and performs version management. https://github.com/googlesamples/unity-jar-resolver

Comment
Add comment · Show 3 · 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 PersianKiller · Sep 14, 2017 at 09:23 AM 0
Share

@kaplica , Try a different aapt.exe (different version, maybe not 24.0). what do you mean , you mean I should download sdk again?

and another question , what kind of sdk should I download for apk build? sdk that I have is 70 GigaByte !!!!

avatar image kaplica PersianKiller · Sep 14, 2017 at 11:39 AM 0
Share

Try different SD$$anonymous$$ versions like Android SD$$anonymous$$ Platform-tools, revision 23 (uninstall old one first). Emulators are quite big in size, maybe you installed too many.

avatar image PersianKiller kaplica · Sep 14, 2017 at 12:24 PM 0
Share

can I download a small size sdk ? only to build apk file?

avatar image
1

Answer by Little_Master · Sep 14, 2017 at 07:44 AM

i think problem is with your ads plugin. Just delete ads plugin then try tu build apk.

Comment
Add comment · Show 1 · 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 kishangiri · Aug 01, 2019 at 02:41 PM 0
Share

how to solve error "Failed to build apk. See the Console for details. '

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

71 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

Related Questions

How to load plist file into APK (Android) with Unity? 2 Answers

Error in building and signing APK. 1 Answer

Where do the dlls go in Android? 1 Answer

AndroidManifest.xml versus AndroidManifest-main.xml in Temp/StagingArea 2 Answers

Extract an apk? 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