Open woroud2000 opened 1 year ago
I tried to run the example on a real device (Android 12) with Ubuntu "21.04 (Hirsute Hippo)"
flutter doctor: [✓] Flutter (Channel stable, 3.3.10, on Ubuntu 21.04 5.11.0-49-generic, locale en_US.UTF-8) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1) [✓] Chrome - develop for the web [✓] Linux toolchain - develop for Linux desktop [✓] Android Studio (version 2021.3) [✓] Connected device (3 available) [✓] HTTP Host Availability
Exception log: Abort message: 'JNI FatalError called: Unable to load library: /data/app/~~U7PKby5LJ_mTU6ENriHTaA==/com.xraph.plugin.flutter_unity_widget_example-p09HW-k2sxSdH7Qpzuiobg==/lib/arm64/libil2cpp.so [dlopen failed: library "libil2cpp.so" not found]'
I already read this issue 667 and I tried every solution:
remove this:
// def executableExtension = "" // if (org.gradle.internal.os.OperatingSystem.current().isWindows()) // executableExtension = ".exe" // exec { // executable workingDir + "/src/main/Il2CppOutputProject/IL2CPP/build/deploy/il2cpp" + executableExtension // args commandLineArgs // environment "ANDROID_SDK_ROOT", getSdkDir() // } // delete workingDir + "/src/main/jniLibs/" + abi + "/libil2cpp.sym.so" //ant.move(file: workingDir + "/src/main/jniLibs/" + abi + "/libil2cpp.dbg.so", tofile: workingDir + "/symbols/" + abi + "/libil2cpp.so")
Export it in release mode
Remove playerOptions.options = BuildOptions.AllowDebugging; from build.cs
Remove commandLineArgs.add("--enable-debugger") from unityLibrary/build.gradle after an export
Export with a different Unity version like 2021.
Build and export the app bundle. Extract the app bundle source .... BUT NO libil2cpp.so file created
i also am strugling with this issue.. no one have solution for linux?
i also am strugling with this issue.. no one have solution for mac os?
any update?
I tried to run the example on a real device (Android 12) with Ubuntu "21.04 (Hirsute Hippo)"
flutter doctor: [✓] Flutter (Channel stable, 3.3.10, on Ubuntu 21.04 5.11.0-49-generic, locale en_US.UTF-8) [✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1) [✓] Chrome - develop for the web [✓] Linux toolchain - develop for Linux desktop [✓] Android Studio (version 2021.3) [✓] Connected device (3 available) [✓] HTTP Host Availability
Exception log: Abort message: 'JNI FatalError called: Unable to load library: /data/app/~~U7PKby5LJ_mTU6ENriHTaA==/com.xraph.plugin.flutter_unity_widget_example-p09HW-k2sxSdH7Qpzuiobg==/lib/arm64/libil2cpp.so [dlopen failed: library "libil2cpp.so" not found]'
I already read this issue 667 and I tried every solution:
remove this:
// def executableExtension = "" // if (org.gradle.internal.os.OperatingSystem.current().isWindows()) // executableExtension = ".exe" // exec { // executable workingDir + "/src/main/Il2CppOutputProject/IL2CPP/build/deploy/il2cpp" + executableExtension // args commandLineArgs // environment "ANDROID_SDK_ROOT", getSdkDir() // } // delete workingDir + "/src/main/jniLibs/" + abi + "/libil2cpp.sym.so" //ant.move(file: workingDir + "/src/main/jniLibs/" + abi + "/libil2cpp.dbg.so", tofile: workingDir + "/symbols/" + abi + "/libil2cpp.so")
Export it in release mode
Remove playerOptions.options = BuildOptions.AllowDebugging; from build.cs
Remove commandLineArgs.add("--enable-debugger") from unityLibrary/build.gradle after an export
Export with a different Unity version like 2021.
Build and export the app bundle. Extract the app bundle source .... BUT NO libil2cpp.so file created