Java Question Problem building library for SMBj

Discussion in 'Libraries developers questions' started by DonManfred, Mar 28, 2019.

Similar threads

B4A Question mqttserver Error
B4A Question Classes are soon coming...
B4A Question multi-dex option
B4A Question B4A 7.80 and Jsch
B4A Question JSCH Library and B4A v7.80
  1. DonManfred

    DonManfred Expert Licensed User

    I am trying to build a Library wrap for this Github Project: SMBj.

    When i compile my project it stops with this message in the Compile windows.

    I´m not sure what the problem is or where to start to fix it.
    Should i use the sources of the jar(s) files i downloaded from maven?

    Any hint is highly welcome.
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Based on this: Uncaught translation error: com.android.dx.cf.code.SimException: signature-polymorphic method called without --min-sdk-version >= 26
    It uses a Java feature that is not available in older versions of Android.
     
  3. DonManfred

    DonManfred Expert Licensed User

    Do i need to set minsdk to 26 in this case?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    It will probably won't help as this parameter should be passed to the dexer tool (the IDE will not pass it). Send me the library and I'll try it here.
     
  5. DonManfred

    DonManfred Expert Licensed User

    Will do later today (after work) when i am @home. Or maybe in the lunchbreak.
     
    Last edited: Mar 29, 2019
  6. DonManfred

    DonManfred Expert Licensed User

    Download Example, library and Dependencies
    [link removed] (as it is a library not finished yet).
     
    Last edited: Mar 29, 2019
  7. Erel

    Erel Administrator Staff Member Licensed User

    I can compile it by adding the parameter to the dex tool. I will make it configurable. Note that it will make the app compatible with Android 8+.
     
  8. DonManfred

    DonManfred Expert Licensed User

    Like. :)
    That´s bad news :-( But i see it is nothing you can do anything about. As you wrote it used Features only available in Android 8+.
    I was hoping to make the lib available to older devices too. Android 4+ or 5+.

    At the end it depends on the people who asked me to do a wrap. :)

    PD: Maybe i should search for another SMB Library (maybe jcifs-ng) and do a wrap for this then.
     
    Last edited: Mar 29, 2019
  9. DonManfred

    DonManfred Expert Licensed User

    Is this already implemented in b4a 9.01?
    Just out of couriosity i want to try if the smbj library wrap works. :)
     
  10. Erel

    Erel Administrator Staff Member Licensed User

    No. It will be included in the next non-bug fixes version.
     
    DonManfred 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