Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when building cordova App - Could not find property 'cdvCompileSdkVersion'

FAILURE: Build failed with an exception.

  • Where: Build file '/Users/severindeutschmann/Meteor/pichapp/.meteor/local/cordova-build/platforms/android/CordovaLib/build.gradle' line: 48

  • What went wrong: A problem occurred evaluating project ':CordovaLib'.

    Could not find property 'cdvCompileSdkVersion' on com.android.build.gradle.LibraryExtension_Decorated@54226e53.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

This happens when I try to build my app using Meteor build ...... There where several other issues before that, but searching github and google suggested editing build.gradle and build-extra.gradle - i fixed several issues on the way and tried several approaches but all of them end at this error message where i don't have any idea at how to fix it.

Would love if someone could help me, I'm stuck for hours on this now.

like image 577
carryp Avatar asked Dec 30 '15 16:12

carryp


People also ask

What is Cordova Android?

Cordova Android is an Android application library that allows for Cordova-based projects to be built for the Android Platform. Cordova based applications are, at the core, applications written with web technology: HTML, CSS and JavaScript. Apache Cordova is a project of The Apache Software Foundation (ASF).


1 Answers

replace cdvCompileSdkVersion by your own sdkVersion, my version is 21, so as to cdvBuildToolsVersion. There is an example:

compileSdkVersion 21 buildToolsVersion "23.0.1"

like image 60
jiar wang Avatar answered Oct 27 '22 00:10

jiar wang