2016-11-15 80 views
1

我檢出了消息示例應用程序(https://github.com/firebase/quickstart-unity/tree/master/messaging/testapp),並嘗試爲Android平臺構建。隨着腳本後端選項Mono2x,一切工作在設備正常,但選項IL2CPP,下面就火力地堡錯誤的Android logcat的顯示初始化方法:Firebase Unity3D使用IL2CPP構建Android:libApp.so,錯誤:無法加載庫

11-14 10:31:17.233: E/Unity(5088): Couldn't open /data/app-lib/com.firebase.testfcm-1/libApp.so, error: Cannot load library: 
11-14 10:31:17.233: E/Unity(5088): System.Threading.Tasks.<Post>c__AnonStorey0:<>m__0(Object) 
11-14 10:31:17.233: E/Unity(5088): [ line 125] 
11-14 10:31:17.233: E/Unity(5088): (Filename: Line: 125) 
11-14 10:31:17.253: I/Unity(5088): DllNotFoundException: Unable to load DLL 'App': The specified module could not be found. 
11-14 10:31:17.253: I/Unity(5088): at Firebase.AppUtilPINVOKE+SWIGExceptionHelper.SWIGRegisterExceptionCallbacks_AppUtil (Firebase.ExceptionDelegate applicationDelegate, Firebase.ExceptionDelegate arithmeticDelegate, Firebase.ExceptionDelegate divideByZeroDelegate, Firebase.ExceptionDelegate indexOutOfRangeDelegate, Firebase.ExceptionDelegate invalidCastDelegate, Firebase.ExceptionDelegate invalidOperationDelegate, Firebase.ExceptionDelegate ioDelegate, Firebase.ExceptionDelegate nullReferenceDelegate, Firebase.ExceptionDelegate outOfMemoryDelegate, Firebase.ExceptionDelegate overflowDelegate, Firebase.ExceptionDelegate systemExceptionDelegate) [0x00000] in <filename unknown>:0 
11-14 10:31:17.253: I/Unity(5088): at Firebase.AppUtilPINVOKE+SWIGExceptionHelper..cctor() [0x00000] in <filename unknown>:0 
11-14 10:31:17.253: I/Unity(5088): at System.Collections.Generic.Dictionary`2+Transform`1[TKey,TValue,TRet].EndInvoke (IAsyncResult result) [0x00000] in <filename unknown>:0 
11-14 10:31:17.253: I/Unity(5088): at System.Threading.Tasks.TaskScheduler+< 

有沒有人有同樣的問題?

謝謝。

回答

0

我遇到同樣的問題。

解壓APK,找到libApp.so不在apk文件中。

我使用unity來輸出gradle項目。

最後,我在lib文件夾中找到了導出的gradle項目不包括aar。 我補充說,包括阿爾在build.gradle和這個問題sovled。

相關問題