jpush / jpush/jpush-react-native

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

Open
#968 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.4k
Forks
348
PR merge metrics
No merged PRs in 30d

Description

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 的日志:

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failure with ./gradlew build after installing the listed jpush-react-native versions. Inspect node_modules/jpush-react-native/android/src/main/AndroidManifest.xml and the reported DActivity reference; done means identifying the React Native 0.75.4 compatibility cause and achieving a successful build without the MissingClass error.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, react-native
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.