[SOLVED] LAMW : unable to build AppGridViewDemo1 lazarus / 43-Android ---------------------------------------------------------------------- tintinux · 2016-09-29 09:19 Hi After update and reinstall, I get these messages during java compilation : 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 Messages, Hints: 2Note: Duplicate unit "controls" in "controls", orphaned ppu "C :\lamw\lazandroidmodulewizard\demos\Eclipse\AppGridViewDemo1\obj\contr ols\controls.o"Note: Duplicate unit "controls" in "LCLBase 1.5", ppu="C:\lamw\laz4android\lcl\units\arm-android\controls.ppu", source="C:\lamw\laz4android\lcl\controls.pp"Compile Project, OS: android, CPU: arm, Target: C:\lamw\lazandroidmodulewizard\demos\Eclips e\AppGridViewDemo1\libs\armeabi\libcontrols.so: SuccessBuilding APK... : Exit code 1, Errors: 101Panic:      [echo] ----------Panic:      [echo] Resolving Dependencies for AppGridViewDemo1...Panic: [dependency] Ordered libraries:Panic: [dependency] Panic: [dependency] ------------------Panic:      [echo] ----------Panic:      [echo] Building Libraries with 'debug'...Panic:    [subant] No sub-builds to iterate onPanic: Panic: -code-gen:Panic: [mergemanifest] Merging AndroidManifest files into one.Panic: [mergemanifest] Manifest merger disabled. Using project manifest only.Panic:      [echo] Handling aidl files...Panic:      [aidl] No AIDL files to compile.Panic:      [echo] ----------Panic:      [echo] Handling RenderScript files...Panic:      [echo] ----------Panic:      [echo] Handling Resources...Panic:      [aapt] Generating resource IDs...Panic:      [echo] ----------Panic:    [echo] Handling BuildConfig class...Panic: [buildconfig] Generating BuildConfig class.Panic: Panic: -pre-compile:Panic: Panic: -compile:Panic:     [javac] Compiling 9 source files to C:\lamw\lazand roidmodulewizard\demos\Eclipse\AppGridViewDemo1\bin\classesPanic:     [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future releasePanic:     [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future releasePanic:     [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.Panic:     [javac] C:\lamw \lazandroidmodulewizard\demos\Eclipse\AppGridViewDemo1\src\com\example \appgridviewdemo1\jGridView.java:108: error: cannot find symbolPanic:   [javac]         listLayout.setLayoutParams(new GridView.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));Panic:     [javac]                                                            ^Panic:     [javac]   symbol:   variable LayoutParamsPanic:     [javac]   location: class jGridViewCustomAdapterPanic:     [javac] C:\lamw\lazandroidmodulewizar d\demos\Eclipse\AppGridViewDemo1\src\com\example\appgridviewdemo1\jGri dView.java:108: error: cannot find symbolPanic:     [javac]         listLayout.setLayoutParams(new GridView.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));Panic:     [javac]                                                                                       ^Panic:     [javac]   symbol:   variable LayoutParamsPanic:     [javac]   location: class jGridViewCustomAdapterPanic:     [javac] C:\ lamw\lazandroidmodulewizard\demos\Eclipse\AppGridViewDemo1\src\com\exa mple\appgridviewdemo1\jGridView.java:111: error: cannot find symbolPanic:     [javac]         itemLayout.setLayoutParams(new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));Panic:     [javac]                                                                  ^Panic:     [javac]   symbol:   variable LayoutParamsPanic:     [javac]   location: class jGridViewCustomAdapterPanic:     [javac] C:\lamw\lazandroidmodulewizar d\demos\Eclipse\AppGridViewDemo1\src\com\example\appgridviewdemo1\jGri dView.java:111: error: cannot find symbolPanic:     [javac]         itemLayout.setLayoutParams(new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));Panic:     [javac]                                                                                             ^Panic:     [javac]   symbol:   variable LayoutParamsPanic:     [javac]   location: class jGridViewCustomAdapterPanic:     [javac] C:\ lamw\lazandroidmodulewizard\demos\Eclipse\AppGridViewDemo1\src\com\exa mple\appgridviewdemo1\jGridView.java:118: error:  [repeated several time] cannot find symbolPanic:     [javac]         LayoutParams txtParam = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); //w,h        Panic:     [javac]                                                                           ^Panic:     [javac]   symbol:   variable LayoutParamsPanic:     [javac]   location: class jGridViewCustomAdapterPanic:     [javac] Note: C:\lamw\lazandroidmodulewizard\demos\Eclipse\AppGridViewDemo1\sr c\com\example\appgridviewdemo1\jGridView.java uses unchecked or unsafe operations.Panic:     [javac] Note: Recompile with -Xlint:unchecked for details.Panic:     [javac] 12 errorsPanic:     [javac] 3 warningsPanic: Panic: BUILD FAILEDPanic: C:\lamw\android-sdk- windows\tools\ant\build.xml:716: The following error occurred while executing this line:Panic: C:\lamw\android-sdk- windows\tools\ant\build.xml:730: Compile failed; see the compiler error output for details.Panic: Panic: Total time: 6 secondsPanic: tool stopped with exit code 1. Use context menu to get more information.Exception, Errors: 1Fatal: [Exception] Failed: Cannot build APK!  What can I do ? Regards ---------------------------------------------------------------------- Handoko · 2016-09-29 09:46 Hello tintinux. I've just svn updated to revision 499 and compile my old projects, I did not experience any issue so far. edited: I tested to compile/build AppGridViewDemo1, no problem too. How do you compile the project? I opened the project file, change the library path and click menu > Run > Project > Compile. I just got 2 hints but no error. ---------------------------------------------------------------------- tintinux · 2016-09-29 16:02 Hi The good new is that you can use svn. What is your command line or URL ? Can you commit ? GIT is a mess, specialy with LAMW and I loose a lot of time and quality with it. My issue is not during Pascal compilation, but afterwards when I build the APK with [LAMW] build APK and run. Paths are OK. I suppose there is another problem with java stuff not updated. Best regards ---------------------------------------------------------------------- Handoko · 2016-09-29 16:19 These are the commands I use to update LAMW from the web: Code: [Select]cd ~/Android svn up lazandroidmodulewizard.git I use Linux internal svn command. You can easily find free svn client from Sourceforge. My LAMW folder is: home/Android/lazandroidmodulewizard.git I'm using Lazarus 1.6 x86-64-linux-gtk2 FPC 3.0.0 + java-7-openjdk- amd64 + NDK R11C Android 7 (API 24). ---------------------------------------------------------------------- A.S. · 2016-09-29 18:27 svn export https://github.com/jmpessoa/lazandroidmodulewizard.git ~/LAMW ---------------------------------------------------------------------- jmpessoa · 2016-09-29 18:50 Hello tintinux! I updated  "jGridView.java"  and "AppGridViewDemo1" Thank you! ---------------------------------------------------------------------- tintinux · 2016-09-30 07:19 Hi After a new update of LAMW sources and rebuild of lazarus, it works fine : thanks ! Thanks also to have restored the svn-git bridge, SVN clients are much simpler and quicker to use than GIT clients. Probably because of the many files generated or updated automatically with LAMW. If we make changes in some source on our side, it looks impossible to "update" (git pull) other LAMW sources until we commit that changes.  Or there is something I don't know how. May be, it would be better to locate all generated files in some directory distinct from sources and not managed by git, but I realize it would be a huge and difficult task ! Best regards Tintinux