Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 KazenoZ · Feb 13 at 01:42 AM · android buildinstallationandroid sdkandroid-sdk

You are missing the recommended Android NDK.

Heyhey,

I've been cracking my head on this issue for hours now, was wondering if anyone had an idea. I installed the Android modules today on 2020.3.21f1, and managed to build my APK a few times to test, when suddenly it just stopped working after like 5 or 6 builds. No settings changes or anything. Now when I try to build I get greeted with the message. "Android NDK not found or invalid. Please, fix it in Edit / Unity -> Preferences -> External Tools"

And when I go and check the preferences I see this. alt text

When I try to manually browse to the NDK folder (I need the root NDK folder, right? Not platforms or build or anything funny inside it, right?) I get this message "Unable to detect NDK in the selected directory". alt text

I tried every suggestion I found online. 1. I Tried restarting the editor and the computer. 2. Tried changing the Unity version to 2019, and to 2021. 3. Tried switching platform between PC and back to Android. 4. Tried downloading the relevant NDK version (r19 for 2020, r21 for 2021) and linking to it (Still doesn't let me select the folder no matter where I browse to). 5. Tried replacing the ndk that came installed with with the Android module with the manually downloaded version. 6. Tried selecting the NDK when placed in a directory path with no spaces.

I also couldn't really find any relevant topics on Answers or the forums that were more recent than 2017-2019. Nothing works and I'm completely out of ideas...

Please, if anyone has any ideas, do let me know.

Thanks

ndk.png (73.2 kB)
ndk3.png (25.4 kB)
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

2 Replies

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

Answer by KazenoZ · Feb 13 at 01:27 PM

Well, turns out it actually WAS a change I did. I added the I18N dlls from the mono/unity folder as suggested in this post to resolve some localization issue, and for some reason that caused the NDK to not be recognized anymore.. Go figure.

Removing those from the project solves the issue, and copying the equivalent DLLs from the mono/unityjit folder instead was apparently what I wanted to do to solve the issue without breaking builds.

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 BananaBananaGamesStudio · Feb 13 at 03:51 PM 0
Share

Glad you solved ! Looks like "No settings changes or anything." was not really true. I'm pretty new to Unity in mobile development but I'm surprised to see how reliable and stable it is on overall. So we must keep track of yourselfs very very carefully which is a nice exercise and habit.

avatar image
0

Answer by BananaBananaGamesStudio · Feb 13 at 01:48 AM

Install Android Studio. It does a much better job managing all the SDK/NDK packages needed for your builds. You can set up from the welcome screen just click on the gear icon on bottom right. No need to full start the software. I came with similar issues and this solved it all.

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 KazenoZ · Feb 13 at 12:43 PM 0
Share

That didn't work either. It's still not recognizing the folder as a valid NDK installation. What is it even looking for in the folder that makes it think it can't find it?...

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

140 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 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

com.android.tools.r8 compilation error please help 0 Answers

How to get Android 10 (API Level 29) 1 Answer

Cannot install apk in android 8.0.0 (API level 26) 0 Answers

AndroidApiLevel30 ? 0 Answers

Has anyone gotten Unity2020 working with external Android libs/tools? 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