Closed HobDev closed 10 months ago
I had a similar situation with iOS. My app was crashing in release mode but was running perfectly in debug mode. I created an empty project with all the packages from csproj file (an empty copy of my project with all the packages). I found that the app was crashing because of a recent update on the Community MVVM package (8.2.0). I downgraded the package to (8.1.0) and the build/run was successful.
@arahmancsd Thank you for the comment. I downgraded the Community MVVM package. But it doesn't remove the error. Than I upgraded the Community MVVM package to the latest and downgraded the Realm package. Downgrading Realm causes several new errors "Realm is a namespace but used like a type". I again upgraded the Realm package to the latest and now the Android build is not crashing. The original error has gone. To sum up I don't know the cause and solution of the bug I reported. Leaving this issue open so that some one with know how inform us about the cause and solution in order to avoid this issue in the future.
I am having the same issue when attempting to test a release version of the dot net maui app on my Android phone (Android 13.0) :
Severity Code Description Project File Line Suppression State Error JAVAC0000 error: no suitable constructor found for BaseCellView(Context,AttributeSet,int,int) super (p0, p1, p2, p3); constructor BaseCellView.BaseCellView(Context) is not applicable (actual and formal argument lists differ in length) constructor BaseCellView.BaseCellView(Context,AttributeSet) is not applicable (actual and formal argument lists differ in length) constructor BaseCellView.BaseCellView(Context,AttributeSet,int) is not applicable (actual and formal argument lists differ in length) ArchonPortfolio ...\obj\Release\net7.0-android\android\src\crc6477f0d89a9cfd64b1\TextCellRenderer_TextCellView.java 47
@jeanhibbert solution-wise, try to downgrade/upgrade your packages. I don't know the exact package name causing this, It could be maui/mvvm toolkit or any other package incompatible with both.
I would suggest experiment with linking
Hi @HobDev. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
@HobDev is this still happening?
Can you also attach a binlog? https://aka.ms/binlog
If the app/files/project/environment contains sensitive information, please open a new issue using the VS feedback and attach the binlog there to ensure all the privacy is preservedc.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.
My android app also crashes just after installing (Only in release mode). It shows the splashscreen for a split second and then crashes. I am also not able to get any logs. Any suggestions on where and how I can check application logs.?
Description
When I try to run the Android app in release configuration the App does not Build . The error message is:
The copy from the Output window:
Steps to Reproduce
The issue does not reproduce on new Repository. This shows up in the specific project I am developing. It's a large project and it is difficult to pinpoint the actual code causing this.
Link to public reproduction project repository
Unable to reproduce on other repository
Version with bug
7.0.86
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 13
Did you find any workaround?
No
Relevant log output
No response