Skip to content

0.75版本编译报错问题:DActivity, was not found in the project #968

@qiqimantou

Description

@qiqimantou

gradlew build 至 95%时报错
node_modules/jpush-react-native/android/src/main/AndroidManifest.xml:99: Error: Class referenced in the manifest, cn.jpush.android.service.DActivity, was not found in the project or the libraries [MissingClass]
<activity android:name="cn.jpush.android.service.DActivity"
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

QQ20241212-204849

已经尝试切换了多个不同的jpush-react-native版本,问题依旧。
也尝试注释掉相关的.xml文件的内容,也不行
1734007548107

疑似0.75版本和jpush插件兼容问题,期待官方及时修复。

你的运行环境

  • 插件版本: "jcore-react-native": "2.1.2","jpush-react-native": "2.9.8",
  • 尝试jpush-react-native更新多个版本 3.1.2和3.1.1. 3.1.0 3.0.9都不行,报同样的错误。
  • react-native 版本: "react-native": "0.75.4",

当前安卓版本信息:
QQ20241212-205216

期望效果

希望修复这个问题,排查出原因。

实际效果

gradlew build 成功

重现步骤

  1. npm install jpush-react-native
  2. ./gradlew build
  3. 错误在95%左右时出现

Debug logs

包括 Android 或 iOS 的日志:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions