Other B4A v9.30 BETA has been released

Discussion in 'Android Questions' started by Erel, Jul 1, 2019.

  1. Erel

    Erel Administrator Staff Member Licensed User

    I'm happy to release B4A v9.30 BETA. This update adds support for the new AndroidX SDK.

    [​IMG]

    AndroidX SDK replaces the Android Support Library SDK. Android Support Library is no longer maintained and new resources such as the latest versions of Firebase libraries depend on AndroidX.

    With B4A v9.30 you can continue to use the old Android Support Library or switch to AndroidX. Switching to AndroidX is simple: https://www.b4x.com/android/forum/threads/androidx-sdk.107236/

    Improvements:
    • Support for AndroidX SDK.
    • Jetifier tool that creates AndroidX versions of libraries. Note that this step isn't needed for most libraries.

      [​IMG]

    • Auto bookmarks feature:

      [​IMG]
      • Recent code positions and designer layouts appear as tabs in the window title.
      • The IDE decides on the list of tabs based on several factors (recency, modifications and others).
      • The list is saved together with the project and restored when the project is loaded.
    • Ctrl + Click on layout files from the code:

      [​IMG]
    • B4A Sdk Manager v3.50 is included. It supports AndroidX resources.
    • Issue with BaseFolder in command line builder fixed.
    • Latest versions of internal libraries are included. TabStripViewPager is an internal library now.
    • Bug fixes and other minor improvements.

    Developers who are eligible for a free upgrade will receive an email with upgrade instructions.
    Remember that this is a beta version!
     
    Last edited: Jul 1, 2019
  2. Peter Simpson

    Peter Simpson Expert Licensed User

    Thank you Erel,
    I'm testing it right now, bur for me so far so gooooooooooooood. My 2 biggest apps are still assembling and running perfect on both Android 9 & 10.

    Keep up the greeeeeeeeeeeeat work...
     
  3. Erel

    Erel Administrator Staff Member Licensed User

    The real test is to open B4A Sdk Manager and update the recommended items. It will show a message about AndroidX and you will then compile your app with AndroidX SDK.

    You can always go back to the old SDK by downloading the ready to run SDK.
     
    mendiburen likes this.
  4. Peter Simpson

    Peter Simpson Expert Licensed User

    That's the first things that I did Erel after reading above that B4A Sdk Manager being updated to V3.50.

    The amount of preselected items were phenomenal, there are loads of them. I've now assembled 5 of my clients packages with absolutely no issues whatsoever.

    Btw I also ran the Jetifier tool, there's just 2 libs that it didn't appear to like too much (or whatever).

    Thanks again Erel...
     
    Erel likes this.
  5. scsjc

    scsjc Well-Known Member Licensed User

    Work Perfect !!!
    Great job, ... thank you very much


    7 years ago, I decided to try B4A, it was one of the best decisions made in my life.
    A pleasure to work with a tool like B4A, and a human support from EREL and all the collaborators of this forum.

    Greetings to all
     
    Last edited: Jul 1, 2019
  6. Erel

    Erel Administrator Staff Member Licensed User

    I saw it as well (AcceleratedSurface and another one). The error happens in the Android SDK tool. Most libraries don't need to be "jetified" anyway so you can ignore those errors.
     
    Peter Simpson likes this.
  7. Erel

    Erel Administrator Staff Member Licensed User

    There was a bug in beta #1 related to Android Support Library and usages of #Extends attribute. Beta #2 was uploaded. It fixes this issue.
     
    Jorge M A and Peter Simpson like this.
  8. Erel

    Erel Administrator Staff Member Licensed User

  9. omarruben

    omarruben Member Licensed User

    so far pretty goooood!!!! Thank you
     
    Erel likes this.
  10. alex2103

    alex2103 Member Licensed User

    andoidX:
    Code:
    java.lang.RuntimeException: Unable to instantiate application android.support.multidex.MultiDexApplication: java.lang.ClassNotFoundException: Didn't find class "android.support.multidex.MultiDexApplication" on path: DexPathList[[zip file "/system/framework/org.apache.http.legacy.boot.jar", zip file "/data/app/com.ua.globus.alarm-38NZBw7KW2Ii4J7vwYv5qg==/base.apk"],nativeLibraryDirectories=[/data/app/com.ua.globus.alarm-38NZBw7KW2Ii4J7vwYv5qg==/lib/arm64, /system/lib64, /product/lib64]]
     
  11. moster67

    moster67 Expert Licensed User

    Already reported and temporary fix is available:
    https://www.b4x.com/android/forum/t...t-work-with-multidex-true.107232/#post-670553
     
    Erel and Peter Simpson like this.
  12. José J. Aguilar

    José J. Aguilar Active Member Licensed User

    Updated and AndroidX installed. Everything has worked fine here¡¡
     
    Sergio Castellari likes this.
  13. krlos2004

    krlos2004 Member Licensed User

    very good
     
  14. kisoft

    kisoft Active Member Licensed User

    HI, this error occurs during compilation
    Code:
    B4A line: 87
    cn.SetStyle(cn1)
    src\aaa\bbb\firebasemessaging.java:
    192: error: package android.support.v4.app.NotificationCompat does not exist
    _cn.SetStyle((android.support.v4.app.NotificationCompat.Style)(_cn1.getObject()));
     
  15. alex2103

    alex2103 Member Licensed User

  16. Erel

    Erel Administrator Staff Member Licensed User

    Have you ran the Jetify tool?
     
  17. kisoft

    kisoft Active Member Licensed User

    HI,
    yes

    All set. Nothing to do.
     
  18. Massimiliano

    Massimiliano Member Licensed User

    I ran Jetify tool...

    I have a similar issue during compile:
    actnbr.java:894: error: package android.support.v4.view does not exist
    mostCurrent._tablayout.SetViewPager((android.support.v4.view.ViewPager)(mostCurrent._vp.getObject()));
     
  19. Erel

    Erel Administrator Staff Member Licensed User

    Which library causes this error? Where is the relevant code?

    Make sure that the library is not in the internal libraries folder as it will not be jetified.
     
  20. kisoft

    kisoft Active Member Licensed User

    H
    NB6, NotificationBuilder
    Code:
    Dim sdkversion As Int
        
    Dim jo As JavaObject
        sdkversion = jo.InitializeStatic(
    "android.os.Build$VERSION").GetField("SDK_INT")
        
    If sdkversion < 26 Then
            
    Dim cn As NotificationBuilder
            
    Dim cn1 As NotificationBigTextStyle
            
    If cn1.IsInitialized = False Then cn1.Initialize
            
    If  cn.IsInitialized = False Then  cn.Initialize
            cn1.BigText = Message.GetData.Get(
    "title")  & CRLF & Message.GetData.Get("body")
            cn1.SummaryText = 
    "Koniec Powiadomienia"
            cn.SmallIcon = 
    "icon"
            cn.DefaultLight = 
    True
            cn.DefaultVibrate = 
    False
            cn.DefaultSound = 
    True
            cn.ContentInfo = 
    ""
            cn.AutoCancel = 
    True
    '        cn.ContentTitle = "Notifica Pizza Eat"
    '        cn.ContentText = "Notifica Pizza Eat"
            cn.ContentTitle = Message.GetData.Get("title")
            cn.ContentText = Message.GetData.Get(
    "body")
       
            cn.setActivity(Main)
            cn.SetStyle(cn1)
            cn.Notify(
    1)
    In the additional library folder, I have two NotificationBuilder and NotificationBuilder.androidx.
     
    Last edited: Jul 2, 2019
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