私は、カレンダーから何らかの種類の予約機能を使用したいと思うcordovaアプリケーションを開発しています。それで、私は非常に有名なEddyVerbruggen/Calendar-PhoneGap-Pluginプラグインをインストールしました。Cordova:corodva-plugin-calendarでプロジェクトをビルドできません。
しかし、プロジェクトを構築しながら、それは私もまだ何の助け
をthreads..but以下のなかっ経て、次のエラー
/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
を投げています私の環境NT
- コルドバ-CLI:6.1.1
- のAndroid-SDK:23
だから、私はこの問題を解決するために何をすべきでしょうか?
私はまた、親切に私たちを助けて、同じ問題に直面しています。 –
@ pac-manでも、Androidのエキスパートではありませんが、プラグインのアンドロイドのソースコードを見ると、この問題はandroid-support-v4.jarのパスと関係していると思います。ContextCompatクラスとActivityCompatクラスはこのjarファイルの一部ですエラートレースごとにビルド中に配置することはできません。希望のポインタを提供します。 – Gandhi