XAMARIN FORMS ERROR INSTALL

cristiano rogoy 21 Reputation points
2022-09-01T20:30:47.87+00:00

Hello, I have a XAMARIN application that is working perfectly on the EMULATOR, but when I copy the APK to a mobile device it says that it cannot install, or sometimes it even installs but does not open. Anyone to give me a tip?

Developer technologies | .NET | Xamarin

Locked Question. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2022-09-02T02:40:03.303+00:00

    Hello,​

    Welcome to our Microsoft Q&A platform!

    Based on your description, did you get the "App not installed" error?

    If so, please add android:extractNativeLibs="true" to the <application> tag like the following parameter in your AndroidManifest.xml

       <application android:label="YourprojectName.Android" android:theme="@style/MainTheme" android:extractNativeLibs="true"></application>  
    

    This issue is related to changes in the android gradle plugin, which changed the default value from true to false in version 3.6.0 (Source: https://developer.android.com/guide/topics/manifest/application-element#extractNativeLibs).

    And when you re-build application and generate a new APK.
    If you get the following error.

       Error Found tag id where item is expected  
    

    Please enable the Use incremental Android packaging system(aap2) selection in the Android Options tag. And set Linking to None

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Most helpful