Search code examples
androidxamarinbuildvisual-studio-app-centervisual-studio-app-center-distribute

Appcenter can't find APK file


I have this weird error, I've been using appcenter for a long time, but never experienced this. I setup a build with appcenter which fetches from azure devops repo. The application is a Xamarin.Android native application. Once I run the build, everything goes well. Untill the signin step. When the step is about to start, I get this error:

##[error]No matching files were found with search pattern: /Users/runner/work/1/s/**/*.apk

Looks like the APK was not found, though the build runs successfully without error. Please I need your help to figure out a solution to this issue.


Solution

  • In your csproj file for the Android Application project. Check whether <AndroidPackageFormat>apk</AndroidPackageFormat> is set to apk or aab. If it is aab then you need to change the search pattern to search for /**/*.aab instead. Otherwise, it will be looking for stuff that wasn't produced during the build.

    To change the search path of appcenter, go to your build configurations and toggle the switch with label: “Build android app bundle”.