Problem with unity3d android version export and solutions

First the camera do not save due to the changes in android permissions

update the capture and save pro to the last version

Then the app didn't work when SDK is not being exported together with apk.

resolve the issue involves remove existing folders for azure sdk and azure example folders. then replace it with github version.

https://docs.microsoft.com/en-us/azure/spatial-anchors/how-tos/setup-unity-project?tabs=UPMPackage

Replace plugin folder for android as well as editor folder with github version.

Install the packages in the manifest.json in unity package folder

{
  "scopedRegistries": [
    {
      "name": "Azure Mixed Reality Services",
      "url": "https://api.bintray.com/npm/microsoft/AzureMixedReality-NPM",
      "scopes": [
        "com.microsoft.azure.spatial-anchors-sdk"
      ]
    }
  ],
  "dependencies": {
    "com.microsoft.azure.spatial-anchors-sdk.windows": "2.6.0",
    "com.microsoft.azure.spatial-anchors-sdk.android": "2.6.0",
    "com.microsoft.azure.spatial-anchors-sdk.ios": "2.6.0",

as well as to check if the gradle dependcies are properly installed

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation('com.squareup.okhttp3:okhttp:[3.11.0]')
    implementation('com.microsoft.appcenter:appcenter-analytics:[1.10.0]')
**DEPS**}

then setup the player setting for android

Working setup screenshot of player setting here:

in the built settings ensure to use custom gradle

For the problem that cannot install created apk on mobile device. ensure the previous version of app is completely removed by using following command

adb uninstall <packagename>
 //such as com.dreamarvel.prjname