guyromb / cordova-open-native-settings

Plugin to open native screens of iOS/android settings (maintained, end-2020)
http://gsrweb.net
MIT License
113 stars 107 forks source link

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

Open lovyliu opened 6 years ago

lovyliu commented 6 years ago

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 commented 6 years ago

this plugin its working using cordova without ionic.

alexhisen commented 6 years ago

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