NativeScript / NativeScript/plugins
nativescript-onesignal plugin is failing with Java no class found errors
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 206
- 派生
- 123
- 平均合并
- 2 天 1 小时
- 30 天内合并 PR
- 1
描述
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/
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从插件文档开始,重现 NSOneSignal.getInstance().init 和 NativeOneSignal 方法中的失败。调查报告中的 Kotlin Intrinsics 和 com.onesignal.OneSignal 类解析错误;完成的标准是,文档所述的设置能够加载这两个类,并且受影响的调用能够在没有 NoClassDefFoundError 的情况下运行。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, kotlin, typescript
- 领域
- mobile-dev
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100