Android Question Problem with layout with B4a v. 9.30 lib DesignSupport

Lello1964

Well-Known Member
Licensed User
Longtime User
I have updated latest version B4a 9.30.

Compliling my app, i have this error :
B4X:
B4A Versione: 9.30
Java Versione: 11
Analisi del Codice.    (1.10s)
Building folders structure.    (0.48s)
Compilazione del codice.    (2.79s)
Compilazione del codice di layouts    (0.91s)
Organizzazione Librerie.    (0.00s)
   (AndroidX SDK)
Generazione file R.    (0.01s)
Compilazione del codice debugger.    (0.14s)
Compilazione del codice Java prodotto.    Error
B4A line: 1834
IME.ShowKeyboard(edt_omaggio)
src\jet\document\emidocument.java:5131: error: cannot access TextInputLayout
mostCurrent._ime.ShowKeyboard((android.view.View)(mostCurrent._edt_omaggio.getObject()));
                              ^
  class file for android.support.design.widget.TextInputLayout not found

Library used : DesignSupport ver. 3.00
B4X:
Private edt_omaggio As DSFloatLabelEditText

Sub Button5_Click
   edt_omaggio.Text=""
   IME.ShowKeyboard(edt_omaggio)
End Sub

with previus version B4a 9.00 i havn't problem.

how can solve ?
 

Lello1964

Well-Known Member
Licensed User
Longtime User
Based on the error message you are using an unjetified library. Run the jetifier tool.

Also make sure that the library is located in the additional libraries folder and not in the internal folder.

Jetfier won't start from B4a menu, i have tryed to strart it with .bat file but have this error :

B4X:
C:\Windows\system32>cd C:\Program Files (x86)\Anywhere Software\Basic4android

C:\Program Files (x86)\Anywhere Software\Basic4android>java -jar  Jetifier.jar
main._appstart (java line: 71)
java.lang.ArrayIndexOutOfBoundsException: 0
        at b4j.example.main._appstart(main.java:71)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at anywheresoftware.b4a.BA.raiseEvent2(BA.java:91)
        at anywheresoftware.b4a.BA.raiseEvent(BA.java:78)
        at b4j.example.main.start(main.java:37)
        at com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$8(LauncherImpl.java:863)
        at com.sun.javafx.application.PlatformImpl.lambda$runAndWait$7(PlatformImpl.java:326)
        at com.sun.javafx.application.PlatformImpl.lambda$null$5(PlatformImpl.java:295)
        at java.security.AccessController.doPrivileged(Native Method)
        at com.sun.javafx.application.PlatformImpl.lambda$runLater$6(PlatformImpl.java:294)
        at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
        at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
        at com.sun.glass.ui.win.WinApplication.lambda$null$3(WinApplication.java:177)
        at java.lang.Thread.run(Unknown Source)

??
 
Upvote 0

Lello1964

Well-Known Member
Licensed User
Longtime User
Do you see anything? Which version of Java are you using?


Start it like this:
B4X:
java -jar  Jetifier.jar "Path To Additional Libraries Folder"

  • Ok, now Jetfier start from .bat,
  • i use :C:\Program Files\Java\jdk-11.0.3\bin\javac.exe
But from menu i don't see nothing when i click it

after Jetifier i have some error, prblem not solved
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…