![](/img/trans.png)
[英]how to create a build file to build mono android project and generate myproject.apk file.?
[英]How to create .snk file for Mono android
我已經在mono開發中完成了android項目,它在調試模式下工作正常,但是當我嘗試在發布模式下運行項目時,出現以下錯誤:
C:\Users\Administrator.EDZ0138\Documents\Projects\IdooctopusNew\IdooctopusNew\SGEN: Error: Could not load file or assembly 'Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=c4c4237547e4b6cd' or one of its dependencies. Strong name validation failed. (Exception from HRESULT: 0x8013141A) (IdooctopusNew)
誰能幫幫我嗎 ?
我已經解決了這個問題。
您只需要做的是,將mono.android.dll
放入C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0A\\bin
文件夾,打開命令提示符並執行以下步驟:
cd C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0A\\bin
sn -Vr Mono.Android.dll
gacutil -i C:\\Program Files\\Microsoft SDKs\\Windows\\v7.0A\\bin
然后構建項目。
如果您收到另一個DLL的錯誤,例如System.xml.dll
等,請對相應的DLL重復上述過程。
祝一切順利.......!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.