My problem: The plugin uses gradle script to build Android version. I am using Intel XDK as software development tool, which cannot handle plugins with gradle for build process in plugin.xml.
I have removed gradle by deleting the tag
<framework src="src/android/FCMPlugin.gradle" custom="true" type="gradleReference"/>
from section
<platform name="android">
so no gradle is used for build (ant instead, I think) but there are now (of course) unsolved dependancies like this:
.../cordova_project/platforms/android/src/com/gae/scaffolder/plugin/FCMPlugin.java:15: error: package com.google.firebase.messaging does not exist
import com.google.firebase.messaging.FirebaseMessaging;
^
.../cordova_project/platforms/android/src/com/gae/scaffolder/plugin/FCMPlugin.java:16: error: package com.google.firebase.iid does not exist
import com.google.firebase.iid.FirebaseInstanceId;
^
...
I have all the firebase packages needed for build in a extra folder com.google.firebase but don't know where to copy and how to change the plugin.xml file to build without errors.
As I said before, I am using an SDE (Intel XDK) NOT the Cordova CLI OR Android SDK for Build. There it would build without problems, because gradle is accepted.
My problem: The plugin uses gradle script to build Android version. I am using Intel XDK as software development tool, which cannot handle plugins with gradle for build process in plugin.xml.
I have removed gradle by deleting the tag
<framework src="src/android/FCMPlugin.gradle" custom="true" type="gradleReference"/>
from section<platform name="android">
so no gradle is used for build (ant instead, I think) but there are now (of course) unsolved dependancies like this:.../cordova_project/platforms/android/src/com/gae/scaffolder/plugin/FCMPlugin.java:15: error: package com.google.firebase.messaging does not exist import com.google.firebase.messaging.FirebaseMessaging; ^ .../cordova_project/platforms/android/src/com/gae/scaffolder/plugin/FCMPlugin.java:16: error: package com.google.firebase.iid does not exist import com.google.firebase.iid.FirebaseInstanceId; ^ ...
I have all the firebase packages needed for build in a extra folder com.google.firebase but don't know where to copy and how to change the plugin.xml file to build without errors.
As I said before, I am using an SDE (Intel XDK) NOT the Cordova CLI OR Android SDK for Build. There it would build without problems, because gradle is accepted.
Thanks a lot! Mikel