You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
添加jpush插件,cordova plugin add jpush-phonegap-plugin --variable APP_KEY=your_jpush_appkey,当执行添加cordova-plugin-jcore" for android时报config file undefined requested for changes not found at cordova/platforms/android/undefined, ignoring。经排查,应该新版本[email protected]导致出错,同时也测试过低版本的[email protected]则不出错此类问题。出现问题位置,platforms/android/android.json,当[email protected]时json结果中会出一个undefined的key
重现步骤
1、corodva创建新工程;
2、cordova添加android平台,即cordova platform add [email protected]
3、添加jpush插件,即:cordova plugin add jpush-phonegap-plugin --variable APP_KEY=your_jpush_appkey
4、编译,cordova build android
即可重现config file undefined requested for changes not found at cordova/platforms/android/undefined
你的运行环境
cordova -v
):cordova 11.0.0cordova platform ls
):cordova-android 10.1.0期望效果
可以正常编译,jpush相关配置可正常自动添加至AndroidManifest.xml
实际效果
添加jpush插件,cordova plugin add jpush-phonegap-plugin --variable APP_KEY=your_jpush_appkey,当执行添加cordova-plugin-jcore" for android时报config file undefined requested for changes not found at cordova/platforms/android/undefined, ignoring。经排查,应该新版本[email protected]导致出错,同时也测试过低版本的[email protected]则不出错此类问题。出现问题位置,platforms/android/android.json,当[email protected]时json结果中会出一个undefined的key
重现步骤
1、corodva创建新工程;
2、cordova添加android平台,即cordova platform add [email protected]
3、添加jpush插件,即:cordova plugin add jpush-phonegap-plugin --variable APP_KEY=your_jpush_appkey
4、编译,cordova build android
即可重现config file undefined requested for changes not found at cordova/platforms/android/undefined
背景
你尝试做过些什么?
使用测试过低版本的[email protected],其他环境不变的情况下,则不会出错此类问题。
Debug logs
android.json文件部分内容:
包括 Android 或 iOS 的日志:
The text was updated successfully, but these errors were encountered: