1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

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

Discussion in 'Android Questions' started by Lello1964, Jul 18, 2019.

  1. Lello1964

    Lello1964 Active Member Licensed User

    I have updated latest version B4a 9.30.

    Compliling my app, i have this error :
    Code:
    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
    Code:
    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 ?
     
  2. Erel

    Erel Administrator Staff Member Licensed 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.
     
  3. Lello1964

    Lello1964 Active Member Licensed User

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

    Code:
    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)
    ??
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Do you see anything? Which version of Java are you using?

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

    Lello1964 Active Member Licensed User

    • 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
     
  6. Lello1964

    Lello1964 Active Member Licensed User

    I don't know why, but ' have tryed to compile again and now Ok !!
     
  7. Erel

    Erel Administrator Staff Member Licensed User

    This is the mistake. You should download OpenJDK 11 from the link in the installation instructions: https://www.b4x.com/b4a.html
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    You need to clean the project (Ctrl + P) after running jetifier.
     
  9. Lello1964

    Lello1964 Active Member Licensed User

    I have donwloaded OpenJDK 11 from your link and confgured in B4A and now all work.

    Thanks Erel.
     
    Erel likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice