Fixed
Status Update
Comments
am...@google.com <am...@google.com> #2
Thank you for reporting this issue.
Please provide the below details to investigate this issue further.
1. Please attach your sample android project which reproduces the issue, zip it and share
2. Explain the steps to reproduce the issue with your apk. Provide all necessary information to reproduce the issue.
Please provide the below details to investigate this issue further.
1. Please attach your sample android project which reproduces the issue, zip it and share
2. Explain the steps to reproduce the issue with your apk. Provide all necessary information to reproduce the issue.
vi...@gmail.com <vi...@gmail.com> #3
It happens due to a name clash in the layout files. I have had a res/layout/tooltip.xml for years and the constructor of TooltipPopup inflates that one instead of its own.
vi...@gmail.com <vi...@gmail.com> #4
Maybe the one in appcompat should have been prefixed with "abc_" like to others. Now I have renamed mine, but others might get the same issue.
vi...@gmail.com <vi...@gmail.com> #6
Here is an example project.
Problem and solution as described in #3 and #4.
Steps:
1: Run the app
2. Long-press the Android icon in the toolbar.
=> App crashes with:
java.lang.NoSuchFieldError: No field message of type I in class Landroid/support/v7/appcompat/R$id; or its superclasses (declaration of 'android.support.v7.appcompat.R$id' appears in /data/app/com.example.manifest_merger_example.flavor-1/base.apk)
at android.support.v7.widget.TooltipPopup.<init>(TooltipPopup.java:60)
at android.support.v7.widget.TooltipCompatHandler.show(TooltipCompatHandler.java:154)
at android.support.v7.widget.TooltipCompatHandler.onLongClick(TooltipCompatHandler.java:103)
Problem and solution as described in #3 and #4.
Steps:
1: Run the app
2. Long-press the Android icon in the toolbar.
=> App crashes with:
java.lang.NoSuchFieldError: No field message of type I in class Landroid/support/v7/appcompat/R$id; or its superclasses (declaration of 'android.support.v7.appcompat.R$id' appears in /data/app/com.example.manifest_merger_example.flavor-1/base.apk)
at android.support.v7.widget.TooltipPopup.<init>(TooltipPopup.java:60)
at android.support.v7.widget.TooltipCompatHandler.show(TooltipCompatHandler.java:154)
at android.support.v7.widget.TooltipCompatHandler.onLongClick(TooltipCompatHandler.java:103)
am...@google.com <am...@google.com> #7
Thank you for reporting this issue. We have shared this with our product and engineering team and will update this issue with more information as it becomes available.
ca...@instantbits.com <ca...@instantbits.com> #8
Thank you for pointing out that tooltip.xml causes the issue. I too have that and didn't know what the issue was. Renaming my tooltip.xml fixed it. Here is my old report https://issuetracker.google.com/issues/65055117
am...@google.com <am...@google.com> #9
The issue reported here has been fixed and it will be available in a future release.
ch...@thoughtworks.com <ch...@thoughtworks.com> #10
can find the fix in 27.0.0 and 27.0.1 release notes, is that fixed in the latest version? cause the top 1 crash now...
ch...@thoughtworks.com <ch...@thoughtworks.com> #11
sorry, can't
ta...@gmail.com <ta...@gmail.com> #12
I do not have a tooltip.xml but having exactly the same crash, from library : 'com.android.support:appcompat-v7:27.0.2'
[Deleted User] <[Deleted User]> #13
I have the same problem , and have same crash,
library
compileSdkVersion 26
targetSdkVersion 26
'com.android.support:appcompat-v7:26.1.0'
library
compileSdkVersion 26
targetSdkVersion 26
'com.android.support:appcompat-v7:26.1.0'
ja...@gmail.com <ja...@gmail.com> #14
I have the same problem:
java.lang.NoSuchFieldError: android.support.v7.appcompat.R$id.message
compileSdkVersion 26
buildToolsVersion '26.0.2'
targetSdkVersion 26
minSdkVersion 15
compile 'com.android.support:support-v4:26.1.0'
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:cardview-v7:26.1.0'
compile 'com.android.support:palette-v7:26.1.0'
compile 'com.android.support:design:26.1.0'
java.lang.NoSuchFieldError: android.support.v7.appcompat.R$id.message
compileSdkVersion 26
buildToolsVersion '26.0.2'
targetSdkVersion 26
minSdkVersion 15
compile 'com.android.support:support-v4:26.1.0'
compile 'com.android.support:appcompat-v7:26.1.0'
compile 'com.android.support:cardview-v7:26.1.0'
compile 'com.android.support:palette-v7:26.1.0'
compile 'com.android.support:design:26.1.0'
in...@walletunion.com <in...@walletunion.com> #15
same problem with support library 27.0.2. Crash on tooltip.xml
er...@vikingmobile.com <er...@vikingmobile.com> #16
This problem still exists in 27.0.2. Unfortunately the conflicting tooltip.xml file is in a third party library in the maven repository and not code in my project, so I have to either get a support library fix or a third party library fix to build with the latest support libraries.
an...@gmail.com <an...@gmail.com> #17
I reproduced the Null Pointer Exception error by clicking multiple times on a MenuItem added to the toolbar, likewise making a selection in a text and clicking copy to the clipboard.
I solved it by adding a title to the ActionBar with the following code line when creating it in the activity:
If you use a custom Toolbar and want to display a TextView or other custom view instead of the Toolbar title, assign an empty string to the view that shows the title of the toolbar:
mToolbar.Title = string.Empty;
SetSupportActionBar (mToolbar);
If you use the ActionBar by default and do not want to put a title:
SupportActionBar.SetDisplayShowTitleEnabled (false);
SupportActionBar.Title = string.Empty;
I solved it by adding a title to the ActionBar with the following code line when creating it in the activity:
If you use a custom Toolbar and want to display a TextView or other custom view instead of the Toolbar title, assign an empty string to the view that shows the title of the toolbar:
mToolbar.Title = string.Empty;
SetSupportActionBar (mToolbar);
If you use the ActionBar by default and do not want to put a title:
SupportActionBar.SetDisplayShowTitleEnabled (false);
SupportActionBar.Title = string.Empty;
Description
Version used: 26.0.0
Theme used: Yes
Devices/Android versions reproduced on: Android 7.1.1
I am not using TooptilPopup, but it crashes the application with the following exception:
08-11 11:41:46.564 20411-20411/? E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.visiolink.reader.wrapper, PID: 20411
java.lang.NullPointerException: Attempt to invoke virtual method 'void android.widget.TextView.setText(java.lang.CharSequence)' on a null object reference
at android.support.v7.widget.TooltipPopup.show(TooltipPopup.java:79)
at android.support.v7.widget.TooltipCompatHandler.show(TooltipCompatHandler.java:155)
at android.support.v7.widget.TooltipCompatHandler.access$000(TooltipCompatHandler.java:39)
at android.support.v7.widget.TooltipCompatHandler$1.run(TooltipCompatHandler.java:53)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6283)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)
I don't know what code triggers it.