LAMW complaining about "AndroidWidget not found" lazarus / 43-Android ---------------------------------------------------------------------- maurobio · 2021-12-21 12:24 Dear ALL, I just installed LAMW Manager from here: https://github.com/dosza/LAMWManager-win, installing it according to the instructions in that page. Installation took a long time but, as far as I could see, it was pretty successful. Then, I started following the fine tutorial here: https://drive.google.com/file/d/1CeDDpuDfRwYrKpN7VHbossH6GfZUfqjm/view to create a "Hello, World" app. I created a new LAMW project as a "LAMW GUI Android Module" but when I attempted to add a "jButton" from the "Android Bridges" components tab, I got the error:  "Error: unit not found: AndroidWidget" and no button was added to the module. Have I done something wrong? Thanks in advance for any assistance you can provide! With best wishes, ---------------------------------------------------------------------- jmpessoa · 2021-12-21 18:20 very  weird.... But, what about add "AndroidWidget" to "uses"? ---------------------------------------------------------------------- maurobio · 2021-12-21 18:44 Hi, @jmpessoa! Thanks for your reply. The "AndroidWidget" unit is already included in both the project source and the main unit. I attach the project files for your perusal. Very weird, and above all, quite frustrating, as I was eager to give the first steps towards creating Android apps with FPC/Lazarus/LAMW.  Again, thanks for your help and patience! With best wishes, ---------------------------------------------------------------------- jmpessoa · 2021-12-21 19:01 Please, try a simple "Run" -> "Build", it works/Success ? note: In my LAMW system "AndroidWidget.pas" unit is here: C:\laz4android2.0.12\components\androidmodulewizard\android_bridges Can you find ""AndroidWidget.pas" in your LAMW  system? ---------------------------------------------------------------------- maurobio · 2021-12-21 19:49 Hi, @jmpessoa! QuotePlease, try a simple "Run" -> "Build", it works/Success ? Yes, but just with an "empty" module (without any GUI controls). QuoteCan you find ""AndroidWidget.pas" in your LAMW  system? It is here: C:\lamw_manager\LAMW\lazandroidmodulewizard\android_bridges\ Notice: everything related to LAMW has been installed by the LAMW Manager int the C:\lamw_manager folder (and below). Should I remove everything, and re-install?  Thank you very much! With best wishes, ---------------------------------------------------------------------- jmpessoa · 2021-12-22 01:22 QuoteShould I remove everything, and re-install? Try to re-install only LAMW packages.... Packages installations order/sequence:      tfpandroidbridge_pack.lpk (in "..../android_bridges" folder)      lazandroidwizardpack.lpk (in ""..../android_wizard" folder)      amw_ide_tools.lpk (in "..../ide_tools" folder) ---------------------------------------------------------------------- Mongkey · 2021-12-22 09:14 Quote from: jmpessoa on December 22, 2021, 02:22:06 amQuoteShould I remove everything, and re-install? Try to re-install only LAMW packages.... Packages installations order/sequence:      tfpandroidbridge_pack.lpk (in "..../android_bridges" folder)      lazandroidwizardpack.lpk (in ""..../android_wizard" folder)      amw_ide_tools.lpk (in "..../ide_tools" folder) +1, if you got no visible components after placing (only white form after saving) n got no error, reinstalling is the best solution also. ---------------------------------------------------------------------- loaded · 2021-12-22 15:54 There seems to be a LAMW compatibility issue with Lazarus Version 2.3.0. You can continue your studies with 2.0.12. ---------------------------------------------------------------------- maurobio · 2021-12-22 19:26 Hi, @jmpessoa, @Mongkey, @loaded! QuoteTry to re-install only LAMW packages.... Reinstalling the LAMW packages did not solve the problem. The error message about the missing "AndroidWidget.pas" still arises. QuoteThere seems to be a LAMW compatibility issue with Lazarus Version 2.3.0. If this is really the case, then installing LAMW Manager using the full installation package from here: https://github.com/dosza/LAMWManager-win is pretty useless, because Lazarus version 2.3.0 is the version which comes bundled with that "All in One!" package. I already use Lazarus 2.0.12 for my regular work in desktop development for both MS-Windows and GNU/Linux and perhaps should try and install LAMW Manager in that same platform (as per "Option a" here: https://github.com/jmpessoa/lazandroidmodulewizard). Thank you very much. With best wishes, ---------------------------------------------------------------------- Mongkey · 2021-12-23 09:12 Try using another installer like fpcupdeluxe, may be your problem gone, sometimes trying another tools are best scenario ---------------------------------------------------------------------- maurobio · 2021-12-23 13:10 Hi, @Mongkey! QuoteTry using another installer like fpcupdeluxe, may be your problem gone, sometimes trying another tools are best scenario  Yes, I may try that too. Anyway, "Option a" from here http://here: https://github.com/jmpessoa/lazandroidmodulewizard seems to be as simple as installing any other Lazarus package. The real trouble is installing the large amount of ugly and cumbersome bloatware which constitute the so-called "infrastructure" for developing even the most humble Android apps (sort of using an ICBM to kill a mosquito...). With best wishes, ---------------------------------------------------------------------- loaded · 2021-12-23 13:26 Quote from: maurobio on December 23, 2021, 02:10:26 pm(sort of using an ICBM to kill a mosquito...). Don't despise the mosquitos! Even if a mosquitois not of greater art than a cheetah, it is not of lesser art. In my spare time, I manually create a working environment guide for android. Then I will support it with a video and post it here as soon as possible. ---------------------------------------------------------------------- maurobio · 2021-12-23 13:33 Hi, @loaded! As a biologist, I surely do not despise any living critter! I just intended to use a metaphor (perhaps a lame one at that). Anyway, regarding mosquitoes, I have been bitten by many, some carrying dengue and zika fever viruses - but have never been bitten by a cheetah! . With best wishes, ---------------------------------------------------------------------- madmax · 2024-02-29 13:35 Hi, I resolved this problem by rebuilding Lazarus IDE, when completed the problem was gone. ---------------------------------------------------------------------- nullpointer · 2025-06-20 22:52 Quote from: madmax on February 29, 2024, 02:35:33 pmHi, I resolved this problem by rebuilding Lazarus IDE, when completed the problem was gone. thanks dude, you save my time just rebuild the Lazarus IDE to solve the problem, Tools - Build Lazarus with Profile: Normal IDE Note : Install Lazarus + FPC + LAMW from fpcupdeluxe In my case, changing min sdk version to 21 and target sdk version to 34 also solved the problem. By default LAMW set min sdk version to 16 ---------------------------------------------------------------------- Alcatiz · 2025-06-23 06:03 Hi all! I encountered the same problem after a clean installation of LAMW and could solve it with a rebuild of the IDE. The problem occured in a new installation under Linux and under Windows, with two different versions of Lazarus, so it seems it's not related to any particular version of the IDE. ---------------------------------------------------------------------- nobody.00 · 2025-06-24 02:14 This is a know issue, try restart the IDE and will works