can not use android .aar in win 11?

mc 4,576 Reputation points
2024-05-04T10:50:13.35+00:00

I am using .net MAUI 8 and use .aar (android binding) to .dll. in win10 it is ok and in win11 there is error:

User's image

why?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,578 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 43,921 Reputation points Microsoft Vendor
    2024-05-06T01:59:20.24+00:00

    Hello,

    According to the official documentation for the JAVAC0000 error, this is an error caused by an incorrect build action.

    Issue

    During a normal .NET for Android build, Java source code is generated and compiled. This message indicates that javac, the Java programming language compiler, failed to compile Java source code.

    Solution

    If you have Java source code in your project with a build action of AndroidJavaSource, verify your Java syntax is correct. Consider submitting a bug if you are getting this error under normal circumstances.

    Best Regards,

    Alec Liu.


    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 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.