• 6

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

In layout XML files, the red exclamation mark is displayed left of @drawable references. Almost all drawables have this mark:

enter image description here

The content of shape_detail_btn_border.xml is as below. It is a group of shapes and does not have any broken image resource:

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    <solid android:color="@android:color/white"/>
    <corners android:radius="5dp"/>
    <stroke android:width="1dp" android:color="@color/bapul_color_d5d5d5"/>

I hover the mouse on the mark and nothing shows up. what does this mean?

Note that the Android Studio version is 1.4 (AI-141.2288178), currently the most recent version. And, there's no problem to build and run the app at all.

In short, it's not an error from the code. It tells that "Android Studio failed to display the thumbnail of the given drawable."

Thanks @Ramz for finding an answer at https://stackoverflow.com/a/33032200/361100. I'll leave this post because this question is more descriptive than the linked one.

  • 60
Reply Report
    • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes.

The red exclamation point also appears in Java source files where a drawable is referenced. It can be eliminated by adding an on-demand static import for R.drawable. For example:

import static com.mycompany.myapp.R.drawable.*;
  • 0
Reply Report