-
-
Notifications
You must be signed in to change notification settings - Fork 116
Troubleshooting
- Before you start
-
Android
- java.lang.ClassNotFoundException: spacemadness.com.lunarconsole.console.ConsolePlugin
- Unable to merge android manifests
- 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
- Duplicate file drawable-hdpi-v4 and drawable-hdpi
- FileNotFoundException: Could not load file or assembly 'GooglePlayServices' or one of its dependencies. The system cannot find the file specified
- iOS
- Unity Editor
- Unity Cloud Build
- Misc
- Something is terribly wrong and I don't know what to do
Please, follow these "prep" steps before requesting a technical support:
- Re-install the plugin:
- Remove
Assets/LunarConsole
andAssets/Plugins/Android/LunarConsole
folder from the project. - Import the latest plugin version from the Asset Store: https://www.assetstore.unity3d.com/en/#!/content/43800
- Make a "clean" build.
- Remove
- 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
Re-install the plugin.
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.
- Download and install Oracle JDK 8: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
- Select the new JDK location in Unity Preferences: https://docs.unity3d.com/Manual/Preferences.html
Disable and re-enable the plugin (in order to update Plugins/Android/LunarConsole
directory). For more info see the following guide:
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.
Remove the generated Xcode project and build iOS target again (or simply replace the project on export):
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
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
There're might be some "leftover" files from the previous plugin versions. Performing Clean Build All
usually fixes that.
- 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 ofUnityPlayerNativeActivity
. See forum discussion for more details.
Disable touch gesture in the plugin script settings and use API calls to open/close the console. See Usage for details.
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!