Ionic 2 has exception when building android - cannot resolve gradle - gradle

I am a greenhorn to Ionic (ionic 2.2.3 and Cordova 7.0.1) and run into an exception when trying to build on android as below,
Since my site is behind proxy server, I added a gradle.properties to the folder (C:\Users\.gradle) like below, but get the exactly same error.
I was just wondering how to solve the network issue of gradle or use local gradle.

This might help. Seems like quite a similar issue.
https://software.intel.com/es-es/forums/intel-xdk/topic/595059

Related

Google Cloud SDK-based Maven plugin is forcing itself to update and then failing, when cloud sdk is up to date

I'm making a Java program which will be deployed to the Google App Engine and I'm using the Cloud SDK maven plugin version 2.4.0 to deploy to the GAE. However when I run mvn package appengine:deploy the cloud SDK will say its current version is 321.0.0 and needs to update to 327.0.0. The update will then fail with the error:
ERROR: (gcloud.components.update) Access is denied: [C:\Users\jamie\AppData\Local\Google\ct4j-cloud-sdk\LATEST\google-cloud-sdk.staging\platform\kuberun_licenses\LICENSES.txt]
However when I just run gcloud components update I get the result of All components are up to date.
Anyone know why this may be happening or how to fix it?
EDIT: As a work-around I found you can force the maven plugin to use a specific version of the sdk by using <cloudSdkVersion>321.0.0</cloudSdkVersion>. I'm still very curious to know why this occurred though
Manged to fix this by deleted the whole C:\Users\jamie\AppData\Local\Google\ct4j-cloud-sdk folder as this forces the plugin to redownload a fresh SDK.
The error occurs as the plugin uses its onw auto managed SDK rather than the one which is user managed.

Couchbase Lite in fatjar on heroku throws execption on Couchbase.init()

I am facing a problem which only occurs after uploading and executing my jar on heroku. Simply locally it works but online on heroku on execution the application immediately fails because of the Couchbase.init() command which throws (only on heroku) the following exception. What is the real reason behind it, can I fix it or is there any workaround?
Error
CouchbaseLite for Java and Android are bindings for a library written in C/C++
You have built a Jar file that either does not contain the native library, or cannot install it on your system.

Cannot resolve org.cytoscape with IntelliJ

I'm following the instructions here (https://github.com/cytoscape/cytoscape/wiki/Cytoscape-App-Ladder) in order to learn how to build a first, simple Cytoscape App, but I get in stuck at the "Setup for Cytoscape app development" step because after I imported the projects from github in IntelliJ, I obtain the following issues:
.
How can I resolve?
PS. I'm new to Cytoscape and Maven projects too.
Thank you!
Sorry for this. We just moved our repositories to a new server and didn't correctly update all of the links. We'll try to get that fixed as soon as possible.
-- scooter

Nativescript sidekick error during cloud build

I am getting a strange error from sidekick cloud build since a few hours ago.
I was building the app successfully, but all of a sudden, it gives me the following error and even reversing the changes does not fix anything. I have even tried with a fully working version of my git repo.
[19-01-28 16:55:27.709] Build step started.
[19-01-28 16:55:37.465] (CLI) Unable to apply changes on device: a754d27bafb8bb273e444b9d6cefd370cd55f4d4. Error is: Build failed..
[19-01-28 16:55:37.469] Error detected during LiveSync on a754d27bafb8bb273e444b9d6cefd370cd55f4d4 for C:\Users\Afshar\Desktop\myapp. Error: Build failed.
I doesn't give me any more details about the issue.
I was wondering if anyone knows how to get more logs in cloud build or if this is a known issue?
Thanks
It happens with me as well for reasons unknown. I couldn't find any root cause, but I did notice one pattern. It usually happens when I am already running the app on an Android Emulator/Device.
When we execute tns run android --bundle, it listens for file changes after the first build and does some webpack incremental build thing afterwards, right?
At the same time, once Sidekick delivers a successful iOS build, it also starts listening for changes to do the webpack incremental builds on iOS.
So while we have these two LISTENERS active and we request for another iOS cloud build, before Sidekick communicates with the cloud, it modifies some files which the android listener detects and results in an incremental android build, which in turn modifies some other files, which the iOS listener detects, resulting in Sidekick trying to do the incremental iOS build but this time its stuck between giving you the incremental update and the new requested cloud build, so it throws you this LiveSync error.
Moral of the story: Try to request cloud builds, when these listeners are inactive.
I finally managed to solve it.
In case anyone else faces this issue, I tried the following command using a hint on this page and it solved the problem.
https://docs.nativescript.org/troubleshooting
tns platform remove ios
and then, I was able to build the project in sidekick.

CordovaLib missing with Phonegap2.0.0

I am learning phonegap thru online tutorials.
I was creating facebook integration dummy app in xcode using phonegap by following step by step tutorial given at https://github.com/davejohnson/phonegap-plugin-facebook-connect
I was able to setup everything but one step where I was asked to add CordovaLib class path to XCODE was not working for me, I tried searching CordovaLib with downloaded and extracted phonegap(2.0.0) but couldn't find same.
At last, after spending good amount of time on google I could get CordovaLib from GITHUB and able to compile my project and make it work.
My question is, if CordovaLib is must for phonegap integration with Xcode, why is it not shipped with phonegap download ?
What is the best way to get CordovaLib in future for newer phonegap versions ?
There is no need anymore.
Note: Starting with Cordova 2.2, the project will have a copy of CordovaLib within it instead of having a dependency on the copy of CordovaLib from your Cordova installation.
guide_getting-started_ios

Resources