Son zamanlarda MvvmCross'ı 3.5.1'den 4.1.4'e benim projemde güncelleştirdim ve uygulama güncelleştirmesini onunla birlikte yayımladım.NotSupportedException JNI tanıtıcı etkinleştirilemedi - MvvmCross
Bundan sonra, Xamarin Insights'tan birçok kullanıcının deneyimlediğini görüyorum; Etkinliklerin hemen hemen hepsinde ilgili etkinlik adlarıyla ilgili
Could not activate JNI Handle 0xffb35af8 (key_handle 0xe888654) of Java type 'md53997af0c1a24144057e197743f9f827a/HomeView' as managed type 'package.name.HomeView'
. Bütün bu aktiviteler MvxActivities.
Benim Setup.cs -
public class Setup : MvxAndroidSetup
{
public Setup(Context applicationContext)
: base(applicationContext)
{
}
protected override IMvxApplication CreateApp()
{
return new MVVM.App();
}
protected override IMvxTrace CreateDebugTrace()
{
return new MvxDebugTrace();
}
protected override MvvmCross.Droid.Views.IMvxAndroidViewPresenter CreateViewPresenter()
{
var presenter = new MyViewPresenter();
Mvx.RegisterSingleton<IMvxViewPresenter>(presenter);
return presenter;
}
protected override void FillTargetFactories(MvvmCross.Binding.Bindings.Target.Construction.IMvxTargetBindingFactoryRegistry registry)
{
registry.RegisterCustomBindingFactory<View>(
"ShowMe",
v => new ViewScalingCustomBinding(v));
registry.RegisterCustomBindingFactory<View>(
"ScaleMe",
v => new ViewSizingCustomBinding(v));
registry.RegisterCustomBindingFactory<View>(
"CustomFont",
v => new FontCustomBinding(v));
registry.RegisterCustomBindingFactory<View>(
"OtherCustomFont",
v => new FontDincCustomBinding(v));
registry.RegisterCustomBindingFactory<View>(
"ImageResize",
v => new ImageResizeCustomBinding(v));
base.FillTargetFactories(registry);
}
protected override IMvxPluginConfiguration GetPluginConfiguration(Type plugin)
{
if (plugin == typeof(MvvmCross.Plugins.DownloadCache.Droid.Plugin))
{
return new MvvmCross.Plugins.DownloadCache.Droid.MvxDownloadCacheConfiguration()
{
CacheName = "Pictures.MvvmCross",
CacheFolderPath = "../Library/Caches/Pictures.MvvmCross/",
MaxFiles = 500,
MaxFileAge = TimeSpan.FromDays(1),
MaxInMemoryBytes = 4000000, // 4 MB
MaxInMemoryFiles = 1,
MaxConcurrentDownloads = 10,
DisposeOnRemoveFromCache = false
};
}
return null;
}
}
bu soruna neden olabilir ne olacak?
Bu Aktivitelerden birini gösterebilir misiniz? Ve belki de Setup.cs? Oldukça 4 ile birkaç şey değişti, bu yüzden aktivite başlıkları ile ilgili bir sorun var. – Cyriac
Ad alanları ve ad alanı ile ilgili şeylerin yanı sıra, Setup.cs'de hiçbir şeyi değiştirmedim, ancak bu soruyu ekleyebilirim. Etkinlik başlıklarında ayrıca etiket ve ekran yönlendirmesi dışında belirli bir özelliği yoktur. –
Ve sadece bazı kullanıcılarda görünüyor, kendiniz bu sorun yok mu? – Cyriac