Lazarus

Programming => Operating Systems => Android => Topic started by: CC on June 30, 2019, 04:41:39 pm

Title: LAMW - Simple newly created project cannot be built
Post by: CC on June 30, 2019, 04:41:39 pm
Hi,

Cfg:
Lazarus, FPC : Latest Fixes branch
LAMW: Latest git
Min SDK: 14
Target SDK: 28
Chipset: ARMv7a+FPv3
Gradle: 5.1.1
 
Messages, Hints: 2
Verbose: Selected chip architecture: armeabi-v7a
Verbose: Taking libraries from folder: C:\A\Test\AppLAMWProject13\libs\armeabi-v7a
Verbose: Found library: libcontrols.so
Note: Duplicate unit "controls" in "controls", orphaned ppu "C:\A\Test\AppLAMWProject13\obj\controls\controls.o"
Note: Duplicate unit "controls" in "LCLBase 2.0.3", ppu="D:\fpcupdeluxe_fixes\lazarus\lcl\units\arm-android\controls.ppu", source="D:\fpcupdeluxe_fixes\lazarus\lcl\controls.pp"
Compile Project, OS: android, CPU: arm, Target: C:\A\Test\AppLAMWProject13\libs\armeabi-v7a\libcontrols.so: Success
Building APK (Gradle)... : FAILURE: Build failed with an exception., Errors: 1
Fatal: FAILURE: Build failed with an exception.
* Where:
Build file 'C:\A\Test\AppLAMWProject13\build.gradle' line: 58
* What went wrong:
A problem occurred evaluating root project 'AppLAMWProject13'.
> Cannot add task 'wrapper' as a task with that name already exists.
* Try:
Run with --stacktrace option to get the stack trace. Run with --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1s
Picked up _JAVA_OPTIONS: -Xmx512M
Exception, Errors: 1
Fatal: [Exception] Failed: Cannot build APK!
Title: Re: LAMW - Simple newly created project cannot be built
Post by: CC on June 30, 2019, 04:51:37 pm
Please ignore for now!
Title: Re: LAMW - Simple newly created project cannot be built
Post by: CC on June 30, 2019, 05:05:19 pm
I have tried to remove this topic, but did not work.  Modererators, please delete it if possible.