Render Problem - Android Studio is not rendering the layout - dji-sdk

Android Studio is not rendering the layout in activity_main.xml. I can't edit the app wihtout the visual rendering. Just to be clear, I'm not talking about the emulator, this is just the layout.
Android Studio: 4.2.2,
Android SDK: 28-30,
DJI UXSDK: 4.14,
DJI SDK: 4.14
java.lang.VerifyError: Constructor must call super() or this() before return
Exception Details:
Location:
dji/common/bus/UXSDKEventBus.<init>()V #0: return
Reason:
Error exists in the bytecode
Bytecode:
0000000: b12a b700 10b1
at dji.ux.widget.FPVWidget.addSubscriptions()
at dji.ux.widget.FPVWidget.onAttachedToWindow()
at android.view.View.dispatchAttachedToWindow(View.java:20479)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3496)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3496)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3496)
at android.view.ViewGroup.dispatchAttachedToWindow(ViewGroup.java:3496)
at android.view.AttachInfo_Accessor.setAttachInfo(AttachInfo_Accessor.java:42)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:332)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:369)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:141)
at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:710)
at com.android.tools.idea.rendering.RenderTask.lambda$inflate$6(RenderTask.java:865)
at com.android.tools.idea.rendering.RenderExecutor$runAsyncActionWithTimeout$2.run(RenderExecutor.kt:174)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

Related

Xamarin Forms Android app fails on launch: Can't detect when [class] is activated/deactivated..implement IActivationForViewFetcher

As the title says this is the error from the device log when launching a Xamarin forms android app in release mode on Android Q. This occurs on a release device only.
System.ArgumentException: Don't know how to detect when [launcher class] is activated/deactivated, you may need to implement IActivationForViewFetcher
Any ideas why?
My linker settings are shown in the image:

Problem building my Xamarin Forms iOS application

The error I'm getting is
/Users/paulwroe/Projects/Project/iOS/MTOUCH: Error MT2023: Binding Optimizer failed processing System.Void AVFoundation.AVAssetImageGenerator::GenerateCGImagesAsynchronously(Foundation.NSValue[],AVFoundation.AVAssetImageGeneratorCompletionHandler). (MT2023) (Project.iOS)

Xamarin.Forms Android app crashes when debugging on Galazy S8 (Exynos)

I am trying to debug a Xamarin.Forms app which crashes with error
BoostFramework() : Exception_1 = java.lang.ClassNotFoundException: Didn't find class "com.qualcomm.qti.Performance" on path: DexPathList[[],nativeLibraryDirectories=[/system/lib64, /vendor/lib64]]
on my Galaxy S8, however the app does not crash when running on an emulator or when ran on a One Plus 3t.
The crash occurs when clicking the menu button on a Master.Detail Page.
Any insights in to this would be appreciated as I cannot seem to find any information on this.

Xamarin Android | UI shows up blank in device

I'm developing android app for learning purpose. I've installed Xamarin 4.2.1.60 on my laptop.
I created a simple Layout and tried to run it on my One Plus 3 (Android M 6.0.1) and Moto G (Android L 5.1) 1st Gen
but the layout shows up empty in both of them.
It also gives me a below Exception on running:
Unhandled Exception: System.NullReferenceException: Object reference
not set to an instance of an object.
On pressing break, a window open in Visual Studio with Header saying Source Not Available
(Please see attached screenshots)
Please suggest how can I resolve this.
Designer Screen:
Device Screen:
Exception Window:
Make sure to set a default SetContentView() in your MainActivity.OnCreate() with a valid Android layout.

Monotouch - Break on All Errors Equivalent?

I am debugging an iPad app which background downloads data from a web service. Fully try/catch'ed.
While debugging from Monotouch, after a few minutes the app on the iPad crashes. However Monotouch doesn't catch anything.
In Visual Studio there is a "Break on all Errors" option in the debugger. Is there some feature in Monotouch which would allow me to break at the point of a crash on an iPad device and let me look at variables and stack traces etc?
Monotouch: 3.1.3
MonoDevelop: 2.4 (new beta)
Use a catchpoint on the Exception base class: Run->Exceptions and add System.Exception.

Resources