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:-
tutorialsbuzz.com/2017/02/android-fragment-transa…
or
github.com/hdpavan/FragmentTransaction
Here is my code for building a dynamic UI with fragments in android studio:-
gist.github.com/pamnanaimanish169/b18b0ae500fddf9…
Here is the screenshot of the android studio:-

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

You can reply me at:-hashnode.com/@manishpamnani169
No responses yet.