"invalid Symbol Name" After Android Studio Crashed
Solution 1:
I found the problem, I should have thought of that earlier.
What I did is right click on "my_layout.xml"
> Analyze
> Inspect Code...
Then it showed me this line
app:layout_constraintEnd_toStartOf="@+id/switch"
I don't know how I missed that...
Solution 2:
you need to find where in your xml code an object had taken "null" as an id android:id="@+id/null"
so first you need to go to the last xml you edited 1 - click right on it 2 - Analyse 3 - Inspect Code ... 4 - click ok and you will see how much errors and warnings you have
Solution 3:
try manually deleting the build folder in your project and use "build" -> "Rebuild Project". By that way all mapping files (including your inconsistent layout mapping) should also go away. and Rebuilding recreates the map.
I still doubt, if you have missed to change id with name switch somewhere else. Think that way also..
Solution 4:
same xlm file you declear samething like
`android:id="@+id/null`enter code here`
find it and fix; from right click on eath xml file..and run analyze--->Inspect Code
Solution 5:
You have to check your last edited xml file if it shows the error of invalid name symbol where id is assigned to null go through the code and check all the id's in my case the layout constraints were assigned null value. Check the id's and either remove them or assign them suitable values
Post a Comment for ""invalid Symbol Name" After Android Studio Crashed"