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
1
Question by TimGS · Dec 22, 2014 at 02:08 PM · androidbuild error

[4.6.1] Why does Unity need Android API 21 for build?

I have latest Android SDK (24.0.2) installed. I have API 10 installed. So everything matches Unity requirements. I have custom AndroidManifest file with minSdkVersion=10 and targetSdkVersion=10

But everytime I try to build apk I get an error saying "Android SDK is missing required platform api. Minimum platform required is Android 5.0 (API level 21)".

Why does it do that? It didn't before and I successfully built my apk without API 21 installed. What changed? Is it Unity requirement or is it Android SDK requirement?

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 TimGS · Dec 22, 2014 at 06:15 PM 0
Share

No arm7 only build requires that, too.

1 Reply

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

Answer by pako · Dec 22, 2014 at 03:48 PM

As you might already know, API 21 is needed to support Android 5. It appears to be a design decision, since it is mention as a "Fix" in the release notes of 4.6.1 (see 16th item from top of "FIXES"):

http://unity3d.com/unity/whats-new/unity-4.6.1

i.e. "Android: Updated SDK and JDK requirements to match Android 5.0."

See also:

http://developer.android.com/about/versions/android-5.0-changes.html

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 TimGS · Dec 22, 2014 at 06:14 PM 0
Share

$$anonymous$$aybe that's the case. But this requirement should be mentioned in $$anonymous$$anual then. Because now it says:

be sure to add at least one Android platform with API level equal to or higher than 9 (Platform 2.3 or greater)

which is not enough according to your info.

avatar image meat5000 ♦ · Dec 22, 2014 at 06:16 PM 0
Share

I believe the point of having the latest API is to make sure that the Platform and Build tools are up to date.

avatar image pako · Dec 22, 2014 at 06:52 PM 0
Share

You can also submit Documentation errors using the Bug Reporter tool in Unity: Click Help $$anonymous$$enu/Report a Bug, and then select "Documentation" from the "Type of Problem" drop-down.

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

6 People are following this question.

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

Related Questions

CommandInvokationFailure: Gradle build failed 2 Answers

Error trying to build for android. 2 Answers

Android Application Builds Properly in Android 7.0 but not 6.0? 0 Answers

Minimum Requirements for an Android Game 0 Answers

Building apk for android error: failed to re-package resources 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