Posts

[Bug] System.TypeLoadException: Parent class vtable failed to initialize, due to: VTable setup of type AndroidX.SwipeRefreshLayout.Widget.SwipeRefreshLayout #14424

Image
  Ended  up having to install Xamarin.AndroidX.AppCompat.AppCompatResources (version 1.3.0) and downgrading Xamarin.AndroidX.Core from version 1.6.0 to 1.5.0  it began after updating to Xamarin Forms 5.0.0.2083 which required AndroidX.Core Not sure if it'll help with your problem exactly but those steps fixed it . OR downgrading  Xamarin.AndroidX.Core  from version  1.6.0  to  1.5.0  resolved  issue. OR Do you think this is fixed with the new AndroidX.Core 1.6.0.1 ?                                                                                        OR Updating to 1.6.0.1 didn't work for us as well but we have 2 workarounds for this. Skip linking for Xamarin.AndroidX.Core Put this  <AndroidLinkSkip>Xamarin.AndroidX.Core</AndroidLinkSkip>  in *.Droid.csproj or Alternatively Install "Xamarin.Google.Android.Material" and "Xamarin.AndroidX.SwipeRefreshLayout" directly in your *.Droid project We picked the first solutio

java.lang.RuntimeException: Unable to get provider com.google.android.gms.ads.MobileAdsInitProvider: java.lang.IllegalStateException:

  just give a check meta-data tag is out of activity tag if it is like this <manifest> <application> <activity> <meta-data> android:name= "com.google.android.gms.ads.APPLICATION_ID" android:value= "ca-app-pub-4347201915048498~6120388314" /> </activity> </application> </manifest> this should be changed to this <manifest> <application> <activity> </activity> <meta-data android:name= "com.google.android.gms.ads.APPLICATION_ID" android:value= "ca-app-pub-4347201915048498~6120388314" /> </application> </manifest>                                    OR Only add this code to the manifest on your app and thats it <meta-data android:name= "com.google.android.gms.ads.AD_MANAGER_APP"

Cannot fit requested classes in a single dex file (# methods: 79313 > 65536)

For resolve this error follow these steps: Fristly create android project ,type name like MyApplication3 (Maintion in this project) if you do'nt know how to create android project ,then follow below link How to create android project in android studio Type below code in activity_main.xml <? xml version ="1.0" encoding ="utf-8" ?> < RelativeLayout xmlns: android ="http://schemas.android.com/apk/res/android" xmlns: tools ="http://schemas.android.com/tools" xmlns: app ="http://schemas.android.com/apk/res-auto" android :layout_width ="match_parent" android :layout_height ="match_parent" xmlns: ads ="http://schemas.android.com/apk/res-auto" tools :context =".MainActivity" > < TextView android :layout_width ="wrap_content" android :layout_height ="wrap_content" android :text ="Hello World!" a

How to download google-services.json file from firebase

Image
 The dear developer google-services.json file for connecting the android project to firebase to various purposes, Let's start... Search firebase.com in any browser ↓ Click on Take me to firebase.com ↓ Click on Get started ↓ Click on Add project ↓ Enter your project name and click on continue ↓ Click on continue ↓ Click on continue ↓ Select default account for firebase in select an account and click on Add firebase ↓ Click on continue ↓ Click on the android symbol ↓ Type package name and click on Register app ↓ Click on Download google-services.json and click next ↓ To see a downloaded google-services.json file How to find si

How to Find signing report SH1 and SH256 in existing android project in android studio

Image
 The dear developer we will follow these steps to find SH1 and SH256  because this is important for function with firebase and other work, Let's start... Create android project How to create an android project in android studio ↓ Click on Gradle on right-up or search Gradle ↓ Click on Tasks ↓ Click on android ↓ Click on signingReport ↓ See below on the Run tab, if you did not see then click on the Run tab ↓ Your project signing report is ready How to add like,dislike button on video in android studio   How to create a new java class in android studio How to create a new Layout Resource File in an existing project in android studio How to create a new activity in an existing project in android studio How to create a custom menu in android studio How to Add video(Part-2) in FirebaseRecyclerAdapter in android studio

How to Add Like,Dislike button in video in android studio

 Add like and dislike button on video is a very popular function at this time, Let's add like, dislike button on the video, follow these steps:                                                 Create a new android project in android studio                                                 Type project name first_project         How to create an android project in android studio ↓ Add below code in AndroidManifest.xml <? xml version ="1.0" encoding ="utf-8" ?> < manifest xmlns: android ="http://schemas.android.com/apk/res/android" package ="com.example.firstproject" > < uses-permission android :name ="android.permission.READ_EXTERNAL_STORAGE" /> < uses-permission android :name ="android.permission.INTERNET" /> < uses-permission android :name ="android.permission.WRITE_EXTERNAL_STORAGE" tools :ignore ="ScopedStorage" /> < application android :hardw