Here's the error it gives while i try to compile the code:-
Information:Gradle tasks [:app:assembleDebug]
G:\SOURCE_CODE\DynamicUI\app\src\main\res\layout\activity_main.xml
Error:(17) error: mismatched tag.
Error:(17) mismatched tag.
Error:java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Error:Execution failed for task ':app:mergeDebugResources'.
> Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
Information:BUILD FAILED in 10s
Information:4 errors
Information:0 warnings
Information:See complete output in console
and here's the event log for the app:-
30-01-2018
14:52 * daemon not running; starting now at tcp:5037
14:52 * daemon started successfully
14:53 Executing tasks: [:app:assembleDebug]
14:53 Gradle build finished with 4 error(s) in 10s 347ms
Here is the original source code from where i got this tutorial:-
Android Fragment Transaction(One Activity|One container With Multiple Fragment)
or
https://github.com/hdpavan/FragmentTransaction
Here is my code for building a dynamic UI with fragments in android studio:-
https://gist.github.com/pamnanaimanish169/b18b0ae500fddf95c0dd53e337337ce5
Here is the screenshot of the android studio:-
"screenshot_error.jpg"
Machine Enviornment:- Windows 10(64-bit)
I tried executing the app but it shows the error log and does't even open android emulator.
Android emulator:-Nexus 4 API 21
"screenshot_avd.jpg"
All the necessary files are uploaded as attachments