question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Native extension for Android target not found

See original GitHub issue

I tried several different versions of unity, but I am getting the same error in each versions.

Here is the complete log

name: Build and Release CGS
on:
  push:
    branches:
      - master
      - dev/*
jobs:
  buildForAllPlatforms:
    name: Build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }}
    runs-on: ubuntu-latest
    env:
      UNITY_LICENSE: ${{ secrets.UNITY_LICENSE }}
    strategy:
      fail-fast: false
      matrix:
        unityVersion:
          - 2019.3.7f1
        targetPlatform:
          - Android # Build an Android .apk standalone app.
          - iOS # Build an iOS player.
      #    - StandaloneOSX # Build a macOS standalone (Intel 64-bit).
       #   - StandaloneWindows # Build a Windows standalone.
       #   - StandaloneWindows64 # Build a Windows 64-bit standalone.
        #  - StandaloneLinux64 # Build a Linux 64-bit standalone.
#          - WebGL # WebGL.
    steps:
      - uses: actions/checkout@v2
        with:
          lfs: true
      - uses: actions/cache@v1.1.0
        with:
          path: Library
          key: Library-${{ matrix.targetPlatform }}
      - uses: webbertakken/unity-builder@196fe8fc5b9d335768f6c0c051f285d0080c267e
        with:
          unityVersion: ${{ matrix.unityVersion }}
          targetPlatform: ${{ matrix.targetPlatform }}
          buildsPath: builds
          androidAppBundle: true
          androidKeystoreName: user.keystore
          androidKeystorePass: ${{ secrets.ANDROID_KEYSTORE_PASS }}
          androidKeyaliasName: ${{ secrets.ANDROID_KEYALIAS_NAME }}
          androidKeyaliasPass: ${{ secrets.ANDROID_KEYALIAS_PASS }}
      - uses: actions/upload-artifact@v1
        with:
          name: cgs-builds
          path: builds

2020-07-27T23:54:49.2953145Z Targeting platform: Android
2020-07-27T23:54:49.2971043Z Refreshing native plugins compatible for Editor in 0.01 ms, found 0 plugins.
2020-07-27T23:54:49.2976002Z Preloading 0 native plugins for Editor in 0.00 ms.
Register platform support module: /opt/Unity/Editor/Data/PlaybackEngines/LinuxStandaloneSupport/UnityEditor.LinuxStandalone.Extensions.dll
Register platform support module: /opt/Unity/Editor/Data/PlaybackEngines/AndroidPlayer/UnityEditor.Android.Extensions.dll
Registered in 0.004537 seconds.
Native extension for Android target not found
Native extension for LinuxStandalone target not found

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
ScareCrow95commented, Jul 28, 2020

I will try again with the smaller project. My error is slightly different. I do use facebook SDK which requires me to have openssl installed on windows but I dont think that would be needed for linux. The script which has compiler errors seems to be a unity script, so I guess I will just wait for the update.

2020-07-28T03:05:46.8180511Z Unloading 9901 unused Assets to reduce memory usage. Loaded Objects now: 4591.
2020-07-28T03:05:46.8185661Z Total: 39.194700 ms (FindLiveObjects: 2.312000 ms CreateObjectMapping: 1.088700 ms MarkObjects: 6.744500 ms  DeleteObjects: 29.048100 ms)
2020-07-28T03:05:46.8186094Z 
2020-07-28T03:05:46.9274721Z Scripts have compiler errors. 
2020-07-28T03:05:46.9275612Z (Filename: ./Runtime/Utilities/Argv.cpp Line: 361)
2020-07-28T03:05:46.9275971Z 
2020-07-28T03:05:46.9281163Z 
2020-07-28T03:05:46.9281801Z Aborting batchmode due to failure:
2020-07-28T03:05:46.9282398Z Scripts have compiler errors.
2reactions
GabLeRouxcommented, Jul 28, 2020

I’m not 100% sure, but it may be due to upstream changes to android docker images introduced in https://gitlab.com/gableroux/unity3d/-/commit/4d1eaa74cbec79386cda4f797e1db63ebcda1c20.

We will republish android images with the right JDK/SDK/NDK this week.

Here are related issues:

Do you have more details? Did you try in a smaller/empty unity project?

Again, right now, even my example project fails on android build with following error:
https://gitlab.com/gableroux/unity3d-gitlab-ci-example/-/jobs/659753064

Related issue:
https://gitlab.com/gableroux/unity3d-gitlab-ci-example/-/issues/115

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Unity] Native extension for Android target not found
On cloud building project is failing with "Native extension for Android target not found" I want to target Android using unity 5.3.7f1...
Read more >
Null reference error - Google Groups
Native extension for Android target not found. Load scene 'Temp/__Backupscenes/0.backup' time: ... EditorHelper: No Visual Studio 2008 installation found.
Read more >
Cannot find build output of Unity with Windows GitlabRunner
I am curently configuring a Windows GitlabRunner for Unity. Actually the build seems to works successfully according to the log file, however I ......
Read more >
Editor will freeze when using -executeMethod #389 - GitHub
Begin MonoManager ReloadAssembly Native extension for iOS target not found Native extension for Android target not found Native extension ...
Read more >
WebGL Build Failing - Unity 2018.2.9f1 (#39) · Issues - GitLab
Native extension for WebGL target not found Native extension for ... ms] Updating Packages/com.unity.ads/Editor/Resources/Android/builds ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found