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

Build Failed #7

Open
micmek opened this issue Apr 7, 2017 · 5 comments
Open

Build Failed #7

micmek opened this issue Apr 7, 2017 · 5 comments

Comments

@micmek
Copy link

micmek commented Apr 7, 2017

/sms_receiver/SmsReceiverPlugin.java:8: error: package android.support.v4.app does not exist
import android.support.v4.app.ActivityCompat;

@micmek
Copy link
Author

micmek commented Apr 7, 2017

I solved this by adding another plugin

https://www.npmjs.com/package/cordova-plugin-android-support-v4

cordova plugin add cordova-plugin-android-support-v4

Please make sure you put this in the documentation as a prerequisite.

@merleauponti
Copy link

error: cannot find symbol
ContextCompat.checkSelfPermission(this.cordova.getActivity(), type));

any help ??

@josencv
Copy link

josencv commented Nov 2, 2017

I'm having the same issue. Any update on this?

@cmolina
Copy link

cmolina commented Nov 9, 2017

In build.gradle you need a dependency

dependencies {
  compile 'com.android.support:support-v4:25.2.0'
}

@prantikv
Copy link

getting the following Execution failed for task ':compileDebugJavaWithJavac'.

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

5 participants