Ich entwickle die Cordova-Anwendung, in der ich irgendeine Art von Buchungsfunktionalität über den Kalender haben möchte. Deshalb habe ich das sehr bekannte Plugin EddyVerbruggen/Calendar-PhoneGap-Plugin installiert.Cordova: Mit corodva-plugin-calendar kein Projekt erstellen
Aber während das Projekt bauen, es wirft Fehler folgende
/home/admin/Desktop/myApp/platforms/android/src/nl/xservices/plugins/Calendar.java:148: error: cannot find symbol
if (PackageManager.PERMISSION_GRANTED != ContextCompat.checkSelfPermission(this.cordova.getActivity(), type)) {
^
symbol: method checkSelfPermission(Activity,String)
location: class ContextCompat
/home/admin/Desktop/myApp/platforms/android/src/nl/xservices/plugins/Calendar.java:157: error: cannot find symbol
ActivityCompat.requestPermissions(
^
symbol: method requestPermissions(Activity,String[],int)
location: class ActivityCompat
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
2 errors
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 43.228 secs
Error: Error code 1 for command: /home/admin/Desktop/myApp/platforms/android/gradlew with args: cdvBuildDebug,-b,/home/admin/Desktop/myApp/platforms/android/build.gradle,-PcdvBuildArch=x86,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
ich auch noch keine Hilfe
- Android M (6) compatibility
- Issue related to the new Cordova version CLI >5 folgende threads..but gegangen durch
Meine Umgebung nt
- Cordova-CLI: 6.1.1
- Android-Sdk: 23
Also, was soll ich tun, um dieses Problem zu lösen?
ich auch das gleiche Problem konfrontiert bin, helfen Sie uns. –
@ pac-man obwohl ich kein Experte in Android bin, Blick auf den Android-Quellcode des Plugins, glaube ich, dass dieses Problem etwas mit Android-Support-v4.jar Weg zu tun, da ContextCompat und ActivityCompat-Klasse Teil dieses Glas und es sind ist nicht in der Lage, während der Erstellung gemäß Ihrer Fehlerverfolgung gefunden zu werden. Hoffe, es bietet einen Zeiger. – Gandhi