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 trenmost · Sep 11, 2016 at 07:44 AM · androidpublishingandroid sdk

Unity 5.4 uses old android SDK target (api level: 22), so i cant update my app on play store

Hi!

I have an application on play store that i built with a previous version of unity, that used aPI level 23 (marshmallow) as a target sdk version. Now i want to release a newer version of it with unity 5.4, but i cannot upload the SDK because unity is now back to using target sdk version 22 (Lollipop), and the play store wont let me update

Unity does not have a setting to control the target sdk version (there is a setting for the minimum supported api, but that's not the same). So what do i have to do to publish my app on the play store?

The play store displays this error message: "It is forbidden to downgrade devices which previously used M permissions (target SDK 23 and above) to APKs which use old style permissions (target SDK 22 and below). This occurs in the change from version 2 (target SDK 23) to version 3 (target SDK 22)."

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 zaniocz · Jan 18, 2017 at 09:29 AM 0
Share

Hi @Hussar123
What is the SD$$anonymous$$ Target that you need? Have you checked that you have the target API installed in your Android SD$$anonymous$$ location? Unity supports the target API that you need as soon you have it installed in your machine

6 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by pako · Sep 11, 2016 at 11:31 AM

Unity uses whatever Android SDK you have in your system.

So, make sure that you have the latest android API installed, by starting the Android SDK Manager, and updating to the latest API.

Also, make sure that in Unity/Edit/Preferences/ External Tools the path to the Android SDK is set correctly to the Android SDK installation you updated.

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 trenmost · Sep 12, 2016 at 01:04 PM 0
Share

Hi! Thank you very much for your answer!. I checked the installed sdks and i have only the latest level sdks installed, and 22 or older sdks are all uninstalled.

Here's a complete list of what i have installed:

  • Android SD$$anonymous$$ Tools 25.1.7 Android SD$$anonymous$$

  • platform tools 24.0.2 Android SD$$anonymous$$

  • Build tools 23.0.2 (this is not the but it should be for marshmallow)

  • SD$$anonymous$$ Platform 23 Rev.3

  • Android Support Library 23.2.1

  • Google USB driver 11

I double checked and this is the SD$$anonymous$$ folder that is set in unity.

avatar image liortal trenmost · Oct 06, 2016 at 05:39 PM 0
Share

Like all Android apps, Unity will also generate your game with an Android$$anonymous$$anifest. This file specifies the targetSD$$anonymous$$ that your game uses. If you do not have your own manifest, Unity has a default one that gets used, not sure which targetSD$$anonymous$$ value is specified there. The easiest way is to check your android manifest(s) - there may be more than one, to see which targetSD$$anonymous$$ value is specified.

Note that there are a few different values - $$anonymous$$Sdk, targetSdk, maxSdk. All have a different use.

Please note that I also offer my professional services so you could contact me via this link, in the case you still weren't able to resolve this issue.

avatar image
0

Answer by LightOwl · Apr 14, 2017 at 05:47 AM

I was getting an error about the target SDK being the wrong version.  To fix it I went to the Plugins/Android folder and found the Android Manifest script and within there found a setting for the target SDK.  This fixed my issue.  Definitely not an intuitive setting in the inspector.


androidmanifest.jpg (173.4 kB)
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 LightOwl · Apr 13, 2017 at 11:47 PM 0
Share

This can be found under plugins/android in the project folder

avatar image
0

Answer by quanpatrick · May 25, 2017 at 04:30 PM

copy SDK tools_r25.2.5-windows >>>>AppData\Local\Android\sdk\tools

finish

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 titch_stewart · Oct 16, 2018 at 12:36 AM

@trenmost I don't know if you fixed this or not but I've just ran into this problem, when trying to add my APK to my Google Play Console account, and spent nearly 4 hours getting it to work. I have Unity 2017.3.1f1 and didn't need to update it. I did follow some of the instructions in:

https://boostlog.io/@mohammedalsayedomar/setup-android-sdk-and-jdk-in-unity-5adad03d47018500491f3f77

Specifically I updated the following: Android SDK Tools Android SDK Platform-Tools Android SDK Build-Tools

Note afterwards that Unity was still saying that my highest level was Level 25: alt text

I did a rebuild and checked the AndroidManifest using AndroidStudio's Build->Analyze APK and it shows:

alt text

I was able to drag and drop the APK into my Google Play Console without any problems.

Restarting Unity didn't show the newly available SDK levels. I've not restarted my PC but I think they'll probably appear after that.

Anyway, hope this helps someone because it's a minefield.


target-api-level.png (11.2 kB)
androidmanifest.png (4.2 kB)
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 hamza37 · Jan 31, 2019 at 06:32 PM

Upgrading andriod sdk worked for me.....

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
  • 1
  • 2
  • ›

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

12 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

Related Questions

How come when I generate a signed APK it produces out a JKS file? 0 Answers

how can i integrate applovin and chartboost for android 0 Answers

How to deploy to andriod market 2 Answers

Publishing with android license 2 Answers

Getting error while building a project for android 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