Recent

Author Topic: gradle off line or change to ant  (Read 1402 times)

juank1971

  • Full Member
  • ***
  • Posts: 112
gradle off line or change to ant
« on: August 27, 2020, 05:19:11 pm »
Hi :

is posible put offline gradle in laz4android ide whith lamw,
because i do't have internet connection in my home,  i need compile
apk with lanw component tha need gradle for example jcsignaturepad

Or,  it's possible to change gradle for ANT in your lamw  components

thanks
juank

jmpessoa

  • Hero Member
  • *****
  • Posts: 2330
Re: gradle off line or change to ant
« Reply #1 on: August 27, 2020, 08:55:07 pm »
Hello, Juan!

The first time you build the project the gradle needs the internet to search the "online" libraries  for "jcSignaturepad"...

maybe,  after that [the first Apk build...] it is possible that the gradle will no longer look for the  internet connection ...

About "is posible change gradle for ANT in your lamw  components"....

The componens in tabs  "Android Bridges AppCompat"   and  "Android Bridges JCenter"   need  "online" libraries
and so, we can't change to Ant....

Only the tabs "Android Bridges" and "Android Bridges Extra" can be used with Ant... [and gradle]
« Last Edit: August 27, 2020, 08:57:09 pm by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Segator

  • Full Member
  • ***
  • Posts: 168
    • https://github.com/Nenirey
Re: gradle off line or change to ant
« Reply #2 on: August 28, 2020, 03:51:54 am »
I think that if Android studio have a offline function using gradle maybe exist a way to do that in lamw installing something from Android studio maybe, using gradle in a blocked nation like cuba (me), iran etc need a vpn connection, jmpessoa have right ,when you build the first time the gradle needed files is cached in local, but if you add other component then you need internet connection again.
i am Reinier, Nenirey and Segator :) https://github.com/Nenirey

jmpessoa

  • Hero Member
  • *****
  • Posts: 2330
Re: gradle off line or change to ant
« Reply #3 on: August 28, 2020, 05:12:41 am »
Quote
if Android studio have a offline function....

But the question is: how we can get an "online" library in the first time.... [Android Studio also doesn't have all the libraries...].  That's why Gladle replaced Ant in  Android Studio and others IDE.

But here in LAMW we continue bravely giving some [limited] Ant support.....
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

juank1971

  • Full Member
  • ***
  • Posts: 112
Re: gradle off line or change to ant
« Reply #4 on: August 28, 2020, 05:02:52 pm »
it's true at least once have to connect thanks to everyone

i try to connect with VPN .

juank

 

TinyPortal © 2005-2018