0

I want to add EmojiCompat to my app. However, the project cannot be built due to a warning :

Error:(23) warn: generated id 'android:id/inputExtractEditText' for external package 'android'.

Error message screenshot

This layout XML input_method_extract_view.xml is provided by the appcompat library and I have tried in the EmojiCompat demo project which can build successfully.

  • build tool version 26.0.1
  • appcompat version 26.0.1
  • Kotlin version 1.1.4-3

I have tried to build with the default one in Android Studio and JRebel for Android, both of them build failed.

Eric Li
  • 143
  • 1
  • 8

2 Answers2

1

if possible ignore the error. the issue will be fixed in the next support library release (28).

Siyamed
  • 495
  • 2
  • 11
1

You might get that warning when building your app, if your XML layout contains an item with an id like this:

android:id="@+android:id/title"

or

android:id="@+android:id/summary"

The fix is to either remove the "+", and use an existing id in the "android" namespace:

android:id="@android:id/title"

Or remove the "android:" part, to avoid using the "android" namespace at all:

android:id="@+id/title"

More info and examples:

Mr-IDE
  • 7,051
  • 1
  • 53
  • 59