Everything else that doesn't fall into one of the other categories.
IdeasVacuum
 
Posts: 135
Joined: Tue Feb 25, 2014 1:27 pm

Cordova online telemetry

by IdeasVacuum Wed Sep 13, 2017 12:53 am

When creating an Android App, the process fails:
You have been opted out of telemetry. To change this, run: cordova telemetry on.
ANDROID_HOME=C:\Program Files\SpiderBasic2p1\Android\android\sdk
JAVA_HOME=C:/Program Files/Java/jdk1.8.0_131/
Subproject Path: CordovaLib
Incremental java compilation is an incubating feature.
:preBuild UP-TO-DATE
...
Picked up _JAVA_OPTIONS: -Xmx512M


How do I "run: cordova telemetry on" ?
tj1010
 
Posts: 182
Joined: Wed May 27, 2015 1:36 pm

Re: Cordova online telemetry

by tj1010 Wed Sep 13, 2017 5:52 am

I don't think I had that problem with this code which side loads cordova modules viewtopic.php?f=9&t=1221
IdeasVacuum
 
Posts: 135
Joined: Tue Feb 25, 2014 1:27 pm

Re: Cordova online telemetry

by IdeasVacuum Thu Sep 14, 2017 1:24 am

Hi tj1010

Well, I have not added any Cordova plugins to my code. The time scale was:

1) Deployment working fine: SB2.0, Win7x86, Android 4.4.2
2) Download and install SB2.1
3) Compile Good, app perfect when running from IDE in browser (FireFox)
4) Cannot deploy (internet connection is fine)

I tried adding "Import "cordova telemetry on" : EndImport" at the top of my code, as per your code.
Deployment now fails with:
ANDROID_HOME=C:\Program Files\SpiderBasic2p1\Android\android\sdk
JAVA_HOME=C:/Program Files/Java/jdk1.8.0_131/
Subproject Path: CordovaLib
Incremental java compilation is an incubating feature.
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
...
Picked up _JAVA_OPTIONS: -Xmx512M


So - lost :? checkDebugManifest?
IdeasVacuum
 
Posts: 135
Joined: Tue Feb 25, 2014 1:27 pm

Re: Cordova online telemetry

by IdeasVacuum Tue Sep 19, 2017 10:26 am

The "Cordova online telemetry" error message has just vanished, presumably that is a good thing :?

What is actually going on is an Android deployment failure, as reported here:
http://forums.spiderbasic.com/viewtopic.php?f=11&t=1291
mdp
 
Posts: 31
Joined: Fri Oct 06, 2017 10:37 am

Re: Cordova online telemetry

by mdp Mon Oct 23, 2017 3:06 am

I have a similar error trying to create a .apk:
... You have been opted out of telemetry. To change this, run: cordova telemetry on.
Error failed to fetch platform Android...


The guest machine has not internet. I understand I should install some packages on it?
Fred
Site Admin
 
Posts: 1013
Joined: Mon Feb 24, 2014 10:51 am

Re: Cordova online telemetry

by Fred Mon Oct 23, 2017 7:00 am

Cordova requires internet to create an .apk
IdeasVacuum
 
Posts: 135
Joined: Tue Feb 25, 2014 1:27 pm

Re: Cordova online telemetry

by IdeasVacuum Fri Nov 03, 2017 1:51 am

Hi Fred

I understand that, but Cordova is failing even when the internet connection is good.
tj1010
 
Posts: 182
Joined: Wed May 27, 2015 1:36 pm

Re: Cordova online telemetry

by tj1010 Thu Nov 30, 2017 12:33 am

Finally got time to work with SB again.. Same error

Stable fast connection.. It's not a permission on SB issue either

Code: Select all
Import "cordova telemetry on" : EndImport


at the top of your code changes the error

It's probably related to what is making corrupted apk that package installer can't read. This has been killing productivity for me because I only get to hop on the net sometimes in <7 hour sessions.
Last edited by tj1010 on Sun Dec 31, 2017 5:16 pm, edited 2 times in total.
tj1010
 
Posts: 182
Joined: Wed May 27, 2015 1:36 pm

Re: Cordova online telemetry

by tj1010 Sun Dec 31, 2017 1:11 am

Build APK without deploy and use
Code: Select all
SpiderBasic\Android\android\sdk\platform-tools\adb.exe install -rg <apk path here>


No problems here with this but I only tested on one 6.0.1 device.

"-Xmx512m" means maximum 512MB RAM for JVM which may have something to do with the error. In any case without adb deploy javac works fine, and adb on it's own works fine, so definitely a SB bug..

EDIT: SB is also broken with my 4.4 device because of SDK used. "[INSTALL_FAILED_OLDER_SDK]"
Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests