Recent

Author Topic: LAMW complaining about "AndroidWidget not found"  (Read 10801 times)

maurobio

  • Hero Member
  • *****
  • Posts: 623
  • Ecology is everything.
    • GitHub
LAMW complaining about "AndroidWidget not found"
« on: December 21, 2021, 01:24:30 pm »
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,

« Last Edit: December 23, 2021, 02:01:50 pm by maurobio »
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 2.0.12 - FPC 3.2.0 on GNU/Linux Mint 19.1, Lubuntu 18.04, Windows XP SP3, Windows 7 Professional, Windows 10 Home

jmpessoa

  • Hero Member
  • *****
  • Posts: 2317
Re: LAMW complaining about "AndroidWiget not found"
« Reply #1 on: December 21, 2021, 07:20:31 pm »

very  weird....



But, what about add "AndroidWidget" to "uses"?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

maurobio

  • Hero Member
  • *****
  • Posts: 623
  • Ecology is everything.
    • GitHub
Re: LAMW complaining about "AndroidWidget not found"
« Reply #2 on: December 21, 2021, 07:44:20 pm »
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,
« Last Edit: December 23, 2021, 02:02:19 pm by maurobio »
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 2.0.12 - FPC 3.2.0 on GNU/Linux Mint 19.1, Lubuntu 18.04, Windows XP SP3, Windows 7 Professional, Windows 10 Home

jmpessoa

  • Hero Member
  • *****
  • Posts: 2317
Re: LAMW complaining about "AndroidWiget not found"
« Reply #3 on: December 21, 2021, 08:01:17 pm »

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?
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

maurobio

  • Hero Member
  • *****
  • Posts: 623
  • Ecology is everything.
    • GitHub
Re: LAMW complaining about "AndroidWidget not found"
« Reply #4 on: December 21, 2021, 08:49:23 pm »
Hi, @jmpessoa!

Quote
Please, try a simple "Run" -> "Build", it works/Success ?

Yes, but just with an "empty" module (without any GUI controls).

Quote
Can 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,
« Last Edit: December 23, 2021, 02:02:51 pm by maurobio »
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 2.0.12 - FPC 3.2.0 on GNU/Linux Mint 19.1, Lubuntu 18.04, Windows XP SP3, Windows 7 Professional, Windows 10 Home

jmpessoa

  • Hero Member
  • *****
  • Posts: 2317
Re: LAMW complaining about "AndroidWiget not found"
« Reply #5 on: December 22, 2021, 02:22:06 am »
Quote
Should 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)
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

Mongkey

  • Sr. Member
  • ****
  • Posts: 433
Re: LAMW complaining about "AndroidWiget not found"
« Reply #6 on: December 22, 2021, 10:14:18 am »
Quote
Should 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.
« Last Edit: December 22, 2021, 10:58:16 am by Mongkey »

loaded

  • Hero Member
  • *****
  • Posts: 853
Re: LAMW complaining about "AndroidWiget not found"
« Reply #7 on: December 22, 2021, 04:54:25 pm »
There seems to be a LAMW compatibility issue with Lazarus Version 2.3.0.
You can continue your studies with 2.0.12.
« Last Edit: December 22, 2021, 07:44:26 pm by loaded »
Check out  loaded on Strava
https://www.strava.com/athletes/109391137

maurobio

  • Hero Member
  • *****
  • Posts: 623
  • Ecology is everything.
    • GitHub
Re: LAMW complaining about "AndroidWidget not found"
« Reply #8 on: December 22, 2021, 08:26:11 pm »
Hi, @jmpessoa, @Mongkey, @loaded!

Quote
Try 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.

Quote
There 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,
« Last Edit: December 23, 2021, 02:03:34 pm by maurobio »
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 2.0.12 - FPC 3.2.0 on GNU/Linux Mint 19.1, Lubuntu 18.04, Windows XP SP3, Windows 7 Professional, Windows 10 Home

Mongkey

  • Sr. Member
  • ****
  • Posts: 433
Re: LAMW complaining about "AndroidWiget not found"
« Reply #9 on: December 23, 2021, 10:12:57 am »
Try using another installer like fpcupdeluxe, may be your problem gone, sometimes trying another tools are best scenario  :D

maurobio

  • Hero Member
  • *****
  • Posts: 623
  • Ecology is everything.
    • GitHub
Re: LAMW complaining about "AndroidWidget not found"
« Reply #10 on: December 23, 2021, 02:10:26 pm »
Hi, @Mongkey!

Quote
Try 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,

UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 2.0.12 - FPC 3.2.0 on GNU/Linux Mint 19.1, Lubuntu 18.04, Windows XP SP3, Windows 7 Professional, Windows 10 Home

loaded

  • Hero Member
  • *****
  • Posts: 853
Re: LAMW complaining about "AndroidWidget not found"
« Reply #11 on: December 23, 2021, 02:26:00 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. ;D

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.
Check out  loaded on Strava
https://www.strava.com/athletes/109391137

maurobio

  • Hero Member
  • *****
  • Posts: 623
  • Ecology is everything.
    • GitHub
Re: LAMW complaining about "AndroidWidget not found"
« Reply #12 on: December 23, 2021, 02:33:41 pm »
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,
UCSD Pascal / Burroughs 6700 / Master Control Program
Delphi 7.0 Personal Edition
Lazarus 2.0.12 - FPC 3.2.0 on GNU/Linux Mint 19.1, Lubuntu 18.04, Windows XP SP3, Windows 7 Professional, Windows 10 Home

madmax

  • Newbie
  • Posts: 3
Re: LAMW complaining about "AndroidWidget not found"
« Reply #13 on: February 29, 2024, 02:35:33 pm »
Hi, I resolved this problem by rebuilding Lazarus IDE, when completed the problem was gone.

 

TinyPortal © 2005-2018