-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android: new cil-strip feature causes app crashes #88538
Comments
Running Sending it back to you @jonathanpeppers |
@fanyang-mono you got a sample "hello android" to work. Do you have a link to your changes somewhere? |
PR completing this work was merged - dotnet/android#8172 /cc @fanyang-mono - please add details when that will be available for public release, and close this issue. |
@SamMonoRT I will add release details in #44855 directly. This issue that @jonathanpeppers ran into when trying to enable IL trim for Android apps. now has been resolved by dotnet/android#8172. |
Description
This was originally implemented in:
But the app crashes at runtime, log snippet with
mono --trace
on:The method in question, looks like it is stripped as expected:
I also get the log message:
Reproduction Steps
.targets
files locally)dotnet new android
dotnet build -c Release -p:AndroidStripIL=true -t:Run
Expected behavior
A
dotnet new android
app runs.Actual behavior
dotnet new android
app appears to crash at the first managed method that was stripped away.Regression?
No, this is a new feature.
Known Workarounds
Don't use
-p:AndroidStripIL=true
, as this is the new feature.Configuration
.NET SDK 8.0.100-preview.7.23330.16
Other information
Full adb log: log.txt
Assembly files: uncompressed-com.companyname.foo.zip
Method tokens: tokens.zip
The text was updated successfully, but these errors were encountered: