macOS 10.12.6
Cocos2d-x 3.16
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-ldltr-v21/values-ldltr-v21.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner.Underlined'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v23/values-v23.xml:36: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner.Underlined'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:13: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:15: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large.Inverse'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:21: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium.Inverse'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:28: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small.Inverse'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:201: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:203: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar.Horizontal'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:211: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:221: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:163: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:174: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.EditText'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:6: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:4:21-42: AAPT: No resource found that matches the given name: attr 'android:textAlignment'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:8:21-39: AAPT: No resource found that matches the given name: attr 'android:paddingEnd'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:11:21-45: AAPT: No resource found that matches the given name: attr 'android:layout_marginEnd'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:14:21-39: AAPT: No resource found that matches the given name: attr 'android:paddingEnd'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:17:21-47: AAPT: No resource found that matches the given name: attr 'android:layout_marginStart'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:20:21-52: AAPT: No resource found that matches the given name: attr 'android:layout_alignParentStart'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:21:21-42: AAPT: No resource found that matches the given name: attr 'android:textAlignment'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:25:21-39: AAPT: No resource found that matches the given name: attr 'android:paddingEnd'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:24:21-41: AAPT: No resource found that matches the given name: attr 'android:paddingStart'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:28:21-52: AAPT: No resource found that matches the given name: attr 'android:layout_alignParentStart'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:31:21-45: AAPT: No resource found that matches the given name: attr 'android:layout_toStartOf'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:34:21-50: AAPT: No resource found that matches the given name: attr 'android:layout_alignParentEnd'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:38:21-43: AAPT: No resource found that matches the given name: attr 'android:layout_toEndOf'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:37:21-45: AAPT: No resource found that matches the given name: attr 'android:layout_toStartOf'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:41:21-47: AAPT: No resource found that matches the given name: attr 'android:layout_marginStart'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:45:21-39: AAPT: No resource found that matches the given name: attr 'android:paddingEnd'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:44:21-41: AAPT: No resource found that matches the given name: attr 'android:paddingStart'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:49:21-39: AAPT: No resource found that matches the given name: attr 'android:paddingEnd'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v17/values-v17.xml:48:21-41: AAPT: No resource found that matches the given name: attr 'android:paddingStart'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:4: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:5: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:7: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:8: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:9: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:10: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:11: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display4'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:12: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Headline'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:14: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:16: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:18: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:20: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:22: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Menu'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:23: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.SearchResult.Subtitle'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:25: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.SearchResult.Title'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:27: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:29: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Subhead'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:30: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Title'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:31: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:33: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:35: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:37: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title.Inverse'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:39: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:41: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:43: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:44: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:46: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:48: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:49: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.TextView.SpinnerItem'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:50: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:52: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:96:21-40: AAPT: No resource found that matches the given name: attr 'android:colorAccent'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:100:21-46: AAPT: No resource found that matches the given name: attr 'android:colorButtonNormal'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:98:21-50: AAPT: No resource found that matches the given name: attr 'android:colorControlActivated'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:99:21-50: AAPT: No resource found that matches the given name: attr 'android:colorControlHighlight'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:97:21-47: AAPT: No resource found that matches the given name: attr 'android:colorControlNormal'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:94:21-41: AAPT: No resource found that matches the given name: attr 'android:colorPrimary'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:95:21-45: AAPT: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:103:21-44: AAPT: No resource found that matches the given name: attr 'android:windowElevation'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:143:21-40: AAPT: No resource found that matches the given name: attr 'android:colorAccent'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:147:21-46: AAPT: No resource found that matches the given name: attr 'android:colorButtonNormal'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:145:21-50: AAPT: No resource found that matches the given name: attr 'android:colorControlActivated'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:146:21-50: AAPT: No resource found that matches the given name: attr 'android:colorControlHighlight'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:144:21-47: AAPT: No resource found that matches the given name: attr 'android:colorControlNormal'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:141:21-41: AAPT: No resource found that matches the given name: attr 'android:colorPrimary'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:142:21-45: AAPT: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:150:21-44: AAPT: No resource found that matches the given name: attr 'android:windowElevation'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:152: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.
XXX/cocos2d/cocos/platform/android/libcocos2dx/build/intermediates/res/merged/release/values-v21/values-v21.xml:154: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.
解决方案
用android studio打开项目
打开build.gradle
修改compileSdkVersion,修改成23
如下图