apollo mcowiti
Posts: 0
Joined: Sat Apr 18, 2015 2:21 am

Added cordova sam plugin, now export to .apk fails

I added a cordova sms plugin (https://github.com/cordova-sms/cordov...), following the instruction found here (https://devcenter.appery.io/documenta...).

App failed when testing on browser with with error of "variable sms not defined"
Tried export of .apk so that can test on device, but the export fails. One suggestion of failure is that the source was modified ( true, during plugin addition, as suggested by the documentation). Is this is indeed the case of the failure, how else can a plugin be added?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Added cordova sam plugin, now export to .apk fails

Hello,

Please check again all files, which you added into project. Have you added .js files and add them in the config.xml?

Unfortunately this is something outside the scope of standard Appery.io platform support. You may consider purchasing Advisory Pack to get more in-depth help on this question. Here is more information about Advisory Pack: http://appery.io/services/#Advisory_Pack.

apollo mcowiti
Posts: 0
Joined: Sat Apr 18, 2015 2:21 am

Added cordova sam plugin, now export to .apk fails

All files added as per the instructions i noted above.
Question is not on the plugin per se, but why the failure of the .apk export? The error is missing android package:
java:[80,43] error: package Telephony does not exist

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Added cordova sam plugin, now export to .apk fails

It looks like you didn't include JS file with Telephony variable (object/function).

Please add that JS file as a custom one (create new-JavaScript)

apollo mcowiti
Posts: 0
Joined: Sat Apr 18, 2015 2:21 am

Added cordova sam plugin, now export to .apk fails

Thanks will try that

apollo mcowiti
Posts: 0
Joined: Sat Apr 18, 2015 2:21 am

Added cordova sam plugin, now export to .apk fails

The error is actually on the Java file
/myapp/src/com/phonegap/plugins/sms/Sms.java:[13,23] error: cannot find symbol package android.provider /myapp/src/com/phonegap/plugins/sms/Sms.java:[79,76] error: cannot find symbol class VERSION_CODES /myapp/src/com/phonegap/plugins/sms/Sms.java:[80,43] error: package Telephony does not exist

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Added cordova sam plugin, now export to .apk fails

Hello -

In some cases you cannot add Cordova plugin only by using Appery.io builder you will need to export your project to Eclipse and continue adding it in there. Or wait for our update this weekend which will make possible adding mostly any Cordova CLI based plugin.

Return to “Issues”