Search Unity

Android build errors, please help!

Discussion in 'Unity Build Automation' started by henkjan, Jan 30, 2019.

  1. henkjan

    henkjan

    Joined:
    Aug 1, 2013
    Posts:
    146
    Can anybody tell me what goes wrong here? It doesn't refer to my code as far as I can see....

    [Unity] ERROR: Failed running /UNITY_PATH/Unity/Unity-2018_3_3f1/Unity.app/Contents/il2cpp/build/il2cppcore/il2cppcore.dll --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="/BUILD_PATH/thesimulationcrew.hospitality-game-retail.default-android/Temp/StagingArea/assets/bin/Data/Native/armeabi-v7a/libil2cpp.so" --cachedirectory="/BUILD_PATH/thesimulationcrew.hospitality-game-retail.default-android/Assets/../Library/il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="/UNITY_PATH/Unity/Unity-2018_3_3f1/PlaybackEngines/AndroidPlayer/Tools/bdwgc/include" --additional-include-directories="/UNITY_PATH/Unity/Unity-2018_3_3f1/PlaybackEngines/AndroidPlayer/Tools/libil2cpp/include" --tool-chain-path="/UNITY_PATH/Unity/android/ndk-r16b" --map-file-parser="/UNITY_PATH/Unity/Unity-2018_3_3f1/Unity.app/Contents/Tools/MapFileParser/MapFileParser" --directory="/BUILD_PATH/thesimulationcrew.hospitality-game-retail.default-android/Temp/StagingArea/assets/bin/Data/Managed" --generatedcppdir="/BUILD_PATH/thesimulationcrew.hospitality-game-retail.default-android/Temp/StagingArea/Il2Cpp/il2cppOutput"

    2997: [Unity] /BUILD_PATH/thesimulationcrew.hospitality-game-retail.default-android/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_0.cpp:43584: error: undefined reference to 'openWindow'

    2998: [Unity] /BUILD_PATH/thesimulationcrew.hospitality-game-retail.default-android/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_0.cpp:43584: error: undefined reference to 'openWindow'

    2999: [Unity] clang++: error: linker command failed with exit code 1 (use -v to see invocation)
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    Can you provide the generated C++ code from the BUILD_PATH/thesimulationcrew.hospitality-game-retail.default-android/Temp/StagingArea/Il2Cpp/il2cppOutput/Bulk_Assembly-CSharp_0.cpp file around line 43584?
     
  3. henkjan

    henkjan

    Joined:
    Aug 1, 2013
    Posts:
    146
    I don't think so. It is data stored on Unity Build Cloud servers.

    UPDATE:
    When I switch from IL2CPP scripting backend to Mono scripting backend. Android gets build!

    mono.png
     
    Last edited: Jan 31, 2019
  4. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,938
    Can you reproduce the problem with IL2CPP in a local build?