Software Archive
Read-only legacy content
17061 Discussions

cordova-screenshot plugin build error

Lutze
Beginner
421 Views

Plugin from source: https://github.com/gitawego/cordova-screenshot

Anyone that get this plugin to build? I have tried with CLI 5.1.1 and 5.4.1, Crosswalk 14, 15, 16 in a single project without other plugins. Is it possible to get this working with CLI 5.4.1, or is it a wait for Cordova 6.0.0.?

Thanks.

The error I'm getting is:

android/skeleton/platforms/android/src/com/darktalker/cordova/screenshot/Screenshot.java:220: error: method does not override or implement a method from a supertype
@Override
^

Which comes from the line of code in Screenshot.java:

	@Override
    public void onRequestPermissionResult(int requestCode, String[] permissions, int[] grantResults)

 

0 Kudos
3 Replies
PaulF_IntelCorp
Employee
421 Views

Lutze -- its generally not a good idea to use the "head" of the master branch in a github repo, because it is usually "under construction." I recommend you try one of the tagged versions in the repo. For example, see this list and try something like this:

Screen Shot 2016-03-25 at 4.00.11 PM.png

0 Kudos
Lutze
Beginner
421 Views

Thanks for the info Paul, tho I was kind of hoping the master branch would stop the plugin from failing silently as v.0.1.5 continue doing.

0 Kudos
Lutze
Beginner
421 Views
please use master version of cordova-plugin-crosswalk-webview 
if you wanna use this plugin in master and v0.1.5
because the crosswalk's feature onMessage is not yet available in npm.

 

0 Kudos
Reply