Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions for Building LunarConsole for Android #214

Open
lvantilburg-imangi opened this issue Aug 10, 2022 · 0 comments
Open

Instructions for Building LunarConsole for Android #214

lvantilburg-imangi opened this issue Aug 10, 2022 · 0 comments

Comments

@lvantilburg-imangi
Copy link

LunarConsole doesn't have a series of build instructions if you want to modify the source yourself. Here is what we found from our own testing:

  • Open the Android project specifically in Android Studio at lunar-unity-console/Native/Android/LunarConsole
  • Go into the menu and select Build -> Make Project. If it asks to install Android tools API 29, do it.
    • It may also give you an error about not having a class.jar dependency, ignore that for now.
  • There should now be a lunarConsole app in your project view, and a Gradle build file associated with it. You can find this under the Gradle Scripts dropdown. There may be multiple build.gradle files so just find the one that has the getUnityDependencyJar method.
  • Update that getUnityDependencyJar method to point to your local Unity installation’s path for the classes.jar file.
  • It will most likely be underUnity Install Here/PlaybackEngines/AndroidPlayer/Variations/mono/Development/Classes
  • Make the lunarConsole module. If you have the correct gradle file open you can just do Build -> Make Module.
  • The .aar output should be in lunarConsole/build/outputs/aar/
  • Copy the .aar into the LunarConsole third party folder in Unity in order to use it
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant