Android: How to specify gradle version

8 views
Skip to first unread message

David Wafula

unread,
May 11, 2019, 5:13:11 PM5/11/19
to CodenameOne Discussions
I just looked at the Android source after build, i see it's using gradle  3.0.1.  My project uses  android native source and requires 3.2.0. How do i specify this ?

--
David W

Shai Almog

unread,
May 11, 2019, 11:11:01 PM5/11/19
to CodenameOne Discussions
We use gradle 4.6 when building. You can't just pick any gradle version because a different version might not be installed.

David Wafula

unread,
May 12, 2019, 5:29:14 AM5/12/19
to CodenameOne Discussions
I understand. I saw this line in the error log when i got a build error, making me believe it uses gradle 3.0.1
...

Executing: /home/ec2-user/android-sdk/tools/android create project --target android-27 --name StaffApp --path /tmp/build234020841649285069xxx/StaffApp --activity StaffAppStub --package za.ac.staff.app --gradle --gradle-version 3.0.1 Created directory /tmp/build234020841649285069xxx/WitsStaffApp/src/main/java
...

Luckily i got around my errors.. gradle is not the issue anymore.

Regards 

On Sun, May 12, 2019 at 5:11 AM Shai Almog <shai....@gmail.com> wrote:
We use gradle 4.6 when building. You can't just pick any gradle version because a different version might not be installed.

--
You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/a62ca941-94fa-48bf-a7a9-8fa2b2205b0e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
David W
Reply all
Reply to author
Forward
0 new messages