I installed Ionic Cordova BackgroundLocation plugin but when I building myapp then it gives me error like Execution failed for task ':app:compileDebugJavaWithJavac'.
or you can see below image
-
It seems like android version issue. SDK version is not matching with the needs your plugin is needing.– AddWeb Solution Pvt LtdJan 27, 2018 at 10:24
-
I had same issue I tried removing and adding the android platform and it worked try if that works– Mahesh JadhavJan 27, 2018 at 16:46
Add a comment
|
1 Answer
Try to upgrade your buildToolsVersion to "higher version" like this:
compileSdkVersion 25
buildToolsVersion "25.0.1"
If you didn't install the buildTools for this version, please download it with SDKManager as hint.