Код: Выделить всё
Java.Lang.RuntimeException: 'Unable to instantiate activity ComponentInfo{TCRM_Service.TCRM_Service/TCRM_Service.MainActivity}: '
java.lang.ClassNotFoundException: 'Didn't find class "TCRM_Service.MainActivity" on path: DexPathList
[
[zip file "/data/app/~~C_BfwTgdTmI7Q2CVHS4Avw==/TCRM_Service.TCRM_Service-IWq-WarhbPCJ22s36wnDpw==/base.apk"],
nativeLibraryDirectories=
[
/data/app/~~C_BfwTgdTmI7Q2CVHS4Avw==/TCRM_Service.TCRM_Service-IWq-WarhbPCJ22s36wnDpw==/lib/x86_64,
/data/app/~~C_BfwTgdTmI7Q2CVHS4Avw==/TCRM_Service.TCRM_Service-IWq-WarhbPCJ22s36wnDpw==/base.apk!/lib/x86_64,
/system/lib64,
/system_ext/lib64
]
]
Код: Выделить всё
Код: Выделить всё
using Android.App;
using Android.Content.PM;
using Android.OS;
namespace TCRM_Service;
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
public class MainActivity : MauiAppCompatActivity
{
protected override void OnCreate(Bundle savedInstanceState)
{
base.OnCreate(savedInstanceState);
}
}
Подробнее здесь: https://stackoverflow.com/questions/789 ... ponentinfo