Androxyde / Flashtool

Xperia device flashing
GNU General Public License v3.0
478 stars 245 forks source link

[ERROR] Using gradle to BUILD Xperia (S1) Flashtool causes ERROR during the build process: #204

Open MartinVonReichenberg opened 1 year ago

MartinVonReichenberg commented 1 year ago

[ERROR] Build ERROR:

$: whoami
martin

$: pwd                                                                                                         
/home/martin/Downloads/PC/Packaging/Sources/Xperia-Flashtool/xperia-flashtool/Flashtool-master/Flashtool

$: gradle --info                                                                                               
Initialized native services in: /home/martin/.gradle/native
Initialized jansi services in: /home/martin/.gradle/native
Received JVM installation metadata from '/usr/lib/jvm/java-20-openjdk': {JAVA_HOME=/usr/lib/jvm/java-20-openjdk, JAVA_VERSION=20.0.2, JAVA_VENDOR=N/A, RUNTIME_NAME=OpenJDK Runtime Environment, RUNTIME_VERSION=20.0.2+9, VM_NAME=OpenJDK 64-Bit Server VM, VM_VERSION=20.0.2+9, VM_VENDOR=Oracle Corporation, OS_ARCH=amd64}
The client will now receive all logging from the daemon (pid: 13500). The daemon log file: /home/martin/.gradle/daemon/8.3/daemon-13500.out.log
Starting 16th build in daemon [uptime: 30 mins 23.94 secs, performance: 100%, GC rate: 0.00/s, heap usage: 2% of 512 MiB, non-heap usage: 19% of 384 MiB]
Using 12 worker leases.
Now considering [/home/martin/Downloads/PC/Packaging/Sources/Xperia-Flashtool/xperia-flashtool/Flashtool-master] as hierarchies to watch
Watching the file system is configured to be enabled if available
File system watching is active
Starting Build
Settings evaluated using settings file '/home/martin/Downloads/PC/Packaging/Sources/Xperia-Flashtool/xperia-flashtool/Flashtool-master/settings.gradle'.
Projects loaded. Root project using build file '/home/martin/Downloads/PC/Packaging/Sources/Xperia-Flashtool/xperia-flashtool/Flashtool-master/build.gradle'.
Included projects: [root project 'Flashtool Project', project ':Flashtool', project ':FlashtoolDrivers']

> Configure project :
Evaluating root project 'Flashtool Project' using build file '/home/martin/Downloads/PC/Packaging/Sources/Xperia-Flashtool/xperia-flashtool/Flashtool-master/build.gradle'.

> Configure project :Flashtool
Evaluating project ':Flashtool' using build file '/home/martin/Downloads/PC/Packaging/Sources/Xperia-Flashtool/xperia-flashtool/Flashtool-master/Flashtool/build.gradle'.
The configuration detachedConfiguration1 is both resolvable and consumable. This is considered a legacy configuration and it will eventually only be possible to be one of these.
The configuration detachedConfiguration1 is both consumable and declarable. This combination is incorrect, only one of these flags should be set.
The configuration detachedConfiguration1 is both resolvable and consumable. This is considered a legacy configuration and it will eventually only be possible to be one of these.
The configuration detachedConfiguration1 is both consumable and declarable. This combination is incorrect, only one of these flags should be set.
The configuration detachedConfiguration2 is both resolvable and consumable. This is considered a legacy configuration and it will eventually only be possible to be one of these.
The configuration detachedConfiguration2 is both consumable and declarable. This combination is incorrect, only one of these flags should be set.
The configuration detachedConfiguration2 is both resolvable and consumable. This is considered a legacy configuration and it will eventually only be possible to be one of these.
The configuration detachedConfiguration2 is both consumable and declarable. This combination is incorrect, only one of these flags should be set.
The configuration detachedConfiguration3 is both resolvable and consumable. This is considered a legacy configuration and it will eventually only be possible to be one of these.
The configuration detachedConfiguration3 is both consumable and declarable. This combination is incorrect, only one of these flags should be set.
The configuration detachedConfiguration3 is both resolvable and consumable. This is considered a legacy configuration and it will eventually only be possible to be one of these.
The configuration detachedConfiguration3 is both consumable and declarable. This combination is incorrect, only one of these flags should be set.
The configuration :Flashtool:classpath is both resolvable and consumable. This is considered a legacy configuration and it will eventually only be possible to be one of these.
The configuration :Flashtool:classpath is both consumable and declarable. This combination is incorrect, only one of these flags should be set.
The configuration :Flashtool:classpath is both resolvable and consumable. This is considered a legacy configuration and it will eventually only be possible to be one of these.
The configuration :Flashtool:classpath is both consumable and declarable. This combination is incorrect, only one of these flags should be set.

FAILURE: Build failed with an exception.

* Where:
Build file '/home/martin/Downloads/PC/Packaging/Sources/Xperia-Flashtool/xperia-flashtool/Flashtool-master/Flashtool/build.gradle' line: 80

* What went wrong:
A problem occurred evaluating project ':Flashtool'.
> No signature of method: org.gradle.api.internal.artifacts.ivyservice.dependencysubstitution.DefaultDependencySubstitutions$1.with() is applicable for argument types: (org.gradle.internal.component.external.model.DefaultModuleComponentSelector) values: [org.eclipse.platform:org.eclipse.swt.gtk.linux.x86_64:3.120.0]
  Possible solutions: with(groovy.lang.Closure), with(boolean, groovy.lang.Closure), wait(), wait(long), find(), wait(long, int)

* 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.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.

BUILD FAILED in 435ms

Using this hardware/software:

$: uname --all                                                                                                                                                                                
Linux Lenovo-ThinkCentre-M75q--Manjaro-KDE 6.5.5-AMD-znver3 #1 SMP PREEMPT_DYNAMIC Sun Sep 24 07:11:16 CEST 2023 x86_64 GNU/Linux

$: sudo pacman -Si gradle                                                                                                                                                                     
Repository      : extra
Name            : gradle
Version         : 8.3-1
Description     : Powerful build system for the JVM
Architecture    : any
URL             : https://gradle.org/
Licenses        : Apache
Groups          : None
Provides        : None
Depends On      : java-environment  bash  which  coreutils  findutils  sed
Optional Deps   : gradle-doc: gradle documentation
                  gradle-src: gradle sources
Conflicts With  : None
Replaces        : None
Download Size   : 121,81 MiB
Installed Size  : 138,08 MiB
Packager        : Frederik Schwan <freswa@archlinux.org>
Build Date      : Čt 17. srpna 2023, 11:31:43
Validated By    : MD5 Sum  SHA-256 Sum  Signature

$: gradle                                                                                                                                                                                     
> Task :help

Welcome to Gradle 8.3.

Directory '/' does not contain a Gradle build.

To create a new build in this directory, run gradle init

For more detail on the 'init' task, see https://docs.gradle.org/8.3/userguide/build_init_plugin.html

For more detail on creating a Gradle build, see https://docs.gradle.org/8.3/userguide/tutorial_using_tasks.html

To see a list of command-line options, run gradle --help

For more detail on using Gradle, see https://docs.gradle.org/8.3/userguide/command_line_interface.html

For troubleshooting, visit https://help.gradle.org

BUILD SUCCESSFUL in 334ms
1 actionable task: 1 executed
$: date
Út 3. října 2023, 22:36:15 CEST

Please investigate as I cannot build the program from its SOURCE code . . .