`enter image description here
the "- findViewById(R.id.signUpText)" getting error in android studio and the error message show
below
Error Message:
Unexpected tokens (use ';' to separate expressions on the same line)
can you guys help me to solve this error?`
Change - to =
example
val tetxViewName:TextView=findViewById(R.id.textViewId)
Related
I am getting below error while building my ionic project. Please help me out in resolving this issue.
The error you are getting implies that the value you are passing to the function is not a valid colour. Check that you are passing a valid colour first.
At the execution of my android kotlin project on my emulator, I receive this error during the compilation of the project
The cause of the error was i taking my TabLayout's id from xml and just pasted the id in my code without apply any kind of property or calling any function on it.
My Android Studio inline compiler shows me an error when passing an unique_ptr of a derived class to a function expecting an unique_ptr of a parent class. But the code compiles as I was expecting.
The error message from the code snippet above:
Parameter type mismatch: Class 'std::unique_ptr<B>' is not compatible with class 'std::unique_ptr<A>'
I guess is this a bug, related to Android Studio ? I was wondering if there was an options for this error checker, couldn't find anything
EDIT: Note that this code compiles with no errors from the compiler (the error I quoted is from the Android Studio's real time error checker). You can check the code here: https://ideone.com/xlUsKs
I am using this plugin for AspectJ support in my android project.
When I am making syntax errors , such as missing semicolon , I expect to see clickable error in messages log after I try to build the project.
Something like this :
...\designlibdemo\MainActivity.java
Error:(89, 63) error: ';' expected
When I click on the error line , it takes me to the class and the line where the error is occurred.
But now when I am using aspectJ plugin , I only see the error description , which is actually not clickable , and I cannot follow the error to the code.
Looks like this :
Error:Execution failed for task ':app:compileProductionDebugAspectj'.
Syntax error, insert ";" to complete BlockStatements
Does anyone know how to make it clickable , so it will take me to the error line ?
According to author the issue is now fixed :)
https://github.com/uPhyca/gradle-android-aspectj-plugin/issues/26
My android studio v1.0 does not give update if there is error on my code or is a particular syntax is wrong. is an illustration of the issue.
int j = "" suppose to be an error and the line ought to be mark red. But if does not. Only get notified that there is error on code when compiling the code.