question

WillAutioItrax avatar image
0 Votes"
WillAutioItrax asked Jotasleozgarcia-5237 edited

Missing APKs for [ABI] dimensions in the module 'base' for the provided device.

I am developing with Xamarin Forms and VS 2022. Recently, when trying to test on an Android emulator I've been getting the error message:
Missing APKs for [ABI] dimensions in the module 'base' for the provided device.
Doing a search brought no useful results (at least not that I recognized).
What does it mean and how do I fix it?
VS and XF are up to date. I am targeting Android 11.
Thanks

dotnet-xamarin
· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I test Microsoft Visual Studio Enterprise 2022 (64-bit) Version 17.0.1, I debug the Xamarin forms temple, it works. If you create a new xamarin project, If you will get this error. And please test your application to VS 2019, if you get the same issue.

0 Votes 0 ·

Severity Code Description Project File Line Suppression State
Error Missing APKs for [SCREEN_DENSITY] dimensions in the module 'base' for the provided device. 0

Today, with the same app, I got the message shown above. It seems to be a toss up as to which message I get.

I did notice that when I used the Pixel 2 Pie 9.0 - API 28 emulator that it worked on CS 2019 and VS 2022 and when I used Pixel 2 XL Pie 9.0 - API 28 then I got one of the messages.

So, I can move on.

I'd still like to know what those messages mean and how to fix them.

0 Votes 0 ·

Based on your description, do you get this error when debugging? If so, can you share a demo to us, I cannot reproduce this issue.

0 Votes 0 ·

I get this error when my app is trying to deploy to my physical app or emulator.

0 Votes 0 ·

@LeonLu-MSFT
I had time to look at XF and Android again.

I am now on Win 11 and just installed HAXM to help with running Android emulations.
And I got this message again.
Here are some more details of the error msg:
Missing APKs for [ABI] dimensions in the module 'base' for the provided device.
com.android.tools.build.bundletool.model.exceptions.IncompatibleDeviceException: Missing APKs for [ABI] dimensions in the module 'base' for the provided device.
at com.android.tools.build.bundletool.model.exceptions.UserExceptionBuilder.build(UserExceptionBuilder.java:58)
...

1) How can I find out what APKs are missing?
2) And why can't VS tell me what is missing?

To answer your question, yes I get this while debugging. No, I cannot share code with you (sorry).
I did try a random sample app from the ones in my collection. It worked fine both with an emulated device and a real one. Which leaves me with the two questions above.

Thanks!

0 Votes 0 ·

I too am having this issue, does not happen on old Xamarin Forms projects, just on the new one that I just created. Would like an answer to how to resolved this other than having to clean the solution between switching devices to debug on.

0 Votes 0 ·
RhyBezuidenhout-1819 avatar image
0 Votes"
RhyBezuidenhout-1819 answered Riffy-4263 commented

I don't know whether it will help anyone, but I "suddenly" started getting this error and it was compiling perfectly two weeks ago.

I realized that I had compiled the app for a release a fortnight ago and got this error when I wanted to debug it today. After changing the "Active solution configuration" back to "Debug" as it was on "Release", the error went away and I was able to debug it again.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

I too am getting the same error when compiling for Release, but working fine for Debug using VS 2022. My device is Samsung (Android 5.1 - API 22)

I agree with WillAutioItrax:

1) How can I find out what APKs are missing?
2) And why can't VS tell me what is missing?

Why cannot VS error messages be were more helpful in describing the errors in detail with suggested solutions.

0 Votes 0 ·
GregoryAnthony avatar image
0 Votes"
GregoryAnthony answered Jotasleozgarcia-5237 edited

Right-click your android project -> Android Options -> Advanced

And look at the Supported architectures column. One of the ones I needed was unchecked. by checking one of the boxes fixed the error for me.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Right.
Checking the correct Abi. In my case armeabi.

0 Votes 0 ·