no android module loaded unity что делать

Unity: build and run for Android is unavialable

no android module loaded unity что делать. Смотреть фото no android module loaded unity что делать. Смотреть картинку no android module loaded unity что делать. Картинка про no android module loaded unity что делать. Фото no android module loaded unity что делать

no android module loaded unity что делать. Смотреть фото no android module loaded unity что делать. Смотреть картинку no android module loaded unity что делать. Картинка про no android module loaded unity что делать. Фото no android module loaded unity что делать

4 Answers 4

You should take a look at this thread. «Unity 5.3 only has a few platforms downloaded and installed by default. In the installer, you need to check the platforms you need.» When you install unity, make sure you check these

no android module loaded unity что делать. Смотреть фото no android module loaded unity что делать. Смотреть картинку no android module loaded unity что делать. Картинка про no android module loaded unity что делать. Фото no android module loaded unity что делать

no android module loaded unity что делать. Смотреть фото no android module loaded unity что делать. Смотреть картинку no android module loaded unity что делать. Картинка про no android module loaded unity что делать. Фото no android module loaded unity что делать

You need to download the Android module. You failed to include it while installing Unity so you have to do it separately. Make sure the version matches with the Unity version you have.

no android module loaded unity что делать. Смотреть фото no android module loaded unity что делать. Смотреть картинку no android module loaded unity что делать. Картинка про no android module loaded unity что делать. Фото no android module loaded unity что делать

no android module loaded unity что делать. Смотреть фото no android module loaded unity что делать. Смотреть картинку no android module loaded unity что делать. Картинка про no android module loaded unity что делать. Фото no android module loaded unity что делать

On Linux, this will happen with Unity Hub even though you already installed the Android module. What’s happening is Unity Hub is putting the files in the wrong place. It’s putting the files where Unity Hub is installed, instead of in the correct Unity engine subfolder.

Find where you put the UnityHub.appimage binary.

In that folder you will see a lot of extra files that weren’t there before. Those are the Android module files that were incorrectly placed in that folder. Sorting the files/folders by date modified, may help you find the right ones. Some examples of these folders and files:

Copy or Cut all of those folders and files.

Find where your Unity engine install folder is located. You can quickly find this in Unity Hub by going to Installs > click the 3 dots > «Show in File Browser». Make sure you’re clicking on the engine you’re using for this project. no android module loaded unity что делать. Смотреть фото no android module loaded unity что делать. Смотреть картинку no android module loaded unity что делать. Картинка про no android module loaded unity что делать. Фото no android module loaded unity что делать

Navigate to «202#.#.### > Editor > Data > PlaybackEngines > AndroidPlayer».

Paste the folders and files here.

After restarting the Unity editor, going to «File > Build Settings..», you should now see config settings in the Android tab. no android module loaded unity что делать. Смотреть фото no android module loaded unity что делать. Смотреть картинку no android module loaded unity что делать. Картинка про no android module loaded unity что делать. Фото no android module loaded unity что делать

Источник

Android environment setup

To build and run for Android, you must install the Unity Android Build Support platform module. You also need to install the Android Software Development Kit (SDK) and the Native Development Kit (NDK) to build and run any code on your Android device. By default, Unity installs a Java Development Kit based on OpenJDK.

Note: Unity supports Android 4.4 “KitKat” and above. See AndroidSdkVersions for details.

1. Install Android Build Support and the Android SDK & NDK tools

Use the Unity Hub to install Android Build Support and the required dependencies
See in Glossary : Android SDK & NDK tools, and OpenJDK.

no android module loaded unity что делать. Смотреть фото no android module loaded unity что делать. Смотреть картинку no android module loaded unity что делать. Картинка про no android module loaded unity что делать. Фото no android module loaded unity что делатьAdd Android modules

You can install Android Build Support, the Android SDK & NDK tools and OpenJDK when you install the Unity Editor, or add them at a later time.

For information on adding the Android modules:

If you are using a 2018 version of Unity, see the Unity 2018.4 documentation for information on manually installing these dependencies.

2. Enable USB debugging on your device

To enable USB debugging, you must enable Developer options on your device. To do this, find the build number in your device’s Settings menu. The location of the build number varies between devices; for stock Android, it’s usually Settings > About phone > Build number. For specific information on your device and Android version, refer to your hardware manufacturer.

After you navigate to the build number using the instructions above, tap on the build number seven times. A pop-up notification saying “You are now X steps away from being a developer” appears, with “X” being a number that counts down with every additional tap. On the seventh tap, Developer options are unlocked.

Note: On Android versions prior to 4.2 (Jelly Bean), the Developer options are enabled by default.

Go to Settings > Developer options (or, if this does not work, on some devices the path is Settings > System > Developer options), and check the USB debugging checkbox. Android now enters debug mode when it is connected to a computer via USB.

Connect your device to your computer using a USB cable. If you are developing on a Windows computer, you might need to install a device-specific USB driver. See the manufacturer website for your device for additional information.

The setup process differs for Windows and macOS and is explained in detail on the Android developer website. For more information on connecting your Android device to the SDK, refer to the Run Your App section of the Android Developer documentation.

ADB debugging for Chrome OS devices

For information on how to set up your development environment for Chrome OS devices, and enable 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 debugging, see Google’s documentation on Chrome OS Developer Environments.

Connecting to your Chrome OS device

Before you can deploy to your device you need to manually connect with ADB via the device’s IP address.

To begin you need the IP address. Open up the Settings app and choose Network in the sidebar. Next click on the active network interface.

If the interface is wireless then next choose the SSID that you are connected to. In the details you will see your IP address. Make a note of it.

If you are using a wired connection your IP address will be shown on the first details page.

Now we are ready to connect. For the sake of this example let’s say that the device’s IP is 192.168.0.100. In a shell or terminal run the following command

adb connect 192.168.0.100

From now on you may run ADB commands to target the device just as you would over a USB connection.

Note: If your device or host machine goes to sleep or loses network connectivity you may need to reconnect.

Customizing the Android SDK & NDK Tools and OpenJDK installation

Unity recommends that you use the Unity Hub to install Android SDK & NDK tools, to ensure that you receive the correct versions and configuration. Unity installs Android SDK & NDK Tools and OpenJDK respectively in the SDK, NDK and OpenJDK folders under /Unity/Hub/Editor/[EditorVersion]/Editor/Data/PlaybackEngines/AndroidPlayer/.

If you have multiple versions of Unity with the same required dependencies (be sure to check System requirements for the latest) and you want to avoid duplicating the installation of Android SDK & NDK Tools and OpenJDK, you can specify a shared location in the Unity Preferences window. To do this, go to Preferences > External tools and enter the directory paths in the SDK and NDK fields:

no android module loaded unity что делать. Смотреть фото no android module loaded unity что делать. Смотреть картинку no android module loaded unity что делать. Картинка про no android module loaded unity что делать. Фото no android module loaded unity что делатьPreferences window showing external tools settings for Android

Warning: Unity does not officially support versions of the OpenJDK, SDK, or NDK other than the ones it supplies.

To change the OpenJDK, SDK Tools, or NDK that Unity uses to build Android apps:

Change the OpenJDK path

Change the Android SDK Tools path

Unity works with the most recent version of the Android SDK available at the time of the Unity version release.

Change the Android NDK path

Each version of Unity requires a specific version of the Android NDK to be installed:

Unity versionNDK version
2018.4 LTSr16b
2019.4 LTSr19
2020.3 LTSr19

See the System requirements page for a complete list of requirements.

Updating the Android SDK Target API

Unity Hub installs the latest version of the Android SDK Target API required by Google Play.

If you need to use a more recent version, you can change the Target API from the Target API Level field in the Player Settings window (menu: Edit > Project Settings > Player, then select the Android platform). You can find the Target API Level option in the Other Settings > Identification section.

no android module loaded unity что делать. Смотреть фото no android module loaded unity что делать. Смотреть картинку no android module loaded unity что делать. Картинка про no android module loaded unity что делать. Фото no android module loaded unity что делатьSelecting a target API for the Android SDK

After you select an option other than the default, Unity prompts you to update the Android SDK API. You can choose to either:

Note: If you select an older version of the Target API, the Unity Android SDK Updater will not be able to perform the update and will give you this message:

Android SDK does not include your Target SDK of (version). Please use the Android SDK Manager to install your target SDK version. Restart Unity after SDK installation for the changes to take effect.

In this case, to update the Android SDK Target API, you must use the Android sdkmanager from either Android Studio or the command line tool. Regardless of the method you chose, make sure to select the correct Android SDK folder for Unity in the Edit > Preferences > External Tools window.

On Windows, if the Unity Editor is installed in the default folder ( /Program Files/ ), you must run the sdkmanager with elevated privilege (Run as Administrator) to perform the update.

Источник

No android module loaded Unity 2019

I have a problem with building 2d Unity game on android. (Unity version: 2019.4.33f1)

In the window ‘Build Settings’ i choose platdorm ‘Android’ and it says ‘No Android module loaded’. no android module loaded unity что делать. Смотреть фото no android module loaded unity что делать. Смотреть картинку no android module loaded unity что делать. Картинка про no android module loaded unity что делать. Фото no android module loaded unity что делать

However when i press the button ‘Install with Unity Hub’ I see that all adroid staffs already installed. no android module loaded unity что делать. Смотреть фото no android module loaded unity что делать. Смотреть картинку no android module loaded unity что делать. Картинка про no android module loaded unity что делать. Фото no android module loaded unity что делать

Also in the tab ‘Preferences’ I can’t see anroid modules. no android module loaded unity что делать. Смотреть фото no android module loaded unity что делать. Смотреть картинку no android module loaded unity что делать. Картинка про no android module loaded unity что делать. Фото no android module loaded unity что делать

no android module loaded unity что делать. Смотреть фото no android module loaded unity что делать. Смотреть картинку no android module loaded unity что делать. Картинка про no android module loaded unity что делать. Фото no android module loaded unity что делать

2 Answers 2

I also experienced some difficulties with Unity locating my installed modules before.

If what Thomas Finet suggested above doesn’t work and your AndroidPlayer path (Unity/2019.xx.xx/Editor/Data/PlaybackEngines/AndroidPlayer) is populated, try changing the install location of your Unity Editor.

I started using D:Editor/ for my Unity Editor version installs (e.g D:\Editor\2020.1.17f1) after having issues about «long folder path» and «non-english characters»

ok. it seems a weird thing happened here. Unity hub may have put the module somewhere (he finds it) but not at the right place for your Editor.

I can’t really recreate this myself but try this

The folder that will open should be where Unity hub is putting the modules (wrong place)

Now you have to find the android module (it may be located in a folder named «AndroidPlayer»).

After all this, you just have to put this folder at your Editor location (Unity/2019.xx.xx/Editor/Data/PlaybackEngines/AndroidPlayer).

Hope this will help you figure out what happened 😀

Источник

Troubleshooting Android development

Your application crashes immediately after launch

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 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

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.

Источник

Настройка Android SDK

Прежде чем вы сможете запустить написанный код на Android-устройстве, нужно выполнить несколько простых действий. Это относится как к работе с Unity, так и к созданию приложений с нуля.

1. Скачать Android SDK

Зайдите на страницу Android Developer SDK. Скачайте архив с последней версией Android SDK и распакуйте его.

2. Установить Android SDK

Следуйте инструкциям на странице Installing the SDK (причём, вы можете свободно пропустить опциональные части, относящиеся к Eclipse). В шаге 4 руководства Installing the SDK убедитесь, что добавили как минимум одну Android platform (Android платформу) с уровнем API равным или выше 9 (платформа 2.3 или выше), Platform Tools и USB drivers (USB драйверы), если вы используете Windows.

3. Удостовериться, что система определяет ваше устройство

Это может быть не так просто, особенно на Windows системах, в которых драйвера часто бывают источником проблем. Также, с вашим устройством может идти дополнительная информация или особые драйверы от производителя.

Для Windows: если Andoid устройство автоматически определяется системой, вам все равно придётся обновить драйверы на те, который поставляются с Android SDK. Это делается через диспетчер устройств Windows. —>Если устройство не определяется автоматически, используйте драйверы из Android SDK или особые драйверы, предоставленные производителем. —>Дополнительную информацию можно найти здесь: USB Drivers for Windows

Для Mac: если вы разрабатываете на OSX, тогда обычно не требуется никаких дополнительных драйверов.

Если вы не уверены, что ваше устройство корректно установилось в системе, пожалуйста, прочтите страницу Решение проблем при разработке под Android для дополнительной информации.

4. Добавить путь до Android SDK в Unity

При первой сборке проекта под Android (или если Unity не сможет обнаружить SDK), вас попросят указать местоположение папки, в которую вы установили Android SDK (вы должны выделить корневую папку установленного SDK). Путь до Android SDK также можно изменить в редакторе, выбрав в меню Unity > Preferences и перейдя в раздел External Tools окна настроек.

Источник

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *