Я добавил это в свой файл csproj
Код: Выделить всё
net6.0-android;net6.0-ios;net6.0-maccatalyst
$(TargetFrameworks);net6.0-windows10.0.19041.0
Exe
AmuMAUI
true
true
enable
false
Amu
com.companyname.amumaui
55D14972-B250-4058-A1C2-41A290336F
1.0
1
14.2
14.0
24.0
10.0.17763.0
10.0.17763.0
6.5
AnyCPU
False
True
True
True
True
False
None
false
r8
True
amu.keystore
key
mypass
mypass
Код: Выделить всё
03-25 08:28:06.710 6419 6419 D ProcessState: Binder ioctl to enable oneway spam detection failed: Invalid argument
03-25 08:28:06.777 6419 6419 D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10434; state: ENABLED
03-25 08:28:06.846 6419 6419 D nativeloader: Configuring classloader-namespace for other apk /system/framework/org.apache.http.legacy.jar. target_sdk_version=31, uses_libraries=ALL, library_path=/data/app/~~-15s6o83Qaub3pCI5MhNrg==/com.companyname.amumaui-gwKbAsbO2ynCWaiorbb4Sw==/lib/arm64:/data/app/~~-15s6o83Qaub3pCI5MhNrg==/com.companyname.amumaui-gwKbAsbO2ynCWaiorbb4Sw==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/com.companyname.amumaui
03-25 08:28:06.846 6419 6419 D nativeloader: Extending system_exposed_libraries: libvraudio_client.qti.so:libbinauralrenderer_wrapper.qti.so:libhoaeffects.qti.so:libQOC.qti.so:libupdateprof.qti.so:libthermalclient.qti.so:libQOC.qti.so:libdiag_system.qti.so:libqape.qti.so:liblistenjni.qti.so
03-25 08:28:06.850 6419 6419 W ziparchive: Unable to open '/data/app/~~-15s6o83Qaub3pCI5MhNrg==/com.companyname.amumaui-gwKbAsbO2ynCWaiorbb4Sw==/base.dm': No such file or directory
03-25 08:28:06.850 6419 6419 W ziparchive: Unable to open '/data/app/~~-15s6o83Qaub3pCI5MhNrg==/com.companyname.amumaui-gwKbAsbO2ynCWaiorbb4Sw==/base.dm': No such file or directory
03-25 08:28:07.150 6419 6419 D nativeloader: Configuring classloader-namespace for other apk /data/app/~~-15s6o83Qaub3pCI5MhNrg==/com.companyname.amumaui-gwKbAsbO2ynCWaiorbb4Sw==/base.apk. target_sdk_version=31, uses_libraries=, library_path=/data/app/~~-15s6o83Qaub3pCI5MhNrg==/com.companyname.amumaui-gwKbAsbO2ynCWaiorbb4Sw==/lib/arm64:/data/app/~~-15s6o83Qaub3pCI5MhNrg==/com.companyname.amumaui-gwKbAsbO2ynCWaiorbb4Sw==/base.apk!/lib/arm64-v8a, permitted_path=/data:/mnt/expand:/data/user/0/com.companyname.amumaui
03-25 08:28:07.175 6419 6419 V GraphicsEnvironment: ANGLE Developer option for 'com.companyname.amumaui' set to: 'default'
03-25 08:28:07.175 6419 6419 V GraphicsEnvironment: Neither updatable production driver nor prerelease driver is supported.
03-25 08:28:07.179 6419 6419 D NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: true
03-25 08:28:07.181 6419 6419 D NetworkSecurityConfig: Using Network Security Config from resource network_security_config debugBuild: true
03-25 08:28:07.188 6419 6419 D debug-app-helper: Checking if libmonodroid was unpacked to /data/app/~~-15s6o83Qaub3pCI5MhNrg==/com.companyname.amumaui-gwKbAsbO2ynCWaiorbb4Sw==/lib/arm64/libmonodroid.so
03-25 08:28:07.188 6419 6419 D debug-app-helper: Native libs extracted to /data/app/~~-15s6o83Qaub3pCI5MhNrg==/com.companyname.amumaui-gwKbAsbO2ynCWaiorbb4Sw==/lib/arm64, assuming application/android:extractNativeLibs == true
03-25 08:28:07.188 6419 6419 I debug-app-helper: Setting up for DSO lookup in app data directories
03-25 08:28:07.188 6419 6419 D debug-app-helper: Added filesystem DSO lookup location: /data/app/~~-15s6o83Qaub3pCI5MhNrg==/com.companyname.amumaui-gwKbAsbO2ynCWaiorbb4Sw==/lib/arm64
03-25 08:28:07.188 6419 6419 W debug-app-helper: Using runtime path: /data/app/~~-15s6o83Qaub3pCI5MhNrg==/com.companyname.amumaui-gwKbAsbO2ynCWaiorbb4Sw==/lib/arm64
03-25 08:28:07.188 6419 6419 W debug-app-helper: checking directory: `/data/user/0/com.companyname.amumaui/files/.__override__/lib`
03-25 08:28:07.188 6419 6419 W debug-app-helper: directory does not exist: `/data/user/0/com.companyname.amumaui/files/.__override__/lib`
03-25 08:28:07.188 6419 6419 W debug-app-helper: Checking whether Mono runtime exists at: /data/user/0/com.companyname.amumaui/files/.__override__/libmonosgen-2.0.so
03-25 08:28:07.188 6419 6419 W debug-app-helper: Checking whether Mono runtime exists at: /data/app/~~-15s6o83Qaub3pCI5MhNrg==/com.companyname.amumaui-gwKbAsbO2ynCWaiorbb4Sw==/lib/arm64/libmonosgen-2.0.so
03-25 08:28:07.188 6419 6419 I debug-app-helper: Mono runtime found at: /data/app/~~-15s6o83Qaub3pCI5MhNrg==/com.companyname.amumaui-gwKbAsbO2ynCWaiorbb4Sw==/lib/arm64/libmonosgen-2.0.so
03-25 08:28:07.190 6419 6419 W yname.amumau: Attempt to remove non-JNI local reference, dumping thread
03-25 08:28:07.193 6419 6419 I DOTNET : JNI_OnLoad: JNI_OnLoad in pal_jni.c
03-25 08:28:07.202 6419 6419 W monodroid: Creating public update directory: `/data/user/0/com.companyname.amumaui/files/.__override__`
03-25 08:28:07.202 6419 6419 W yname.amumau: Attempt to remove non-JNI local reference, dumping thread
03-25 08:28:07.202 6419 6419 W monodroid: runtime args empty
03-25 08:28:07.205 6419 6419 F monodroid: No assemblies found in '/data/user/0/com.companyname.amumaui/files/.__override__' or ''. Assuming this is part of Fast Deployment. Exiting...
03-25 08:28:07.205 6419 6419 F monodroid: Make sure that all entries in the APK directory named `assemblies/` are STORED (not compressed)
03-25 08:28:07.205 6419 6419 F monodroid: If Android Gradle Plugin's minification feature is enabled, it is likely all the entries in `assemblies/` are compressed
03-25 08:28:07.206 6419 6419 F libc : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 6419 (yname.amumaui), pid 6419 (yname.amumaui)
03-25 08:28:07.626 6450 6450 F DEBUG : Softversion: PD2034CF_EX_A_6.8.8
03-25 08:28:07.626 6450 6450 F DEBUG : Time: 2023-03-25 08:28:07
03-25 08:28:07.626 6450 6450 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
03-25 08:28:07.626 6450 6450 F DEBUG : Build fingerprint: 'vivo/789075/2027:12/SP1A.210812.003/compiler08021735:user/release-keys'
03-25 08:28:07.626 6450 6450 F DEBUG : Revision: '0'
03-25 08:28:07.626 6450 6450 F DEBUG : ABI: 'arm64'
03-25 08:28:07.626 6450 6450 F DEBUG : Timestamp: 2023-03-25 08:28:07.281564827+0500
03-25 08:28:07.626 6450 6450 F DEBUG : Process uptime: 0s
03-25 08:28:07.626 6450 6450 F DEBUG : Cmdline: com.companyname.amumaui
03-25 08:28:07.626 6450 6450 F DEBUG : pid: 6419, tid: 6419, name: yname.amumaui >>> com.companyname.amumaui
Подробнее здесь: [url]https://stackoverflow.com/questions/75832206/net-maui-app-crashes-when-installed-from-apk-but-works-well-with-debugger[/url]