- Home /
using Unityengine.Android does not exist!
hi guys! I'm working on a project that use microphone for recording so I have to get microphone permission from phone, I try to add using unityengine. Android for use Android.permission API but it says The type or namespace name 'android' does not exist in the namespace 'UnityEngine'! How can I solve this problem!? Thanks in advance.
Are you sure you have typed Android
and not android
? Which version of Unity are you using? Permission
class of Android
namespace seems to be available in 2018.3+ only.
Right, also in the question UnityEngine is written in 3 different ways: "Unityengine", "unityengine" and "UnityEngine". Only the last one is correct. So it's hard to tell how reliable the details in that questions are.
The full type name should be UnityEngine.Android.Permission
. or with using
using UnityEngine.Android;
//[ ... ]
Permission.XYZ
hi. same error for me. did you solve it? if so can you post the answer? and what's in the comments cause I can't see any text for the comments!!
Ok, dumb question, but does the case sensitivity match? using UnityEngine.Android;
You may be missing the Android module in your Unity installation. You can add this via Unity Hub (Installs > ... > Add $$anonymous$$odules).
Yep, that's the one. What version of Unity is this?
Your answer
![](https://koobas.hobune.stream/wayback/20220612203305im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Compiling Android game doesn't work out 0 Answers
Please help with android 1 Answer
Unity Remote 5 on mac OS and android 0 Answers
How to set closeKeyboardOnOutsideTap? 0 Answers
android SDK build error 1 Answer