Skip to content
Alex Lementuev edited this page Apr 4, 2019 · 21 revisions

Table of Contents

Before you start

Please, follow these "prep" steps before requesting a technical support:

  • Re-install the plugin:
  • Create a new Unity project and check if the plugin works on your device.
  • Android only: remove your custom AndroidManifest.xml file and check if it resolves the issue.

Add the following info when reporting an issue:

  • Scripting Backend (Mono/IL2CPP/.NET)
  • iOS/Android version
  • Device model
  • Unity version
  • Host OS version
  • The list of the 3rd party plugins you use in the project
  • iOS only: Xcode version

Android

java.lang.ClassNotFoundException: spacemadness.com.lunarconsole.console.ConsolePlugin

Re-install the plugin.

Unable to merge android manifests

Search for all AndroidManifest.xml files in your Assets folder. Open these files and you need to have the same number for minSdkVersion and the same number for targetSdkVersion for all files.

Major version 52 is newer than 51, the highest major version supported by this compiler

Swipe gesture does not open the console on Android but works on iOS

Disable and re-enable the plugin (in order to update Plugins/Android/LunarConsole directory). For more info see the following guide:

Duplicate file drawable-hdpi-v4 and drawable-hdpi

This issue may occur if you're updating from v0.4.x to v0.5.0+. Fix: remove Assets/LunarConsole and Assets/Plugins/Android/LunarConsole folders and import the plugin again.

FileNotFoundException: Could not load file or assembly 'GooglePlayServices' or one of its dependencies. The system cannot find the file specified

This error message occurs when using Google Play Games plugin for Unity. It's a known Google Play Games bug and does not affect Lunar Mobile Console or any other plugins.

iOS

[Xcode] 'Duplicate interface declaration for class' or 'Property has a previous declaration'

Remove the generated Xcode project and build iOS target again (or simply replace the project on export):

[Xcode] 'Interface Builder could not open the document because it does not exist'

Most likely to happen when you export Xcode project on one machine and move it to another machine for building (export on Windows and build on Mac).
Solution: add LUNAR_CONSOLE_EXPORT_IOS_FILES define to your project. For more information see Platform custom #defines

Unity Editor

Unity Editor hangs or crashes after I add Lunar Mobile Console

Remove Unity temp files and re-open the project:

  • If you're using git run the following command from the project's root (make sure to commit all your changes before doing that):
    git clean -x -f -d
  • If you're not using git remove the following files:
    /Library
    /Temp
    /Obj
    /Build
    /Builds/
    
    /.vs
    
    ExportedObj/
    .consulo/
    *.csproj
    *.unityproj
    *.sln
    *.suo
    *.tmp
    *.user
    *.userprefs
    *.pidb
    *.booproj
    *.svd
    *.pdb
    

Unity Cloud Build

[Unity] error CS2001: Source File `Assets/LunarConsole/**/*.cs` could not be found

There're might be some "leftover" files from the previous plugin versions. Performing Clean Build All usually fixes that.
Clean Build All

Misc

Swipe gesture does not open the console

  • Make sure that the plugin is properly installed and initialized.
  • Check the application output to see any exception (using Android LogCat or Xcode Device Console).
  • Android only: make sure you use UnityPlayerActivity instead of UnityPlayerNativeActivity. See forum discussion for more details.

I'm using swipe down with two fingers already in my game

Disable touch gesture in the plugin script settings and use API calls to open/close the console. See Usage for details.

Something is terribly wrong and I don't know what to do

Please, post your question on the official forum thread, open a ticket or send e-mail to lunar.plugin@gmail.com. Most inquiries are resolved in a couple of hours!