I just tried to send an email with my phone. So I googled and found that there’s a general purpose PhoneGap plugin: WebIntent. Works only for Android, but so far so good.
Here’s the documentation:
https://github.com/acen99/WebIntent/tree/50849a413d9970c21bbb78c389df6651f9cfe858
and from there I got the plugin url:
https://github.com/acen99/WebIntent.git
So I installed the plugin. That seemed to work without problems.
But building the Project without adding any code resulted in:
“<project name> – android – error. detecting Android SDK environment… using the local environment compiling Android… An error occurred while building the android project.”
Which error are we talking about? Where do I find the log? A link to the log in the message would be helpful.
Thanks a lot for the help.
(using ME2015, creating phonegap mobile app)
edit: found this in metadata .log:
!MESSAGE detecting Android SDK environment... using the local environment adding the Android platform... compiling Android...
An error occurred while building the android project.
!STACK 0
com.genuitec.eclipse.mobile.common.cordova.CordovaException: detecting Android SDK environment... using the local environment adding the Android platform... compiling Android...
An error occurred while building the android project.
at com.genuitec.eclipse.mobile.common.cordova.AbstractCordovaCLI$CLICommand.run(AbstractCordovaCLI.java:247)
at com.genuitec.eclipse.mobile.common.cordova.AbstractCordovaCLI.build(AbstractCordovaCLI.java:211)
at com.genuitec.eclipse.mobile.phonegap.core.build.PhonegapLocalBuildJob.run(PhonegapLocalBuildJob.java:170)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
How can I fix this?
edit 2: i tried now the plugin from here:
https://github.com/katzer/cordova-plugin-email-composer
and it worked. So I guess the problem is with the plugin. But still “an error occurred” should be improved with details about the error.