Recent

Author Topic: Error components in Lamw  (Read 2079 times)

marcos-ebm

  • Jr. Member
  • **
  • Posts: 51
Error components in Lamw
« on: January 06, 2024, 02:41:53 pm »
[I don't speak English]

Hello everybody.
All the components in the list below have an error, just playing in the Designer Form and compiling, the error appears

Android Bridges
- JWebView

Android Bridges Extra
- JUSSDService
- JIncomingCallWidget
- JSMSWidgetProvider

Android Bridges AppCompat
- KToyButton
- JSFirebasePushNotificationListener
- JSTextInput

Has anyone experienced this and managed to resolve it?

JDK 11 + GRADLE 6.7.3
LAMW = 0.8.6.3
Laz4Android2.2.2
Windows 11 and Windows 10 both 64
Lazarus 3.0 / LAMW 0.8.6.4 - Gradle 8.5 - Jdk 21 - Ndk 21e - Windows 11

jmpessoa

  • Hero Member
  • *****
  • Posts: 2330
Re: Error components in Lamw
« Reply #1 on: January 06, 2024, 02:57:42 pm »
Hi,  marcos-ebm!

I will try some fix!

Thank you!

PS.  KToyButton is just a "prove of concept" for Kotlin ... you can try the demo "AppKToyButtonDemo1"
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

marcos-ebm

  • Jr. Member
  • **
  • Posts: 51
Re: Error components in Lamw
« Reply #2 on: January 06, 2024, 03:06:58 pm »
valeu Pessoa, estou realmente gostando do Lamw :) :)
aos poucos vou pegando a pratica do negocio


I'm really enjoying Lamw :) :)
Little by little I'm starting to practice the business
Lazarus 3.0 / LAMW 0.8.6.4 - Gradle 8.5 - Jdk 21 - Ndk 21e - Windows 11

marcos-ebm

  • Jr. Member
  • **
  • Posts: 51
Re: Error components in Lamw
« Reply #3 on: January 06, 2024, 03:32:54 pm »
About the KToy demo

It is giving error when compiling
Value 'C:\Program Files\Java\jdk1.8.0_151' given for org.gradle.java.home Gradle property is invalid (Java home supplied is invalid)

I had to go to gladle.properties and change
in
org.gradle.java.home=C\:\\Program Files\\Java\\jdk1.8.0_151
for
org.gradle.java.home=MyDirectoryJdk

now the Demo works, but if I create a project from scratch and add the KToyButton component, it gives an error



---------------------
A respeito do demo KToy

Ele está dando erro ao compilar
Value 'C:\Program Files\Java\jdk1.8.0_151' given for org.gradle.java.home Gradle property is invalid (Java home supplied is invalid)

tive que ir no gladle.properties e mudar
de
org.gradle.java.home=C\:\\Program Files\\Java\\jdk1.8.0_151
para
org.gradle.java.home=MeuDiretorioJdk

agora o Demo funciona, porem se eu criar um projeto do zero e colocar o componente KToyButton, ele dá erro
Lazarus 3.0 / LAMW 0.8.6.4 - Gradle 8.5 - Jdk 21 - Ndk 21e - Windows 11

jmpessoa

  • Hero Member
  • *****
  • Posts: 2330
Re: Error components in Lamw
« Reply #4 on: January 11, 2024, 11:19:18 pm »
Partially fixed!

Thank you!

PS.
Before try to use "jsFirebasePushNotificationListener" component:

try "AppCompatFirebasePushNotificationListenerDemo1"
and study the doc "how_to_handling_firebase_push_notification.txt" about how to get your "google-services.json" file!
« Last Edit: January 12, 2024, 12:41:01 am by jmpessoa »
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

marcos-ebm

  • Jr. Member
  • **
  • Posts: 51
Re: Error components in Lamw
« Reply #5 on: January 12, 2024, 01:19:48 am »
Partially fixed!

Thank you!

PS.
Before try to use "jsFirebasePushNotificationListener" component:

try "AppCompatFirebasePushNotificationListenerDemo1"
and study the doc "how_to_handling_firebase_push_notification.txt" about how to get your "google-services.json" file!


I tried to compile AppCompatFirebasePushNotificationListenerDemo1, but it doesn't compile:
Execution failed for task ':processDebugMainManifest'.

I also tried to create another JSON file using GOOGLE and it still gives the same error when compiling



Lazarus 3.0 / LAMW 0.8.6.4 - Gradle 8.5 - Jdk 21 - Ndk 21e - Windows 11

marcos-ebm

  • Jr. Member
  • **
  • Posts: 51
Re: Error components in Lamw
« Reply #6 on: January 12, 2024, 01:34:36 am »
just remembering that WebView and TextInput are compiling normally  :D :D :D
Lazarus 3.0 / LAMW 0.8.6.4 - Gradle 8.5 - Jdk 21 - Ndk 21e - Windows 11

jmpessoa

  • Hero Member
  • *****
  • Posts: 2330
Re: Error components in Lamw
« Reply #7 on: January 13, 2024, 05:54:50 pm »
Quote
I tried to compile AppCompatFirebasePushNotificationListenerDemo1, but it doesn't compile:
Execution failed for task ':processDebugMainManifest'.

Go to project folder open "AndroidManifest.xml" and  change:

Quote
<service android:name=".LAMWFirebaseMessagingService" android:stopWithTask="false">

to

Quote
<service android:name=".LAMWFirebaseMessagingService" android:stopWithTask="false" android:exported="true">
Lamw: Lazarus Android Module Wizard
https://github.com/jmpessoa/lazandroidmodulewizard

 

TinyPortal © 2005-2018