Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Firebase and Qt 5.13.0 - 'Color types not allowed...'

Firebase and Qt 5.13.0 - 'Color types not allowed...'

Scheduled Pinned Locked Moved Solved Mobile and Embedded
2 Posts 1 Posters 427 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Montjet
    wrote on last edited by Montjet
    #1

    Hi,
    I am trying to update the Android application from Qt 5.11.3 to Qt 5.13.0.
    I had a problem with Firebase, so I changed the version of these packages to the latest:

        compile 'com.google.firebase:firebase-core:+'
        compile 'com.google.firebase:firebase-auth:18.1.0'
        compile 'com.google.firebase:firebase-messaging:19.0.1'
        compile 'com.google.firebase.messaging.cpp:firebase_messaging_cpp@aar'
        compile 'com.google.android.gms:play-services-base:8.4.0'
    

    but now, I got this error:

    A:\build_ARMv74\android-build\build\intermediates\res\merged\debug\values\values.xml:3579:42-49: AAPT: Color types not allowed (at 'statusBarBackground' with value '#000000').
    

    I have not defined 'statusBarBackground' property.

    And when I replaced these lines:

    compile 'com.android.support:support-v4:27.0.0'
    compile 'com.android.support:appcompat-v7:27.0.0'
    compile 'com.android.support:design:27.0.0'
    compile 'com.android.support:cardview-v7:27.0.0'
    compile 'com.android.support:recyclerview-v7:27.0.0'
    

    With these:

    compile 'androidx.core:core:1.0.0'
    compile 'androidx.appcompat:appcompat:1.0.0'
    compile 'com.google.android.material:material:1.0.0-alpha1'
    compile 'androidx.cardview:cardview:1.0.0'
    compile 'androidx.recyclerview:recyclerview:1.0.0'
    

    I got error:

    Error: more than one library with package name 'androidx.vectordrawable'
    

    Any idea how to fix it?

    M 1 Reply Last reply
    0
    • M Montjet

      Hi,
      I am trying to update the Android application from Qt 5.11.3 to Qt 5.13.0.
      I had a problem with Firebase, so I changed the version of these packages to the latest:

          compile 'com.google.firebase:firebase-core:+'
          compile 'com.google.firebase:firebase-auth:18.1.0'
          compile 'com.google.firebase:firebase-messaging:19.0.1'
          compile 'com.google.firebase.messaging.cpp:firebase_messaging_cpp@aar'
          compile 'com.google.android.gms:play-services-base:8.4.0'
      

      but now, I got this error:

      A:\build_ARMv74\android-build\build\intermediates\res\merged\debug\values\values.xml:3579:42-49: AAPT: Color types not allowed (at 'statusBarBackground' with value '#000000').
      

      I have not defined 'statusBarBackground' property.

      And when I replaced these lines:

      compile 'com.android.support:support-v4:27.0.0'
      compile 'com.android.support:appcompat-v7:27.0.0'
      compile 'com.android.support:design:27.0.0'
      compile 'com.android.support:cardview-v7:27.0.0'
      compile 'com.android.support:recyclerview-v7:27.0.0'
      

      With these:

      compile 'androidx.core:core:1.0.0'
      compile 'androidx.appcompat:appcompat:1.0.0'
      compile 'com.google.android.material:material:1.0.0-alpha1'
      compile 'androidx.cardview:cardview:1.0.0'
      compile 'androidx.recyclerview:recyclerview:1.0.0'
      

      I got error:

      Error: more than one library with package name 'androidx.vectordrawable'
      

      Any idea how to fix it?

      M Offline
      M Offline
      Montjet
      wrote on last edited by
      #2

      Fixed - gradle version was too old

      1 Reply Last reply
      2

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved