Skip to content

Instructions for Building LunarConsole for Android #214

@lvantilburg-imangi

Description

@lvantilburg-imangi

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions