Ошибка unable to initialize the unity engine

Unable to Initialize Unity Engine — Cookie Run Kingdom Error Fix Home » Guides » Unable to Initialize Unity Engine – Cookie Run Kingdom Error Fix Cookie Run Kingdom is one of the more popular mobile games of its type. A building game with some role-playing elements and powerful Cookie Heroes. This combination has […]

Содержание

  1. Unable to Initialize Unity Engine — Cookie Run Kingdom Error Fix
  2. How to Fix the Unable to Initialize Unity Engine Error in Cookie Run Kingdom
  3. Troubleshooting Android development
  4. “No Platforms Found” error:
  5. Unity fails to install your application to your device
  6. Your application crashes immediately after launch.
  7. Building DEX Failed
  8. The game crashes after a couple of seconds when playing video
  9. My game quits when I press the sleep button
  10. Troubleshooting Android development
  11. Your application crashes immediately after launch
  12. The game crashes after a couple of seconds when playing video
  13. No Android device found
  14. Failed to re-package resources
  15. Unable to merge Android manifests
  16. Unable to convert classes into DEX format
  17. Unable to install APK to device
  18. Troubleshooting Android development
  19. Your application crashes immediately after launch
  20. The game crashes after a couple of seconds when playing video
  21. No Android device found
  22. Failed to re-package resources
  23. Unable to merge Android manifests
  24. Unable to convert classes into DEX format
  25. Unable to install APK to device
  26. Troubleshooting Android development
  27. “No Platforms Found” error:
  28. Unity fails to install your application to your device
  29. Your application crashes immediately after launch.
  30. Building DEX Failed
  31. The game crashes after a couple of seconds when playing video
  32. My game quits when I press the sleep button

Unable to Initialize Unity Engine — Cookie Run Kingdom Error Fix

Home » Guides » Unable to Initialize Unity Engine – Cookie Run Kingdom Error Fix

Cookie Run Kingdom is one of the more popular mobile games of its type. A building game with some role-playing elements and powerful Cookie Heroes. This combination has made it a worldwide hit. Naturally, whenever an issue occurs in one of these online games, it impacts a large number of players. The latest problem that has recently cropped up is the “Unable to Initialize Unity Engine” error that many players are getting when they try to run the game. If you have been affected by this, then our Unable to Initialize Unity Engine – Cookie Run Kingdom Error Fix guide is here to provide you with a couple of solutions that can resolve this problem.

How to Fix the Unable to Initialize Unity Engine Error in Cookie Run Kingdom

The Unity engine is a very famous game engine that is used to power many video games, and is particularly used in mobile game development for both Android and iOS devices. This error could be down to some change in Unity itself. But there’s also the chance that Cookie Run Kingdom developer Devsisters have messed something up on their end and that a fix for this problem is incoming. Whatever the case may be, there are a couple of things you can try out in the meantime until this error gets resolved on the developers’ side.

The first method that you can try is to attempt to run the game from your app drawer. Several users have reported that the game refuses to run if they launch it from the icon shortcut on their phone home screen, but that it does work when they launch it from their phone’s app section. The second method is to do a hard restart on your phone. When it restarts, the phone should update all the apps, and, hopefully, the problem should be resolved. The third solution is to turn your WIFI off and on before you get the error (thanks Carly). So far, these are the only possible solutions which seem to work. If you know of any other methods which can be used to fix this, don’t be shy about telling us in the comments below.

Источник

Troubleshooting Android development

“No Platforms Found” error:

  1. Uninstall the current Android SDK and make sure that you don’t have more than one copy of it.
  2. Update Java with a stable version. Bear in mind the latest version shouldn’t have conflicts, but users have experienced problems in the past.
  3. Download a fresh copy of the latest ADT Bundle and install it following the instructions. This should configure the development tools correctly: http://developer.android.com/sdk/index.html
  4. Configure Unity with the installed Android SDK.

Unity fails to install your application to your device

  1. Verify that your computer can actually see and communicate with the device. See the Publishing Builds page for further details.
  2. Check the error message in the Unity console. This will often help diagnose the problem.

If you get an error saying “Unable to install APK, protocol failure” during a build then this indicates that the device is connected to a low-power USB port (perhaps a port on a keyboard or other peripheral). If this happens, try connecting the device to a USB port on the computer itself.

  1. Ensure that you are not trying to use NativeActivity with devices that do not support it.
  2. Try removing any native plugins you have.
  3. Try disabling stripping.
  4. Use adb logcat to get the crash report from your device.

Building DEX Failed

This is an error which will produce a message similar to the following:-

This is usually caused by having the wrong version of Java installed on your machine. Updating your Java installation to the latest version will generally solve this issue.

The game crashes after a couple of seconds when playing video

Make sure Settings->Developer Options->Don’t keep activities isn’t enabled on the phone. The video player is its own activity and therefore the regular game activity will be destroyed if the video player is activated.

My game quits when I press the sleep button

Change the activity tag in the AndroidManifest.xml to contain android:configChanges tag as described here.

An example activity tag might look something like this:-

Источник

Troubleshooting Android development

While developing for Android using Unity, you could encounter a number of issues. Problems are often related to plug-ins A set of code created outside of Unity that creates functionality in Unity. There are two kinds of plug-ins you can use in Unity: Managed plug-ins (managed .NET assemblies created with tools like Visual Studio) and Native plug-ins (platform-specific native code libraries). More info
See in Glossary or incorrect Project settings A broad collection of settings which allow you to configure how Physics, Audio, Networking, Graphics, Input and many other areas of your Project behave. More info
See in Glossary . This section outlines the most common scenarios and relavant troubleshooting advice.

Remove any native plug-ins A platform-specific native code library that is created outside of Unity for use in Unity. Allows you can access features like OS calls and third-party code libraries that would otherwise not be available to Unity. More info
See in Glossary you have.

Use adb logcat to get the crash report from your device. Consult the official Android Developer Logcat Command-Line Tool documentation for more information.

The game crashes after a couple of seconds when playing video

Ensure Settings > Developer Options > Don’t keep activities isn’t enabled on the device.

The video player is its own activity, and therefore regular game activity will be destroyed if the video player is activated.

No Android device found

If Unity cannot find an Android device connected to the system, check the following:

Make sure that your device is actually connected to your computer — check the USB cable and the sockets.

Make sure that your device has USB Debugging enabled in the Developer options. For more details, refer to the Android SDK/NDK Setup page.

Run the adb devices command from the platform-tools directory of your Android SDK installation and check the output.

If the output list is empty and you are using Windows, you may need to install the driver for ADB An Android Debug Bridge (ADB). You can use an ADB to deploy an Android package (APK) manually after building. More info
See in Glossary devices. For more details, refer to the Android SDK/NDK Setup documentation.

If the list contains entries with the unauthorized label, you may need to authorize your computer on your device and give it permission to debug it. Check the device’s screen for the corresponding dialog.

If the list contains your device with the device label, build your Project in Unity again.

Failed to re-package resources

This error occurs when the Android Asset Any media or data that can be used in your game or Project. An asset may come from a file created outside of Unity, such as a 3D model, an audio file or an image. You can also create some asset types in Unity, such as an Animator Controller, an Audio Mixer or a Render Texture. More info
See in Glossary Packaging Tool (AAPT) fails. AAPT is used to build the intermediate Asset packages A collection of files and data from Unity Projects, or elements of Projects, which are compressed and stored in one file, similar to Zip files. Packages are a handy way of sharing and re-using Unity Projects and collections of assets. More info
See in Glossary during Android build. This issue is most often caused by missing resources or duplicate resources in your Android plug-ins.

Check the console message for more details — it should contain the IDs of the resources that are missing or duplicates. Fix the error in your plug-ins by either adding the missing resources/settings or removing the duplicate plug-ins.

Unable to merge Android manifests

The most likely cause for this issue is that one of your plug-ins has a manifest that is incompatible with the main Unity manifest.

Check the console message for more details on which attributes are conflicting, and fix the manifests accordingly.

See the Android Manifest documentation for more details on Android manifests.

Unable to convert classes into DEX format

The most likely cause for this issue is that you have a Java plug-in added twice. This results in duplicate classes when Unity tries to build a DEX (Dalvik Executable Format) file from all the compiled Java plug-ins. Check the console output for the list of duplicate entries, and fix the plug-ins.

If your console messages says “Too many references”, it means that the number of fields and methods exceeded the DEX limit of 64k. This usually happens when the number of plug-ins or plug-in resources is too high. Due to the way the references are generated, the limit could be hit with just a couple of large plug-ins.

There are several ways to handle this issue. One of these is by stripping the plug-ins. However, the quickest way to fix it is to switch to the Gradle build system, or export the Project and build it in Android Studio.

Unable to install APK to device

This error can be caused by:

Installing to an incompatible device.

Installing to a device running a version of Android lower than the Minimum API Level in your Player settings.

Check the console for the actual error code and output.

2017–05–25 Page published with editorial review

Updated functionality in 5.5

Did you find this page useful? Please give it a rating:

Источник

Troubleshooting Android development

While developing for Android using Unity, you could encounter a number of issues. Problems are often related to plug-ins or incorrect Project settings. This section outlines the most common scenarios and relavant troubleshooting advice.

Remove any native plug-ins you have.

Use adb logcat to get the crash report from your device. Consult the official Android Developer Logcat Command-Line Tool documentation for more information.

The game crashes after a couple of seconds when playing video

Ensure Settings > Developer Options > Don’t keep activities isn’t enabled on the device.

The video player is its own activity, and therefore regular game activity will be destroyed if the video player is activated.

No Android device found

If Unity cannot find an Android device connected to the system, check the following:

Make sure that your device is actually connected to your computer — check the USB cable and the sockets.

Make sure that your device has USB Debugging enabled in the Developer options. For more details, refer to the Android SDK/NDK Setup page.

Run the adb devices command from the platform-tools directory of your Android SDK installation and check the output.

If the output list is empty and you are using Windows, you may need to install the driver for ADB devices. For more details, refer to the Android SDK/NDK Setup documentation.

If the list contains entries with the unauthorized label, you may need to authorize your computer on your device and give it permission to debug it. Check the device’s screen for the corresponding dialog.

If the list contains your device with the device label, build your Project in Unity again.

Failed to re-package resources

This error occurs when the Android Asset Packaging Tool (AAPT) fails. AAPT is used to build the intermediate Asset packages during Android build. This issue is most often caused by missing resources or duplicate resources in your Android plug-ins.

Check the console message for more details — it should contain the IDs of the resources that are missing or duplicates. Fix the error in your plug-ins by either adding the missing resources/settings or removing the duplicate plug-ins.

Unable to merge Android manifests

The most likely cause for this issue is that one of your plug-ins has a manifest that is incompatible with the main Unity manifest.

Check the console message for more details on which attributes are conflicting, and fix the manifests accordingly.

See the Android Manifest documentation for more details on Android manifests.

Unable to convert classes into DEX format

The most likely cause for this issue is that you have a Java plug-in added twice. This results in duplicate classes when Unity tries to build a DEX (Dalvik Executable Format) file from all the compiled Java plug-ins. Check the console output for the list of duplicate entries, and fix the plug-ins.

If your console messages says “Too many references”, it means that the number of fields and methods exceeded the DEX limit of 64k. This usually happens when the number of plug-ins or plug-in resources is too high. Due to the way the references are generated, the limit could be hit with just a couple of large plug-ins.

There are several ways to handle this issue. One of these is by stripping the plug-ins. However, the quickest way to fix it is to switch to the Gradle build system, or export the Project and build it in Android Studio.

Unable to install APK to device

This error can be caused by:

Installing to an incompatible device.

Installing to a device running a version of Android lower than the Minimum API Level in your Player settings.

Check the console for the actual error code and output.

Источник

Troubleshooting Android development

“No Platforms Found” error:

  1. Uninstall the current Android SDK and make sure that you don’t have more than one copy of it.
  2. Update Java with a stable version. Bear in mind the latest version shouldn’t have conflicts, but users have experienced problems in the past.
  3. Download a fresh copy of the latest ADT Bundle and install it following the instructions. This should configure the development tools correctly: http://developer.android.com/sdk/index.html
  4. Configure Unity with the installed Android SDK.

Unity fails to install your application to your device

  1. Verify that your computer can actually see and communicate with the device. See the Publishing Builds page for further details.
  2. Check the error message in the Unity console. This will often help diagnose the problem.

If you get an error saying “Unable to install APK, protocol failure” during a build then this indicates that the device is connected to a low-power USB port (perhaps a port on a keyboard or other peripheral). If this happens, try connecting the device to a USB port on the computer itself.

  1. Ensure that you are not trying to use NativeActivity with devices that do not support it.
  2. Try removing any native plugins you have.
  3. Try disabling stripping.
  4. Use adb logcat to get the crash report from your device.

Building DEX Failed

This is an error which will produce a message similar to the following:-

This is usually caused by having the wrong version of Java installed on your machine. Updating your Java installation to the latest version will generally solve this issue.

The game crashes after a couple of seconds when playing video

Make sure Settings->Developer Options->Don’t keep activities isn’t enabled on the phone. The video player is its own activity and therefore the regular game activity will be destroyed if the video player is activated.

My game quits when I press the sleep button

Change the activity tag in the AndroidManifest.xml to contain android:configChanges tag as described here.

An example activity tag might look something like this:-

Is something described here not working as you expect it to? It might be a Known Issue. Please check with the Issue Tracker at issuetracker.unity3d.com.

Copyright © 2016 Unity Technologies. Publication 5.4-X

Источник

how to fix cookie run kingdom unable to initialize unity engine error

Cookie run kingdom is a mobile game developed by Devsisters for iOS and Android. It is quite popular because you get to play this RPG game with lots of cookies and also build your kingdom. And you can also team up to do guild battles with your friends. While all of these features might be great, it is of no good if you can’t even start the game. And that is the issue many players are facing for this game right now. So in this guide let us take a look at how to fix the unable to initialize Unity engine in Cookie Run Kingdom.

How to Fix Unable to Initialize Unity Engine in Cookie Run Kingdom

cookie run kingdom unable to initialize unity engine error fix

There are certain fixes that you can use to solve this issue. You can try some or all of them till you fix this problem.

  • Turn Wifi off and on: You can use this fix if you get unable to initialize Unity error or not enough storage error. All you have to do is simply turn off your wifi and before you get the error turn it back on. Thanks to @YoshiGameing05 on Twitter for sharing this fix.

If the above fix didn’t work for you, you can try some of these general fixes:

  • Update the game: Your game needs to be on the latest version in order to work properly.
  • Restart the game: Close the game and remove it from your recent apps. This will ensure that the game is properly closed. Now launch the game and you shouldn’t get the error.
  • Clear the cache: Go to settings and apps. Then under the storage options in Cookie run Kingdom clear cache.
  • Delete Data: Warning, this fix isn’t recommended if you haven’t linked your account with the game as you will lose all your progress. But if you have then simply go to your settings. Here find apps, under the apps tap on cookie run kingdom, and under the storage options click on clear data.
  • Reinstall the game: Again, you should only try this fix if you have your account linked, else you’ll lose progress. Uninstall the game from your phone and then reinstall it from Playstore. Be sure to install it only from Playstore and not any third-party sites to ensure the authenticity of the files.

That sums up this guide on how to solve unable to initialize unity engine error on cookie run kingdom. If you like playing this game then be sure to check out our other guides on how to play CRK on PC and the best toppings guide for Cookie Run Kingdom.

1 Answer

Sorted by:

Reset to default

0

In my case it was the version of Unity and the Android-Support-for-Editor.

Find the local log files on your Android to help figure out what could be going wrong:

Expected version: 2019.1.6f1. Actual version: 2019.1.0f2.

I use linux opensuse tumbleweed.

Improve this answer

answered Jun 14, 2019 at 16:01

Wilmer's user avatar

WilmerWilmer

4628 silver badges11 bronze badges

Add a comment
 | 

Your Answer

Sign up or log in

Sign up using Google

Sign up using Facebook

Sign up using Email and Password

Post as a guest

Name

Email

Required, but never shown

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you’re looking for? Browse other questions tagged

  • c#
  • android
  • unity3d
  • sdk
  • game-engine

or ask your own question.

 Fix Cookie Run: Kingdom Unable to Initialize Unity Engine

Cookie Run: Kingdom is a popular RPG and town builder mobile game with lovely characters and a fun story that is sure to captivate you. This game has a little something for everyone. However, players are experiencing an error when they attempt to run the game. Players are reporting that they are receiving an error message that says – “Unable to Initialize Unity Engine”. If you are also unable to play this game due to this error, then try the below some possible solutions to fix Cookie Run: Kingdom Unable to Initialize Unity Engine Error. 

If you are not aware, Unity Engine is a popular game engine that is used to power several video games which is used mainly in mobile game development for both iOS and Android devices. If there are some changes in Unity itself, you may get this error code. Well, here are a few workarounds shared by users on Reddit and other Forums. Fortunately, there are multiple ways to fix the Cookie Run Kingdom Unable to Initialize Unity Engine Error and so we have collected all of them for you.

1. First of all, try to run the game from your app drawer. As many players have said that the game doesn’t run if they try to launch it from the home screen’s shortcut icon, but it works fine if they open it from their phone’s applications.

2. Perform a hard restart on your smartphone. When the phone restarts, it will update all the applications and thus, the issue should be fixed.

3. In case, your internet connection is poor or not stable, you may get the Cookie Run Kingdom Unable to Initialize Unity Engine Error. So, attempt to turn your Wi-Fi connection OFF and turn it ON again after some time.

4. Some users also fixed this issue by opening and closing apps multiple times. 

That’s everything you can do to fix the Cookie Run Kingdom Unable to Initialize Unity Engine Error. If you know of any other method to fix this issue, do let us know in the comment section below. 

Понравилась статья? Поделить с друзьями:
  • Ошибка u2200 форд фьюжн
  • Ошибка unable to initialize graphics system gpu does not support dx12
  • Ошибка u2200 ford fusion
  • Ошибка u2197 форд фьюжн
  • Ошибка u2197 форд фокус