First start with LAMW after reinstall lazarus / 43-Android ---------------------------------------------------------------------- svd71 · 2020-04-14 10:49 Hi all, can somebody help me with follows problem? I had reinstalled operation system and done Lazarus installation over "fpcupdelux". After it have I little problem with compilation of the LAMW-project from IDE and console. If I build a project with console (with ant-build-debug.sh), I see follows messages: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i -compile:  [javac] Compiling 5 source files to /home/svd/WI/laz/android/AppLAMWProject4/bin/classes    [javac] error: Source option 5 is no longer supported. Use 6 or later.    [javac] error: Target option 1.5 is no longer supported. Use 1.6 or later. BUILD FAILED /home/svd/Android/sdk/tools/ant/build.xml:716: The following error occurred while executing this line:/home/svd/Android/sdk/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.  with build over gradle-local-build.sh: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i ...All input files are considered out-of-date for incremental task ':compileDebugJavaWithJavac'.Compiling with source level 1.7 and target level 1.7.Full recompilation is required because no incremental change information is available. This is usually caused by clean builds or changing compiler arguments.file or directory '/home/svd/WI/laz/android/AppLAMWProject4/build-types/debug/java', not foundCompiling with JDK Java compiler API./home/svd/WI/laz/android/App LAMWProject4/src/org/lamw/applamwproject4/android-28/App.java:40: error: duplicate class: org.lamw.applamwproject4.Apppublic class App extends Activity {       ^/home/svd/WI/laz/android/AppLAMWProject4/src /org/lamw/applamwproject4/android-28/Controls.java:152: error: duplicate class: org.lamw.applamwproject4.Constclass Const {^/home/svd /WI/laz/android/AppLAMWProject4/src/org/lamw/applamwproject4/android- 28/Controls.java:162: error: duplicate class: org.lamw.applamwproject4.jFormclass jForm {^/home/svd/WI/laz/android/A ppLAMWProject4/src/org/lamw/applamwproject4/android- 28/Controls.java:1647: error: duplicate class: org.lamw.applamwproject4.Controlspublic class Controls {                ^/home/svd/WI/laz/android/AppLAMWProject4/src/org/lamw/applamwproje ct4/android-28/jCommons.java:19: error: duplicate class: org.lamw.applamwproject4.jCommonspublic class jCommons {       ^Note: Some input files use or override a deprecated API.Note: Recompile with -Xlint:deprecation for details.5 errors > Task :compileDebugJavaWithJavac FAILED:compileDebugJavaWithJavac (Thread[Daemon worker Thread 4,5,main]) completed. Took 3.511 secs. FAILURE: Build failed with an exception. * What went wrong:Execution failed for task ':compileDebugJavaWithJavac'.> Compilation failed; see the compiler error output for details.  Thank you for any advise. Info about environment: Linux Mint 19, openjdk 11.0.6 2020-01-14 OpenJDK Runtime Environment (build 11.0.6+10-post- Ubuntu-1ubuntu118.04.1) OpenJDK 64-Bit Server VM (build 11.0.6+10-post-Ubuntu-1ubuntu118.04.1, mixed mode, sharing) Gradle 5.1 ------------------------------------------------------------ Build time:   2019-01-02 18:57:47 UTC Revision:     d09c2e354576ac41078c322815cc6db2b66d976e Kotlin DSL:   1.1.0 Kotlin:       1.3.11 Groovy:       2.5.4 Ant:          Apache Ant(TM) version 1.9.13 compiled on July 10 2018 JVM:          11.0.6 (Ubuntu 11.0.6+10-post-Ubuntu-1ubuntu118.04.1) OS:           Linux 5.3.0-45-generic amd64 ---------------------------------------------------------------------- Thyphoon · 2020-04-14 11:49 I think your java is too modern, If you where using JDK ill say you should downgrade to 8, but I dont know about openjdk, sorry. can you try to downgrade openjdk to ver 8 and see if it works? according to: https://openjdk.java.net/projects/jdk/11/: JDK 11 JDK 11 is the open-source reference implementation of version 11 of the Java SE Platform as specified by by JSR 384 in the Java Community Process. and in the LAMW_Getting_Started.txt it states that .Java JDK 8 : [recommended!!!] ---------------------------------------------------------------------- DonAlfredo · 2020-04-14 13:26 You have two directories with the same sources: /home/svd/WI/laz/android/AppLAMWProject4/src/org/lamw/applamwproject4/ android-28/ and /home/svd/WI/laz/android/AppLAMWProject4/src/org/lamw/applamwproject4/ Just delete the "android-28" directory (or save it somewhere outside the source-directory in case I am wrong).