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

android build error - can not find signal VERSION_CODES.N_MR1 #30

Open
lovyliu opened this issue May 15, 2018 · 2 comments
Open

android build error - can not find signal VERSION_CODES.N_MR1 #30

lovyliu opened this issue May 15, 2018 · 2 comments
Labels

Comments

@lovyliu
Copy link

lovyliu commented May 15, 2018

ionic 1.7.16
node v6.14.1
npm 3.10.10
android ~5.0.0

if(android.os.Build.VERSION.SDK_INT > Build.VERSION_CODES.N_MR1){
^

@aacassandra
Copy link

this plugin its working using cordova without ionic.

@alexhisen
Copy link

alexhisen commented Oct 29, 2018

This issue still exists when using cordova-android 5.x and associated Android SDK Tools 23.x or 24.x. It can be easily fixed by changing NativeSettings.java file to use 25 instead of Build.VERSION_CODES.N_MR1
Alternatively, make sure Android Platform SDK 26 is installed and edit platforms/android/project.properties file and set: target=android-26

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

No branches or pull requests

4 participants