Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not able to build after installing this plugin #2

Open
pixellet14 opened this issue Mar 25, 2017 · 1 comment
Open

not able to build after installing this plugin #2

pixellet14 opened this issue Mar 25, 2017 · 1 comment

Comments

@pixellet14
Copy link

Server exception
Project "JAGS INDIA.tmp.proj" (default targets):
android Build Tooling revision 2017.03.21.1 origin/release-3.7.0.1
Build Tooling Hostname d4c145c3ee93
Warning: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.
Warning: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.
Warning: /tmp/builds/YFqUeWY9hlIFOIQGxn/app/src/com/cordova/plugins/sms/Sms.java:56: error: cannot find symbol
Warning: return cordova.hasPermission(android.Manifest.permission.SEND_SMS);
Warning: ^
Warning: symbol: method hasPermission(String)
Warning: location: variable cordova of type CordovaInterface
Warning: /tmp/builds/YFqUeWY9hlIFOIQGxn/app/src/com/cordova/plugins/sms/Sms.java:60: error: cannot find symbol
Warning: cordova.requestPermission(this, SEND_SMS_REQ_CODE, android.Manifest.permission.SEND_SMS);
Warning: ^
Warning: symbol: method requestPermission(Sms,int,String)
Warning: location: variable cordova of type CordovaInterface
Warning: Note: Some input files use or override a deprecated API.
Warning: Note: Recompile with -Xlint:deprecation for details.
Warning: Note: Some input files use unchecked or unsafe operations.
Warning: Note: Recompile with -Xlint:unchecked for details.
Warning: 2 errors
Warning: FAILURE: Build failed with an exception.
Warning: * What went wrong:
Warning: Execution failed for task ':compileDebugJavaWithJavac'.
Warning: > Compilation failed; see the compiler error output for details.
Warning: * Try:
Warning: Run with --stacktrace option to get the stack trace. Run with --info or
Warning: --debug option to get more log output.
Warning: /tmp/builds/YFqUeWY9hlIFOIQGxn/app/cordova/node_modules/q/q.js:126 throw e; ^ Error code 1 for command: /tmp/builds/YFqUeWY9hlIFOIQGxn/app/gradlew with args: cdvBuildDebug,-b,/tmp/builds/YFqUeWY9hlIFOIQGxn/app/build.gradle,-Dorg.gradle.daemon=true,-PcdvBuildMultipleApks=false
Error: Build failed during execution
Error: 'Build failed with error code 1'
Done building project "JAGS INDIA.tmp.proj" -- FAILED.

@EddyVerbruggen
Copy link

Looks like you're using a Cordova version that's too old for this plugin. Can you try updating Cordova and run it again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants