Skip to content
This repository has been archived by the owner on May 18, 2021. It is now read-only.

Issue on cordova 8.0.0 for Cordova Android 7.0.0 #14

Open
The-Maurya opened this issue Jan 31, 2018 · 5 comments
Open

Issue on cordova 8.0.0 for Cordova Android 7.0.0 #14

The-Maurya opened this issue Jan 31, 2018 · 5 comments

Comments

@The-Maurya
Copy link

For cordova-plugin-background-app version 2.0.2, on updating the app to Cordova 8.0.0 I am getting an error on PhoneGap build for Android app.

I am getting this error in the Log file. This seems to be a Gradle issue.

Is this a plugin issue or am I doing something incorrectly?

Subproject Path: CordovaLib
Subproject Path: app
Subproject Path: cordova-plugin-background-app/mobile-background-activity-lib
Configuration on demand is an incubating feature.
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
	at build_2xx35v52rl3ludo3orv40h1v6.run(/app/build.gradle:145)
Configuration 'compile' in project ':app' is deprecated. Use 'implementation' instead.
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedFolders(FileCollection)
Configuration 'compile' in project ':cordova-plugin-background-app:background-activity-lib' is deprecated. Use 'implementation' instead.
Configuration 'debugCompile' in project ':cordova-plugin-background-app:background-activity-lib' is deprecated. Use 'debugImplementation' instead.
Configuration 'releaseCompile' in project ':cordova-plugin-background-app:background-activity-lib' is deprecated. Use 'releaseImplementation' instead.
Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
java.lang.IllegalStateException: compileSdkVersion is not specified.
	at com.google.common.base.Preconditions.checkState(Preconditions.java:456)
Build file '/cordova-plugin-background-app/mobile-background-activity-lib/build.gradle' line: 47

* What went wrong:
A problem occurred evaluating project ':cordova-plugin-background-app:background-activity-lib'.
> Could not get unknown property 'cdvCompileSdkVersion' for object of type com.android.build.gradle.LibraryExtension.

BUILD FAILED in 1s
Error: /gradlew: Command failed with exit code 1 Error output:
Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
java.lang.IllegalStateException: compileSdkVersion is not specified.
	at com.google.common.base.Preconditions.checkState(Preconditions.java:456)

* Where:
Build file '/cordova-plugin-background-app/mobile-background-activity-lib/build.gradle' line: 47

* What went wrong:
A problem occurred evaluating project ':cordova-plugin-background-app:background-activity-lib'.
> Could not get unknown property 'cdvCompileSdkVersion' for object of type com.android.build.gradle.LibraryExtension.
@ikin77
Copy link

ikin77 commented Feb 1, 2018

Hi. Same problem here. Any ideas?

Thanks in advance.

@WalterMourao
Copy link

Same problem here...

@L96Github
Copy link

yep. Same problem.

@danztensai
Copy link

same problem.. any idea? and i cant downgrade it to earlier node version :(

@erik-nguyen
Copy link

I have the same error :(

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants