Suraj Vaishnav :
I am facing some unknown issue looks like it is some internal compiler error: these are the error when building apk:
Error:org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't transform method node: doResume (Ljava/lang/Object;Ljava/lang/Throwable;)Ljava/lang/Object;:
Error:org.jetbrains.org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction #375 L0: Incompatible stack heights
Error:org.jetbrains.org.objectweb.asm.tree.analysis.AnalyzerException: Incompatible stack heights
Any help would be appreciated.
Suraj Vaishnav :
After struggling for a long time i found the solution, the code which makes the problem is this:
if (investorType=="Institutional")
{linSignUp
if (firmName.isEmpty()) {
There is a problem in first if block which a linSignUp
a reference of linear layout which accidentally placed here, which should not be here.
So the View just here alone with no use, when I removed it build generated successfully, But I am still surprised it should give me an error on compile time.
Note: I am using Anko library in my project if I use root.linSignUp
this also resolves the issue.
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=476290&siteId=1