Forum Xamarin.Forms

Announcement:

The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

i have application xamarin forms with enable multidex but not working at android 19

emadyounanemadyounan Member ✭✭✭

i have application xamarin forms with enable multidex but not working at android 19 if someone made video or screenshots to me i would be thankful

i tried to solve it with internet

i saw that but really don't how to do it?

is that one at application android?

multidex.keep file in my project root

mono/android/app/ApplicationRegistration.class
mono/android/app/NotifyTimeZoneChanges.class
mono/MonoRuntimeProvider.class
mono/MonoPackageManager.class
mono/MonoPackageManager_Resources.class

then

manually add to .csproj to all build options

 <AndroidEnableMultipleDex>true</AndroidEnableMultipleDex>
 <AndroidEnableMultiDex>true</AndroidEnableMultiDex>

where is it? how can i put it?

3rd step i did

<application android:name="android.support.multidex.MultiDexApplication">.....</application

and after that i don't know how to make it

in MainApplication class in Android folder add Register attribute

[Application]
[Register("android/support/multidex/MultiDexApplication", DoNotGenerateAcw = true)]
public class MainApplication : Application, Application.IActivityLifecycleCallbacks
{ ... }

Add Name to MainActivity

 [Activity(Name = "xx.xxx.MainActivity")]
 public class MainActivity : 
 global::Xamarin.Forms.Platform.Android.FormsAppCompatActivity
 { ... }
Sign In or Register to comment.