简体   繁体   English

Xamarin.Forms-AOT编译不起作用(对于Android)

[英]Xamarin.Forms - AOT compile not working (for Android)

This is the repository that demonstrates this issue. 这是演示此问题的资源库 This is simple standard project with one page. 这是只有一页的简单标准项目。 I created the archive for publishing (release mode). 我创建了要发布的存档(发布模式)。 If I use the "AOT compile" option, I get the error: 如果我使用“ AOT编译”选项,则会收到错误消息:

"Apk failed to install Error:could not parse error string" “ APK无法安装错误:无法解析错误字符串”

If I disable this option, then the APK works. 如果我禁用此选项,则APK有效。

To use my test project, update the option AndroidSigningKeyStore in ApkSignerIssue.Android.csproj to point to file test.keystore in the folder test . 要使用我的测试项目,请更新test.keystore中的AndroidSigningKeyStore选项,使其指向文件夹test test.keystore文件。

I'm on Windows 10 and I'm using Android Api 26. If I try Api 25, it does not work. 我正在Windows 10上,并且正在使用Android Api26。如果尝试使用Api 25,它将无法正常工作。 I've tried using VS 15.5.7 and 15.8.0(preview) with "AOT compile" and neither of those work. 我尝试将VS 15.5.7和15.8.0(preview)与“ AOT编译”一起使用,但这些都不起作用。

Without this option, XF+Android can not be used; 如果没有此选项,则无法使用XF + Android。 the first load of the app will take 8-10 seconds. 该应用的首次加载将需要8-10秒。

It worked earlier, but now I can not build a package to release an update to my application. 它较早就可以使用,但是现在我无法构建一个软件包来发布对我的应用程序的更新。

Downgrade to 15.5.7 working for me now. 降级至15.5.7现在为我工作。

I do not know why this did not work right away, maybe I rebooted the computer. 我不知道为什么这不能马上解决,也许我重新启动了计算机。 but now it works. 但现在可以了。

That's good - I was able to release an update my app. 很好-我能够发布我的应用程序的更新。 And this is very sad - this is my fourth Downgrade in three months(starting from 15.6). 这是非常可悲的-这是我三个月以来的第四次降级(从15.6开始)。 Archiving the package does not work normally three months, three months, Karl! 归档文件包三个月不能正常工作,三个月,卡尔!

I lost a lot of time. 我浪费了很多时间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM