Add Specific instrumentation runner as .AndroidJUnitRunner. Click Edit Configurations -> Select Android Tests -> Press + for creating new configuration. Restart all opened cmd/terminal instances and Unity for sureģ. Install Android Tests Recorder from Android Studio plugins repository. set JAVA_HOME and Path to Java 8 (installed by Unity Hub, see in Unity prefs for External tools)Ģ. My problem (besides missing cmdline tools) was in parallel installation of Java 15, but Android SDK is mostly working with 8.ġ. If Unity needs special versions of SDK/NDK, just bundle them and give access via Hub or download link. Looks really weird, 2017-2018 (last time I used Unity to build for Android) all was fine.Ģ020 - all is broken: NDK installed only after 3rd try, SDK - wrong installation. Installing from google gives other errors related to versions inconsistency.Īnd there are no more docs: 2018 docs was about manual installation and 2020 only about Hub install. Installing from Hub gives wrong SDK structure (not expected by Unity itself, ha). This bug is there since years, would be nice if on next version it could be fixed without users need to do workarounds.Ģ020.3.11f1, the same. I'm using ubuntu, but don't think it's a distro problem). (I think the other both JDK and NDK are now found after my rights change, I will try to reproduce and test that, would be nice if you could try that on a linux-workplace too. 'Android SDK and/or JDK directory is not set'. On File->Build Settings->Android unity complains: '! You are missing the recommended Android SDK Tools Install the recommended version using Unity Hub.' If I go on EscapeRoom Project (Unity tutorial) in Edit->Preferences->External Tools it complains: So OpenJDK, NDK and SDK and all bin is there. NOTE: This behaviour happens only when I clean the project and not when I have already have a pre-built app APK in my build folder Ive referred to: The APK file does not exist on disk but my point is, when we usually run the app after cleaning the project, we never need to make a build of it, if the APK is not existing in the build folder, it. :~/Unity/Hub/Editor/2020.1.5f1/Editor/Data/PlaybackEngines/AndroidPlayer$ ll :~$ cd Unity/Hub//Editor/2020.1.5f1/Editor/Data/PlaybackEngines/AndroidPlayer/ Thank you for fast reply and for your work.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |