Skip to content

Commit ddf5981

Browse files
author
Danny Glover
committed
Linux: Fix gradle issue with Android builds on ubuntu* systems.
- Updated installer script to grab the latest version of Gradle, which fixes the Android build issues on Ubuntu* based distros. - Added git step to installer script, as some distros do not include it by default. This fixes a potential issue with the sample code not being downloaded by the installer.
1 parent abddeba commit ddf5981

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

platform/linux/Solar2DSimulator/install.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ mv Solar2DBuilder ~/.local/share/Corona/Native/Corona/lin/bin/
5858
# install required dependencies via Apt
5959
if [[ $USE_APT == 1 ]]; then
6060
# nake sure we have the latest package lists
61+
sudo add-apt-repository ppa:cwchien/gradle -y
6162
sudo apt-get update
6263
# install dependencies
6364
sudo apt-get install build-essential -y
@@ -80,10 +81,12 @@ if [[ $USE_APT == 1 ]]; then
8081
sudo apt-get install openjdk-8-jdk-headless -y
8182
sudo apt-get install openjdk-8-jre-headless -y
8283
sudo apt-get install unzip -y
84+
sudo apt-get install git -y
8385
sudo apt-get install p7zip -y
8486
sudo apt-get install p7zip-full -y
8587
sudo apt-get install lua5.1 -y
8688
sudo apt-get install gradle -y
89+
sudo apt upgrade gradle
8790
# install required dependencies via Pacman
8891
elif [[ $USE_PACMAN == 1 ]]; then
8992
sudo pacman -Sy base-devel --noconfirm
@@ -106,6 +109,7 @@ elif [[ $USE_PACMAN == 1 ]]; then
106109
sudo pacman -Sy jdk14-openjdk --noconfirm
107110
sudo pacman -Sy jre14-openjdk --noconfirm
108111
sudo pacman -Sy unzip --noconfirm
112+
sudo pacman -Sy git --noconfirm
109113
sudo pacman -Sy p7zip --noconfirm
110114
sudo pacman -Sy lua51 --noconfirm
111115
sudo pacman -Sy gradle --noconfirm

0 commit comments

Comments
 (0)