HMS-Core / hms-cordova-plugin

This repo contains all of Cordova HMS plugins.
https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin?ha_source=hms1
Apache License 2.0
89 stars 42 forks source link

no manifest file found #8

Closed AbhishekTaparia closed 3 years ago

AbhishekTaparia commented 3 years ago

The following error occurs when I add this plugin to the cordova application.


> Task :CordovaLib:preBuild UP-TO-DATE
> Task :CordovaLib:preReleaseBuild UP-TO-DATE
> Task :CordovaLib:checkReleaseManifest UP-TO-DATE
> Task :CordovaLib:processReleaseManifest UP-TO-DATE
> Task :app:preReleaseBuild UP-TO-DATE
> Task :CordovaLib:compileReleaseAidl NO-SOURCE
> Task :app:compileReleaseAidl NO-SOURCE
> Task :CordovaLib:packageReleaseRenderscript NO-SOURCE
> Task :app:compileReleaseRenderscript UP-TO-DATE
> Task :app:checkReleaseManifest UP-TO-DATE
> Task :app:generateReleaseBuildConfig UP-TO-DATE
> Task :app:prepareLintJar UP-TO-DATE
> Task :app:generateReleaseSources UP-TO-DATE
> Task :CordovaLib:compileReleaseRenderscript UP-TO-DATE
> Task :CordovaLib:generateReleaseBuildConfig UP-TO-DATE
> Task :CordovaLib:generateReleaseResValues UP-TO-DATE
> Task :CordovaLib:generateReleaseResources UP-TO-DATE
> Task :CordovaLib:packageReleaseResources UP-TO-DATE
> Task :CordovaLib:generateReleaseRFile UP-TO-DATE
> Task :CordovaLib:prepareLintJar UP-TO-DATE
> Task :CordovaLib:generateReleaseSources UP-TO-DATE
> Task :CordovaLib:javaPreCompileRelease UP-TO-DATE
> Task :CordovaLib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :CordovaLib:processReleaseJavaRes NO-SOURCE
> Task :CordovaLib:transformClassesAndResourcesWithPrepareIntermediateJarsForRelease UP-TO-DATE
> Task :app:javaPreCompileRelease UP-TO-DATE
> Task :app:mainApkListPersistenceRelease UP-TO-DATE
> Task :app:generateReleaseResValues UP-TO-DATE
> Task :app:generateReleaseResources UP-TO-DATE
> Task :app:processReleaseAGCPlugin UP-TO-DATE
> Task :app:mergeReleaseResources UP-TO-DATE
> Task :app:createReleaseCompatibleScreenManifests UP-TO-DATE
> Task :app:processReleaseManifest FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processReleaseManifest'.
> ERROR: no manifest file found

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 20s
23 actionable tasks: 1 executed, 22 up-to-date
/home/../platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processReleaseManifest'.
> ERROR: no manifest file found

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 20s```
AbhishekTaparia commented 3 years ago

Actually I don't see the error now. I created new project and did all the steps. Although there might be aproblem in push-kit 5.0.2 version.


....@.....-VivoBook-ASUS-Laptop-X510UFO:~/cordova/MyApp3$ cordova plugin add ~/Downloads/cordova-push-package-5.0.2.300/cordova-plugin-hms-push/
Installing "cordova-plugin-hms-push" for android
Error during processing of action! Attempting to revert...
Failed to install 'cordova-plugin-hms-push': Error: Uh oh!
ENOENT: no such file or directory, open '/home/..../cordova/MyApp3/plugins/cordova-plugin-hms-push/www/HmsPush.js'
    at Object.openSync (fs.js:440:3)
    at Object.readFileSync (fs.js:342:35)
    at install (/home/.../cordova/MyApp3/platforms/android/cordova/lib/pluginHandlers.js:162:36)
    at ActionStack.process (/home/.../cordova/MyApp3/node_modules/cordova-common/src/ActionStack.js:56:25)
    at PluginManager.doOperation (/home/.../cordova/MyApp3/node_modules/cordova-common/src/PluginManager.js:114:20)
    at PluginManager.addPlugin (/home/.../cordova/MyApp3/node_modules/cordova-common/src/PluginManager.js:144:17)
    at /home/../cordova/MyApp3/platforms/android/cordova/Api.js:210:74
    at _fulfilled (/home/../cordova/MyApp3/node_modules/q/q.js:854:54)
    at /home/../cordova/MyApp3/node_modules/q/q.js:883:30
    at Promise.promise.promiseDispatch (/home/../cordova/MyApp3/node_modules/q/q.js:816:13)
Uh oh!
ENOENT: no such file or directory, open '/home/../cordova/MyApp3/plugins/cordova-plugin-hms-push/www/HmsPush.js'```
aktug commented 3 years ago

Hello @AbhishekTaparia ; This issue is already located and we`ll publish a new version of Cordova Push at the end of October, it will be fixed at that version 👍

sagrawal31 commented 3 years ago

How should we use the plugin meanwhile you guys release the new version?

sagrawal31 commented 3 years ago

@aktug any update on the date?

aktug commented 3 years ago

@sagrawal31 end of October 👍