nativescript-onesignal plugin is failing with Java no class found errors

未關閉
#555 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
25/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
java, kotlin, typescript
領域
mobile-dev

研究方向

從外掛程式文件開始,重現 NSOneSignal.getInstance().init 和 NativeOneSignal 方法中的失敗。調查回報的 Kotlin Intrinsics 和 com.onesignal.OneSignal 類別解析錯誤;完成的標準是,文件所述的設定能夠載入這兩個類別,且受影響的呼叫能在沒有 NoClassDefFoundError 的情況下執行。

由索引模型根據 Issue 內容生成。

描述

I have followed the instruction provided in your documentation to use the plugin but it fails with the following errors:
While calling the NSOneSignal.getInstance().init method the error is:
Error: java.lang.NoClassDefFoundError: Failed resolution of: Lkotlin/jvm/internal/Intrinsics;

While calling the NativeOneSignal object methods the error is:
Error: java.lang.NoClassDefFoundError: com.onesignal.OneSignal

Is there something that needs to be done besides what's provided in the documentation?
https://market.nativescript.org/plugins/@rwigo/nativescript-onesignal/

主要語言
TypeScript
星號
206
分支
123
平均合併
2 天 1 小時
30 天內合併 PR
1

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

NativeScript/plugins 的其他 Issue

查看 NativeScript/plugins 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。