Fixed
Status Update
Comments
uc...@google.com <uc...@google.com> #2
Reproduced in
Android Studio 3.2 Canary 5
Build #AI-173.4630681, built on March 2, 2018
JRE: 1.8.0_152-release-1136-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.9.0-6-amd64
Android Studio 3.2 Canary 5
Build #AI-173.4630681, built on March 2, 2018
JRE: 1.8.0_152-release-1136-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.9.0-6-amd64
fp...@gmail.com <fp...@gmail.com> #3
Renaud, can you please take a look as Michal will be out of the office next week? Looks like an issue that happens only when tests are run from IDE.
[Deleted User] <[Deleted User]> #4
The issue seems to be related to the fact that "implementation" directive in the "com.android.test" plugin is not exposed properly in the IDE, i.e. the IDE does not see the "junit 4.12" library in the corresponding test project.
ki...@gmail.com <ki...@gmail.com> #5
Here is the relevant build.gradle file from the project included in #1:
apply plugin: 'com.android.test' // <= HERE
android {
compileSdkVersion 27
defaultConfig {
minSdkVersion 15
}
targetProjectPath ':app'
}
dependencies {
implementation 'com.android.support.test:runner:1.0.1'
implementation 'junit:junit:4.12' // <= HERE
}
apply plugin: 'com.android.test' // <= HERE
android {
compileSdkVersion 27
defaultConfig {
minSdkVersion 15
}
targetProjectPath ':app'
}
dependencies {
implementation 'com.android.support.test:runner:1.0.1'
implementation 'junit:junit:4.12' // <= HERE
}
ch...@gmail.com <ch...@gmail.com> #6
Fix pending review.
jo...@google.com <jo...@google.com>
gi...@google.com <gi...@google.com> #7
Fix will be in 3.2 Canary 9
[Deleted User] <[Deleted User]> #8
gi...@google.com <gi...@google.com> #9
Thanks for all the additional information. I was able to repo the issue and validate a fix. I will work to this this fix out in a 3.1 update.
Josh
Josh
[Deleted User] <[Deleted User]> #10
nice, thanks!
kh...@gmail.com <kh...@gmail.com> #11
Same issue on Nexus 5 (6.0) after update to Android Studio 3.1
Temporarily resolved by disabling advanced profiling.
Temporarily resolved by disabling advanced profiling.
st...@gmail.com <st...@gmail.com> #12
Same issue whith two Motorola devices (G1 and G3) with Android 6 after update to Android Studio 3.1
Temporarily resolved by disabling advanced profiling.
Temporarily resolved by disabling advanced profiling.
is...@gmail.com <is...@gmail.com> #13
Maader cood kanker Pola toi
gi...@google.com <gi...@google.com> #14
The fix is checked in an set to go out in the 3.1 beta 1.
jo...@gmail.com <jo...@gmail.com> #15
same issue on Samsung Note pro 12,
jo...@google.com <jo...@google.com> #16
Thanks everyone for the bug reports. Android Studio 3.1.1 was released earlier today and includes a fix for this issue. Please let us know if you continue to see issues after upgrading.
[Deleted User] <[Deleted User]> #17
I'm running an application on a Nexus 5 with Android Studio 3.1.1, but encounter a crash similar to this (when advanced profiling is enabled). It seems kind of random when it happens but it's either when I see choices of a Spinner, enter a EditText or move on to the next activity (that contains a webview) from the view with the spinner and EditText. I don't know if it's the same issue or a new one, but here's the Logcat report (with my application id replaced by "mycompany.myapp":
04-16 16:26:41.079 15619-15619/com.mycompany.myapp E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.mycompany.myapp, PID: 15619
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.inputmethod.InputConnection.finishComposingText()' on a null object reference
at android.view.inputmethod.InputConnectionWrapper.finishComposingText(InputConnectionWrapper.java:78)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:362)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
04-16 16:26:41.079 15619-15619/com.mycompany.myapp E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.mycompany.myapp, PID: 15619
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.inputmethod.InputConnection.finishComposingText()' on a null object reference
at android.view.inputmethod.InputConnectionWrapper.finishComposingText(InputConnectionWrapper.java:78)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:362)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
nj...@gmail.com <nj...@gmail.com> #18
Same issue with android 3.1.1 and Advance Profilling enabled. My application has several fragment sometimes when transition from one to another the app crash ..
04-17 19:27:37.272 10911-10911/com.app E/AndroidRuntime: FATAL EXCEPTION: main
Process:com.app , PID: 10911
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.inputmethod.InputConnection.finishComposingText()' on a null object reference
at android.view.inputmethod.InputConnectionWrapper.finishComposingText(InputConnectionWrapper.java:78)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:362)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5444)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:682)
04-17 19:27:37.272 10911-10911/
Process:
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.inputmethod.InputConnection.finishComposingText()' on a null object reference
at android.view.inputmethod.InputConnectionWrapper.finishComposingText(InputConnectionWrapper.java:78)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:362)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5444)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:792)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:682)
nj...@gmail.com <nj...@gmail.com> #19
To add to my comment, I am using a physical tablet with android 6.0..
da...@blackdevelopers.net <da...@blackdevelopers.net> #20
Hi! I can confirm this bug keeps happening in latest public released version: Android Studio 3.1.2 (Build #AI-173.4720617, built on April 13, 2018), while Advanced Profiling is enabled, when running on a -fully updated- physical device Sony Xperia Z3, with Android 6.0.1:
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.inputmethod.InputConnection.finishComposingText()' on a null object reference
at android.view.inputmethod.InputConnectionWrapper.finishComposingText(InputConnectionWrapper.java:78)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:362)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:5526)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.view.inputmethod.InputConnection.finishComposingText()' on a null object reference
at android.view.inputmethod.InputConnectionWrapper.finishComposingText(InputConnectionWrapper.java:78)
at com.android.internal.view.IInputConnectionWrapper.executeMessage(IInputConnectionWrapper.java:362)
at com.android.internal.view.IInputConnectionWrapper$MyHandler.handleMessage(IInputConnectionWrapper.java:78)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:224)
at android.app.ActivityThread.main(ActivityThread.java:5526)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
da...@blackdevelopers.net <da...@blackdevelopers.net> #21
Today I finally could download and test canary 18. I can confirm this bug is now fixed in this version. Thank you!
Description
The issue is already described here:
The suggested fix solves the problem...
Build: 3.1 RC 3, AI-173.4658569, 201803160210,
AI-173.4658569, JRE 1.8.0_152-release-1024-b01x64 JetBrains s.r.o, OS Mac OS X(x86_64) v10.13.3 unknown, screens 1920x1200; Retina
Android Gradle Plugin: 3.0.1
Gradle: 4.1
NDK: from local.properties: (not specified); latest from SDK: (not found);
LLDB: pinned revision 3.1 not found; latest from SDK: LLDB 3.0 (revision: 3.0.4213617);
CMake: from local.properties: (not specified); latest from SDK: (not found); from PATH: (not found);
IMPORTANT: Please read