Search Unity

Android module cannot be installed

Discussion in 'Linux' started by xAdamQ, Sep 14, 2021.

  1. xAdamQ

    xAdamQ

    Joined:
    Jul 23, 2016
    Posts:
    53
    I am trying to install Unity 2021.1.20f1 on Manjaro KDE, first the problem was from cpio after I installed it unity still can't extract the pkg file giving the following error on the log file:

     
  2. xAdamQ

    xAdamQ

    Joined:
    Jul 23, 2016
    Posts:
    53
    the problem is `app.asar` is actually a file, the correct path would be `app.asar.unpacked` which contains 7z, if Unity can use the installed 7z package on the system this would be solved.
    both hub beta/prod versions give the same error.
    I tried to rename the file but I couldn't because the hub have the read/write access and if I canceled it will generate new file with new id.
     
  3. xAdamQ

    xAdamQ

    Joined:
    Jul 23, 2016
    Posts:
    53
    Can you at least provide a way to install the modules manually as we do on windows?
     
  4. xAdamQ

    xAdamQ

    Joined:
    Jul 23, 2016
    Posts:
    53
    I solved it by:
    sudo pacman -S npm
    npm install asar
     
  5. mrcc912

    mrcc912

    Joined:
    Oct 13, 2013
    Posts:
    3
    I am also unable to isntall the android module, but on Pop!_OS 20.04 LTS

    I have tried 2019.4.30f1, 2019.4.29f1 and 2020.3.18f1 installing through the unity hub and selecting all the android check boxes. It seems to download the NDK, JDK and SDK just fine as far as I can tell (I can view these folders on disk, Unity/Hub/Editor/2019.4.30f1/Editor/Data/PlaybackEngines/AndroidPlayer/...), but within Unity I continue to get the "No Android module loaded." message in the build settings. When I go to Preferences -> External Tools, there is no mention of any of the normal android fields (ie the path for jdk/ndk/sdk).



    looking at the info-log.json from the unityhub these are the lines that were created after trying to add the android module to a freshly installed 2019.4.30f1:


    Code (JavaScript):
    1. {"moduleName":"EditorManager","level":"error","message":"[ 'Could not calculate required size on disk for download because of',\n  'Path not specified. Cannot verify disk usage.' ]","timestamp":"2021-09-16T21:53:27.639Z"}
    2. {"moduleName":"DownloadsCluster","level":"info","message":"[ 'Cluster total download size: 1.53GB' ]","timestamp":"2021-09-16T21:53:27.788Z"}
    3. {"moduleName":"DownloadsCluster","level":"info","message":"[ 'Cluster 2019.4.30f1: downloads starting' ]","timestamp":"2021-09-16T21:53:27.788Z"}
    4. {"moduleName":"DownloadRequest","level":"info","message":"[ 'Starting the download of https://download.unity3d.com/download_unity/e8c891080a1f/MacEditorTargetInstaller/UnitySetup-Android-Support-for-Editor-2019.4.30f1.pkg to /tmp/unityhub-860f2670-1738-11ec-b265-6bfe25c5a101/UnitySetup-Android-Support-for-Editor-2019.4.30f1.pkg' ]","timestamp":"2021-09-16T21:53:27.788Z"}
    5. {"moduleName":"DownloadRequest","level":"info","message":"[ 'Starting the download of https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip to /tmp/unityhub-860f2670-1738-11ec-b265-6bfe25c5a101/sdk-tools-linux-4333796.zip' ]","timestamp":"2021-09-16T21:53:27.788Z"}
    6. {"moduleName":"DownloadRequest","level":"info","message":"[ 'Starting the download of https://dl.google.com/android/repository/platform-tools_r28.0.1-linux.zip to /tmp/unityhub-860f2670-1738-11ec-b265-6bfe25c5a101/platform-tools_r28.0.1-linux.zip' ]","timestamp":"2021-09-16T21:53:27.788Z"}
    7. {"moduleName":"DownloadRequest","level":"info","message":"[ 'Starting the download of https://dl.google.com/android/repository/build-tools_r30.0.2-linux.zip to /tmp/unityhub-860f2670-1738-11ec-b265-6bfe25c5a101/build-tools_r30.0.2-linux.zip' ]","timestamp":"2021-09-16T21:53:27.789Z"}
    8. {"moduleName":"DownloadRequest","level":"info","message":"[ 'Starting the download of https://dl.google.com/android/repository/platform-29_r05.zip to /tmp/unityhub-860f2670-1738-11ec-b265-6bfe25c5a101/platform-29_r05.zip' ]","timestamp":"2021-09-16T21:53:27.789Z"}
    9. {"moduleName":"DownloadRequest","level":"info","message":"[ 'Starting the download of https://dl.google.com/android/repository/android-ndk-r19-linux-x86_64.zip to /tmp/unityhub-860f2670-1738-11ec-b265-6bfe25c5a101/android-ndk-r19-linux-x86_64.zip' ]","timestamp":"2021-09-16T21:53:27.789Z"}
    10. {"moduleName":"DownloadRequest","level":"info","message":"[ 'Starting the download of http://download.unity3d.com/download_unity/open-jdk/open-jdk-linux-x64/jdk8u172-b11_4be8440cc514099cfe1b50cbc74128f6955cd90fd5afe15ea7be60f832de67b4.zip to /tmp/unityhub-860f2670-1738-11ec-b265-6bfe25c5a101/jdk8u172-b11_4be8440cc514099cfe1b50cbc74128f6955cd90fd5afe15ea7be60f832de67b4.zip' ]","timestamp":"2021-09-16T21:53:27.791Z"}
    11. {"moduleName":"DownloadManager","level":"info","message":"[ 'download ended with status: 3 /tmp/unityhub-860f2670-1738-11ec-b265-6bfe25c5a101/platform-tools_r28.0.1-linux.zip' ]","timestamp":"2021-09-16T21:53:36.984Z"}
    12. {"moduleName":"DownloadManager","level":"info","message":"[ 'download ended with status: 3 /tmp/unityhub-860f2670-1738-11ec-b265-6bfe25c5a101/jdk8u172-b11_4be8440cc514099cfe1b50cbc74128f6955cd90fd5afe15ea7be60f832de67b4.zip' ]","timestamp":"2021-09-16T21:53:47.078Z"}
    13. {"moduleName":"DownloadManager","level":"info","message":"[ 'download ended with status: 3 /tmp/unityhub-860f2670-1738-11ec-b265-6bfe25c5a101/build-tools_r30.0.2-linux.zip' ]","timestamp":"2021-09-16T21:54:18.220Z"}
    14. {"moduleName":"DownloadManager","level":"info","message":"[ 'download ended with status: 3 /tmp/unityhub-860f2670-1738-11ec-b265-6bfe25c5a101/platform-29_r05.zip' ]","timestamp":"2021-09-16T21:54:22.387Z"}
    15. {"moduleName":"DownloadManager","level":"info","message":"[ 'download ended with status: 3 /tmp/unityhub-860f2670-1738-11ec-b265-6bfe25c5a101/UnitySetup-Android-Support-for-Editor-2019.4.30f1.pkg' ]","timestamp":"2021-09-16T21:54:39.078Z"}
    16. {"moduleName":"DownloadManager","level":"info","message":"[ 'download ended with status: 3 /tmp/unityhub-860f2670-1738-11ec-b265-6bfe25c5a101/sdk-tools-linux-4333796.zip' ]","timestamp":"2021-09-16T21:54:43.649Z"}
    17. {"moduleName":"DownloadsCluster","level":"info","message":"[ 'Cluster 2019.4.30f1: Finished' ]","timestamp":"2021-09-16T21:55:59.183Z"}
    18. {"moduleName":"DownloadManager","level":"info","message":"[ 'download ended with status: 3 /tmp/unityhub-860f2670-1738-11ec-b265-6bfe25c5a101/android-ndk-r19-linux-x86_64.zip' ]","timestamp":"2021-09-16T21:55:59.184Z"}
    19. {"moduleName":"Download","level":"info","message":"[ 'Components download ended successfully. Download id: 2019.4.30f1' ]","timestamp":"2021-09-16T21:55:59.184Z"}
    20. {"moduleName":"Installer","level":"info","message":"[ 'Install modules for the Editor 2019.4.30f1' ]","timestamp":"2021-09-16T21:55:59.184Z"}
    21. {"moduleName":"Installer:ReleaseFileIO","level":"info","message":"[ 'write ~/Unity/Hub/Editor/2019.4.30f1/modules.json' ]","timestamp":"2021-09-16T21:56:31.433Z"}
    22. {"moduleName":"Installer:ReleaseFileIO","level":"info","message":"[ 'read ~/Unity/Hub/Editor/2019.4.30f1/modules.json' ]","timestamp":"2021-09-16T21:56:31.535Z"}
     
  6. mqt0029

    mqt0029

    Joined:
    Aug 30, 2019
    Posts:
    1
    Similar error occured as xAdamQ mentioned when trying for Android, iOS, Mac, and Windows build module on Ubuntu 20.04 LTS. Weirdly enough for me this only happens on Unity Hub 3.0.0-beta4, going back to 2.4.5 this error does not happen.
     
    Last edited: Sep 17, 2021
    TheBitFossil likes this.
  7. TheBitFossil

    TheBitFossil

    Joined:
    Jan 15, 2014
    Posts:
    1
    Thanks, that did the trick!
    I also went back to the other HUB 2.4.5 and now i can install and switch back to the modules inside Unity.
     
    Raisito likes this.