Status Update
Comments
an...@google.com <an...@google.com> #2
Lint options:
lintOptions {
lintConfig = file('lint.xml')
abortOnError true
xmlReport true
htmlReport true
checkDependencies true
}
Also, our project has custom lint rules. Failure happens with a dependency of 26.6.3 and 27.0.0.
Is any way to downgrade lint runner? This problem is keeping us from using AGP 4.0
[Deleted User] <[Deleted User]> #3
Attached slightly different stacktrace for the same problem.
Wonder if disabling some lint rules could help to "fix" this problem, as it is also blocking for us 4.0 AGP upgrade.
ks...@google.com <ks...@google.com> #4
Notes:
I suspect the exceptions are happening now because JetBrains recently changed an assert
statement into a hard failure (see
I.e., it's possible that Lint has been hitting this code path all along, and only now it is causing a problem.
This has been difficult to investigate so far because the failure is nondeterministic and also deep inside the Kotlin compiler. Plus, JetBrains seems to be hitting this code path occasionally too (hence why they changed the assert into a hard failure), so I'm not even sure whether Lint is implicated or not.
an...@google.com <an...@google.com>
em...@google.com <em...@google.com> #5
It could also explain why not all lint rules were working from time to time (
Is any public issue created I could follow?
ar...@google.com <ar...@google.com>
ma...@gmail.com <ma...@gmail.com> #6
Has anyone tried this with 4.1.0-beta2? We're using a more recent version of UAST and the Kotlin compiler there. It's not clear that it's fixed but -- there's a chance :-)
em...@google.com <em...@google.com> #7
I tried. The same error. I am wondering, is any way to know which lint checks cause failure? I have a few custom lint checks. Or, is any way downgrade compiler for lint checks?
Description
Android Studio 2.3 Canary 3
Build #AI-162.3561852, built on December 9, 2016
JRE: 1.8.0_112-release-b05 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
NDK: 14.0.3529234 rc1
LLDB: 2.3.3549278
Steps to reproduce:
1. Import the sample Audio Echo
2. Open the file MainActivity.java and place a break point at the line
status_view = (TextView)findViewById(R.id.statusView);
3. Open the file audio_main.cpp and put a breakpoint in the method
Java_com_google_sample_echo_MainActivity_createSLEngine(
JNIEnv *env, jclass type, jint sampleRate, jint framesPerBuf) {
4. Hit the debug button. First the breakpoint set in step 2 will get hit . Press F9 and then the one in step 3
5. Now open the file MainActivity.java and place a break point at the line
isPlaying = false;
6. Now press F9 again to resume
Expected result:
Breakpoint set in step 6 should get hit
Actual result:
Breakpoint is not hit