Learn what Felgo offers to help your business succeed. Start your free evaluation today! Felgo for Your Business

Forums

OverviewFelgo 1 Support › Can't compile to android with API level below 26

Tagged: , ,

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #21394

    Federico

    Hello,

    I’m new to Felgo, and right now i’m trying to compile to android, but it seems impossible.

    I’m trying to compile the template provided by Felgo that has only a Page and the Felgo Logo.

     

    According to the documentation, the minimum api level is 16, but i can’t compile it. I get this kind of errors:

    merged/debug/values-ldltr-v21/values-ldltr-v21.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name ‘android:Widget.Material.Spinner.Underlined’.

     

    And like this, many more with different components.

    As i upgrade the API level, closer and closer to 26, the number of these errors goes down, and it only compiles successfully in API 26 (Android 8.0).

     

    Also, something i noticed is that the compiler is looking for the ndk in androidSDK/ndk-bundle, and does not take in consideration the path given to qtCreator. Is this normal?

     

    Thanks in advance!

    #21412

    Alex
    Felgo Team

    Hi,

    there is a difference between the minimum API level and the target API level. Felgo apps (and Qt apps in general) make use of later API level features, thus require a higher API level to compile against. They will still run on devices with lower API level, as Android is backwards compatible in that sense.

    Can you check the Qt forums or bug requests if a bug for Qt Creator is filed? As far as we know, the NDK path set in Qt Creator is respected, we did not experience such issues, nor have reports of that from our users.

    Cheers,
    Alex

    #23800

    Larry

    Could you elaborate on that point?  I have downloaded SDK’s for 21, 26, 29, 30.  I *assumed* that I should (under Qt Project) use the lowest API which supports the features I need.  So if I want to support Android 8 onwards, I would pick API 21

     

    Are you saying that I should always use the highest SDK available?  (30 at the current time)  If so, does this make my app incompatible with older versions of Android?  Do I have to set an android compatibility level somewhere else?

Viewing 3 posts - 1 through 3 (of 3 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Qt_Technology_Partner_RGB_475 Qt_Service_Partner_RGB_475_padded