darryncampbell / darryncampbell-cordova-plugin-intent

General purpose intent shim layer for cordova appliations on Android. Handles various techniques for sending and receiving intents.
MIT License
86 stars 134 forks source link

Ionic does not build with this plugin #49

Closed apo-j closed 6 years ago

apo-j commented 6 years ago

Hello, I'm trying to install this plugin into my ionic project with the following versions:

But after installation, when I run: ionic cordova build android I got this error:

`FAILURE: Build failed with an exception.

BUILD FAILED in 1s (node:18440) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.

BUILD FAILED in 1s at ChildProcess.whenDone (D:\Soyou\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at maybeClose (internal/child_process.js:925:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) (node:18440) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:18440) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.`

Can you know why it's doing this ?

darryncampbell commented 6 years ago

Hi, I just tried building an app from scratch and it seems to work

It pulls in cordova-android 7.0.0 and targets api 26. Do you have your android build environment up to date?

We had a similar issue before (https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent/issues/38), in that instance the support framework version was causing conflict with other plugins so possibly there is an undesirable interaction with some other plugin in your application?

apo-j commented 6 years ago

@darryncampbell What do you mean by intent version 3.2.0 (darryncampbell-cordova-plugin-intent or ionic-native/web-intent) ? for me, I have

darryncampbell commented 6 years ago

Darn it, sorry, that was a typo. I meant it was version 1.0.2 of this intent, same as you. Also with ionic-native/web-intent installed the app still builds and launcher. Very strange.

darryncampbell commented 6 years ago

Closing the issue, assumed resolved.

adityamaple1989 commented 4 years ago

cordova plugin add https://github.com/napolitano/cordova-plugin-intent. After installation of above plugin,I am unable to build the apk.Please respond and please give any suggestion. Its throwing an error like this no such file or directory, open './platforms/android/gradle.properties'

darryncampbell commented 4 years ago

@adityamaple1989 This is not the same plugin and that plugin by napolitano is marked as deprecated.

adityamaple1989 commented 4 years ago

@darryncampbell ok thanks for your reply and ionic plugin add https://github.com/darryncampbell/darryncampbell-cordova-plugin-intent --save the above plugin added to my ionic app after that, I am unable to build the apk in ionic framework

adityamaple1989 commented 4 years ago

@darryncampbell please suggest me,I need to use this plugin for receiving data from other apps

darryncampbell commented 4 years ago

@adityamaple1989 I suggest you take a look at an example project that uses this plugin for Ionic, https://github.com/Zebra/ZebraIonicDemo

adityamaple1989 commented 4 years ago

@darryncampbell Ok thank you,i will check.

adityamaple1989 commented 4 years ago

@darryncampbell what is the use of this url : https://github.com/Zebra/ZebraIonicDemo ,I think it is not a plugin.By using this url we can receive data or any file from other apps?can you please tell me