isleofcode/corber

A problem occurred evaluating project ':CordovaLib'

dondanhill opened this issue · 1 comments

Hi,

I'm getting the following issue from an Ember project. I have tried several emulator options too.
Any ideas on how to resolve this error please?
Many thanks

D:\dev\corber-test (master)λ corber start
Corber Starting
? Select a device/emulator android emulator - Pixel_2_API_27

WARNING: corber 
Your corber/cordova/config.xml file has set the following flag:
        <allow-navigation href="http://192.168.0.79:4200" />
This is necessary for device live-reload to work, but is unsafe and should not be used in production.
FAILURE: Build failed with an exception.
* Where:
Build file 'D:\dev\corber-test\corber\cordova\platforms\android\CordovaLib\build.gradle' line: 40
* What went wrong:
A problem occurred evaluating project ':CordovaLib'.
> 
com/google/gson/JsonParseException

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

* Get more help at https://help.gradle.org

BUILD FAILED in 1s

No apk found
No apk found


D:\dev\corber-test (master) 
λ 

Here are lines 33 thru 42 of the build.gradle file

33     dependencies {
34         classpath 'com.android.tools.build:gradle:3.0.1'
35         classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
36         classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
37     }
38 }
39
40 apply plugin: 'com.android.library'
41 apply plugin: 'com.github.dcendents.android-maven'
42 apply plugin: 'com.jfrog.bintray'

My environment:

λ cordova -v
9.0.0 (cordova-lib@9.0.1)


D:\dev\corber-test (master)
λ corber -v
corber (global): 1.3.11
corber (package.json): ^1.3.11
corber (node_modules): 1.3.11
node: 10.15.0


D:\dev\corber-test (master)
λ ember -v
ember-cli: 3.10.1
node: 10.15.0
os: win32 x64


λ gradle -v

------------------------------------------------------------
Gradle 5.5.1
------------------------------------------------------------

Build time:   2019-07-10 20:38:12 UTC
Revision:     3245f748c7061472da4dc184991919810f7935a5

Kotlin:       1.3.31
Groovy:       2.5.4
Ant:          Apache Ant(TM) version 1.9.14 compiled on March 12 2019
JVM:          1.8.0_212 (Oracle Corporation 25.212-b10)
OS:           Windows 10 10.0 amd64


D:\dev\corber-test (master) 
λ java -version
java version "1.8.0_212"
Java(TM) SE Runtime Environment (build 1.8.0_212-b10)
Java HotSpot(TM) 64-Bit Server VM (build 25.212-b10, mixed mode)    

The latest Android Studio update has resolved this issue. Many thanks for this great project.

Android Studio 3.5
Build #AI-191.8026.42.35.5791312, built on August 9, 2019
JRE: 1.8.0_202-release-1483-b03 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0