Learning language is easy but learning basics is difficult
John Joe wrote:Can you post full activity_main code ? The code in Github is different with the code in screenshot_error.jpg
Adam Wentz wrote:Delete line 17:
As Dave has already suggested, you've already closed it on line 15 with />
Dave Tolls wrote:From that image you have a tag that is closed and then you add a close tag for it.
eg:
<myTag someAttr="foo"/>
</myTag>
Manish Pamnani wrote:
Yes it seems to have solved one of my problems and thanks for the reply!!
But can you look further into it and see more errors that i have got!!
I have posted the screenshot of activity_main.xml for further refrence!!
It would be nice to hear from you!!
John Joe wrote:Can you post full activity_main code ? The code in Github is different with the code in screenshot_error.jpg
Adam Wentz wrote:If the other error you're referring to is the AAPT2 exception, that is a plugin that is used by Android Studio when you're using Gradle 3.0. If you're having problems with it, you can always revert to the previous version.
I had to do so recently, myself, while tinkering with an older project.
Add:
in your gradle.properties.
Although, truth be told, you may want to also dig in deeper to the problem at hand since that particular plugin is quite important to the new Android Studio environment.
You can read more about it here: About Android Plugin for Gradle 3.0.0
Tim Moores wrote:Please don't post screenshots of text - post the actual text instead. That makes it much easier to read, quote and copy.
Don't get me started about those stupid light bulbs. |