Open xuiqzy opened 4 years ago
I use macOS for development. But i have test this build process on Ubuntu 18.04, inside virtual box (4GB virtual ram)
Use the modified source code version
git clone -b cleanup_gradle https://github.com/GerryFerdinandus/MozStumbler.git
Use the api key for location service from fdroid for our local build
cd MozStumbler
cp android/properties/private-fdroid.properties android/properties/private-github.properties
cp android/properties/private-fdroid.properties android/properties/private-playstore.properties
Need this later for the ‘make install_debug’
sudo apt install -y openjdk-8-jdk android-tools-adb
This will install Android studio 3.6.1
sudo snap install android-studio --classic
Need to use android studio 3.6.1 to open the Mozstumbler project so it can download the specific SDK + specific build tools needed to build this project.
Android studio 4.x will not work.
Start Android studio. Install type: standard It will start installing the SDK and other items for the first time. Open an existing Android Studio project. -> Select mozstummer project via the ide. It scan/build the present mozstumbler project dependency.
It will give a error that it will/need download these two missing SDK version SDK Platform 28 SDK Build-Tools 28.0.3 These two extra items are download from inside the IDE is ALL that you need to click/install missing dependency.
Do not install other stuff. The IDE also suggest to update the grades plug in. DO NOT do this. The newer gradle version does not work with this project, it will break the build.
After SDK Platform 28 + SDK Build-Tools 28.0.3 are installed, and the project re-scan + download process of the libraries are finish you can close the IDE
Check if android device is detected.
adb devices
Type in console to Build and copy APK to the android phone
make install_debug
One of the issue of this project is that the gradle version use inside the project is old. Upgrading to new version give new build error. Android studio 4 use a newer gradle version, so it won't work.
I tried following the build config in Android Studio and I cannot choose a module when adding an Android App config. There is
<no module>
displayed in the module option and nothing else.Also, it is not clear what task type to add exactly at the bottom of the run config (how to add the things from the instructions in the readme), but this might be a followup issue of the no module found. I can only say that there is one task
Gradle-aware make
, that is also normally present and the only needed thing when you make a new Android app in Android Studio.The build that is automatically triggered when opening the project in Android Studio is throwing the error:
And manually building with typing
make
ormake --debug --trace
on the command line produces the following error:Do I need a specific java version and where does it need to be configured?
System: Arch Linux latest, tested with
Android Studio 3.6.1
andAndroid Studio 4.1 Canary 2
, where the Canary version produces a more verbose error for the automatic build after opening Android Studio without doing anything, see the following: