API Warning when launching on Android 9



  • Since Android 9 Google detects "bad usage" of Android API and eventually displays a message when the app is started.

    see https://developer.android.com/about/versions/pie/restrictions-non-sdk-interfaces

    I use QT 5.11 (CPP & QML) and when I deploy on Android 9 this popup is displayed at 1st start:

    0_1535702355755_popup.jpg

    No problem so far on other platforms (Windows, Mac, iOS, Raspberry).

    Is there a workaround to remove this message, or is it planned to fix it ?

    Thank you.


  • Lifetime Qt Champion

    Hi,

    AFAIR, Qt 5.11 requires a higher version of Android to run your application. See here.

    [Edit: mixed API level and Android version]


  • Qt Champions 2018

    @SGaist reading that page I'd rather say the opposite: Android 9 is to new for Qt 5.11...



  • The best thing would obviously to not remove the message, but to find out what causes it - if it can be traced to some Qt function, then a workaround could be found. According to the linked document information about the non-SDK API usage can be logged.


  • Lifetime Qt Champion

    @aha_1980 you’re correct ! I misread the original post.



  • If I create a "Qt Quick Application - Empty" project and launch it on Android 9 emulator, I get all these "errors" in the logs (according to the Google Documentation):

    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ViewDrawableStates:[I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_background:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_padding:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_paddingLeft:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_paddingTop:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_paddingRight:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_paddingBottom:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_scrollX:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_scrollY:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_id:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_tag:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_fitsSystemWindows:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_focusable:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_focusableInTouchMode:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_clickable:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_longClickable:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_saveEnabled:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_duplicateParentState:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_visibility:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_drawingCacheQuality:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_contentDescription:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_soundEffectsEnabled:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_hapticFeedbackEnabled:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_scrollbars:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_fadingEdge:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_scrollbarStyle:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_scrollbarFadeDuration:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_scrollbarDefaultDelayBeforeFade:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_scrollbarSize:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_scrollbarThumbHorizontal:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_scrollbarThumbVertical:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_scrollbarTrackHorizontal:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_scrollbarTrackVertical:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_isScrollContainer:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_keepScreenOn:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_filterTouchesWhenObscured:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_nextFocusLeft:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_nextFocusRight:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_nextFocusUp:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_nextFocusDown:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_minWidth:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_minHeight:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_onClick:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_overScrollMode:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_paddingStart:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View_paddingEnd:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextAppearance_textColorHighlight:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextAppearance_textColor:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextAppearance_textColorHint:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextAppearance_textColorLink:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextAppearance_textSize:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextAppearance_typeface:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextAppearance_textStyle:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextAppearance_textAllCaps:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_editable:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_inputMethod:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_numeric:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_digits:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_phoneNumber:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_autoText:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_capitalize:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_bufferType:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_selectAllOnFocus:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_autoLink:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_linksClickable:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_drawableLeft:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_drawableTop:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_drawableRight:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_drawableBottom:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_drawableStart:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_drawableEnd:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_drawablePadding:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_textCursorDrawable:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_maxLines:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_maxHeight:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_lines:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_height:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_minLines:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_minHeight:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_maxEms:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_maxWidth:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_ems:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_width:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_minEms:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_minWidth:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_gravity:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_hint:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_text:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_scrollHorizontally:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_singleLine:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_ellipsize:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_marqueeRepeatLimit:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_includeFontPadding:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_cursorVisible:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_maxLength:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_textScaleX:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_freezesText:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_shadowColor:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_shadowDx:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_shadowDy:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_shadowRadius:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_enabled:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_textColorHighlight:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_textColor:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_textColorHint:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_textColorLink:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_textSize:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_typeface:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_textStyle:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_password:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_lineSpacingExtra:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_lineSpacingMultiplier:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_inputType:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_imeOptions:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_imeActionLabel:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_imeActionId:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_privateImeOptions:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_textSelectHandleLeft:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_textSelectHandleRight:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_textSelectHandle:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_textIsSelectable:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_textAllCaps:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ImageView_src:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ImageView_baselineAlignBottom:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ImageView_adjustViewBounds:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ImageView_maxWidth:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ImageView_maxHeight:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ImageView_scaleType:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ImageView_tint:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ImageView_cropToPadding:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextAppearance:[I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->Window:[I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->Window_windowBackground:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden method Landroid/graphics/drawable/StateListDrawable;->getStateCount()I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden method Landroid/graphics/drawable/StateListDrawable;->getStateDrawable(I)Landroid/graphics/drawable/Drawable; (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden method Landroid/graphics/drawable/StateListDrawable;->getStateSet(I)[I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mShape:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mGradient:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mOrientation:Landroid/graphics/drawable/GradientDrawable$Orientation; (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mGradientColors:[I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mPositions:[F (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mStrokeWidth:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mStrokeDashWidth:F (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mStrokeDashGap:F (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mRadius:F (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mRadiusArray:[F (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mPadding:Landroid/graphics/Rect; (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mWidth:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mHeight:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mInnerRadiusRatio:F (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mThicknessRatio:F (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mInnerRadius:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/GradientDrawable$GradientState;->mThickness:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->Window_windowFrame:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->View:[I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/NinePatchDrawable;->mNinePatchState:Landroid/graphics/drawable/NinePatchDrawable$NinePatchState; (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/NinePatchDrawable$NinePatchState;->mNinePatch:Landroid/graphics/NinePatch; (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/NinePatch;->mNativeChunk:J (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView:[I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->TextView_textAppearance:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ProgressBar:[I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ProgressBar_minWidth:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ProgressBar_maxWidth:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ProgressBar_minHeight:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ProgressBar_maxHeight:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ProgressBar_indeterminateDuration:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ProgressBar_progressDrawable:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ProgressBar_indeterminateDrawable:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden method Landroid/graphics/drawable/BitmapDrawable;->getTintMode()Landroid/graphics/PorterDuff$Mode; (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden method Landroid/graphics/drawable/BitmapDrawable;->getTint()Landroid/content/res/ColorStateList; (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/RotateDrawable$RotateState;->mPivotX:F (dark greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/RotateDrawable$RotateState;->mPivotXRel:Z (dark greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/RotateDrawable$RotateState;->mPivotY:F (dark greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/RotateDrawable$RotateState;->mPivotYRel:Z (dark greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/RotateDrawable$RotateState;->mFromDegrees:F (dark greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/graphics/drawable/RotateDrawable$RotateState;->mToDegrees:F (dark greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->SeekBar:[I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->SeekBar_thumb:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->SeekBar_thumbOffset:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Lcom/android/internal/R$attr;->switchStyle:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->Switch:[I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->Switch_thumb:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->Switch_track:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->Switch_switchTextAppearance:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->Switch_textOn:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->Switch_textOff:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->Switch_switchMinWidth:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->Switch_switchPadding:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->Switch_thumbTextPadding:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->Switch_showText:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->Switch_splitTrack:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->CompoundButton:[I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->CompoundButton_button:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ListView:[I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ListView_divider:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ListView_dividerHeight:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->CheckedTextView:[I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->CheckedTextView_checkMark:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->CalendarView:[I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->CalendarView_selectedDateVerticalBar:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->CalendarView_dateTextAppearance:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->CalendarView_weekDayTextAppearance:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->CalendarView_firstDayOfWeek:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->CalendarView_focusedMonthDateColor:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->CalendarView_selectedWeekBackgroundColor:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->CalendarView_showWeekNumber:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->CalendarView_shownWeekCount:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->CalendarView_unfocusedMonthDateColor:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->CalendarView_weekNumberColor:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->CalendarView_weekSeparatorLineColor:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Lcom/android/internal/R$attr;->actionBarStyle:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ActionBar:[I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ActionBar_background:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ActionBar_backgroundStacked:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ActionBar_backgroundSplit:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ActionBar_divider:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ActionBar_itemPadding:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->ImageView:[I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->LinearLayout:[I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->LinearLayout_divider:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->LinearLayout_showDividers:I (light greylist, reflection)
    W le.QtQuickEmpt: Accessing hidden field Landroid/R$styleable;->LinearLayout_dividerPadding:I (light greylist, reflection)
    

    So I guess there is something wrong with QT & Android 9, not with my code.


  • Qt Champions 2016

    @ArnaudG just asked QtMob devs. no problems yet running Qt Android Apps on Android 9



  • I'm getting the same problem with a pretty much empty android app that is built with qt creator. At least when running on an Android 9.0 emulator (API 28).



  • @suikki said in API Warning when launching on Android 9:

    I'm getting the same problem with a pretty much empty android app that is built with qt creator. At least when running on an Android 9.0 emulator (API 28).

    me too:

    04-30 19:45:46.621 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->ViewDrawableStates:[I (light greylist, reflection)
    04-30 19:45:46.621 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_background:I (light greylist, reflection)
    04-30 19:45:46.621 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_padding:I (light greylist, reflection)
    04-30 19:45:46.621 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_paddingLeft:I (light greylist, reflection)
    04-30 19:45:46.621 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_paddingTop:I (light greylist, reflection)
    04-30 19:45:46.621 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_paddingRight:I (light greylist, reflection)
    04-30 19:45:46.621 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_paddingBottom:I (light greylist, reflection)
    04-30 19:45:46.621 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_scrollX:I (light greylist, reflection)
    04-30 19:45:46.621 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_scrollY:I (light greylist, reflection)
    04-30 19:45:46.621 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_id:I (light greylist, reflection)
    04-30 19:45:46.621 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_tag:I (light greylist, reflection)
    04-30 19:45:46.621 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_fitsSystemWindows:I (light greylist, reflection)
    04-30 19:45:46.621 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_focusable:I (light greylist, reflection)
    04-30 19:45:46.621 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_focusableInTouchMode:I (light greylist, reflection)
    04-30 19:45:46.622 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_clickable:I (light greylist, reflection)
    04-30 19:45:46.622 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_longClickable:I (light greylist, reflection)
    04-30 19:45:46.622 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_saveEnabled:I (light greylist, reflection)
    04-30 19:45:46.622 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_duplicateParentState:I (light greylist, reflection)
    04-30 19:45:46.622 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_visibility:I (light greylist, reflection)
    04-30 19:45:46.622 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_drawingCacheQuality:I (light greylist, reflection)
    04-30 19:45:46.622 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_contentDescription:I (light greylist, reflection)
    04-30 19:45:46.622 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_soundEffectsEnabled:I (light greylist, reflection)
    04-30 19:45:46.622 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_hapticFeedbackEnabled:I (light greylist, reflection)
    04-30 19:45:46.622 14637 14637 W terether.walle: Accessing hidden field Landroid/R$styleable;->View_scrollbars:I (light greylist, reflection)
    

    And I am using Qt 5.12.3 , 6 months after API 28 was released.
    What are we going to do about it?


  • Qt Champions 2016


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.