Installed android-support-v7-appcompat to work with the toolbar. I connected it to my project (in the Api 15-22 project manifest). If in the Properties \ Android project android-support-v7-appcompat I put Api 22 - then he swears at the values-v23 \ styles_base.xml, and my project when compiling produces errors:

workspace \ android-support-v7-appcompat \ res \ values-v23 \ styles_base.xml: 20: resource retrie for for No No No No No No No No No No No No.

workspace \ android-support-v7-appcompat \ res \ values-v23 \ styles_base_text.xml: 19: error: for retrieving the item name for the item: No, android: TextAppearance.Material.Widget.Button.Inverse '.

If both projects put Api 23 - part of the code in my project turns red, but I don’t need Api 23 support.

How to overcome?

  • Either install api 23 or use appcompat 22 versions. - temq
  • How to install appcompat 22 versions? Download separately and replace the v7 folder with version 23 to version 22? - Siemenstim
  • compile 'com.android.support:appcompat-v7:22.2.1' - temq
  • I can not find anywhere else 22 version. If you still leave 23 (so probably it will be more correct), I will try to figure out the code, and then it will be possible to somehow disable the installation on devices with Api 23? - Siemenstim
  • Why does eclipse still swear at setLatestEventInfo? final int sdkVersion = Integer.parseInt (Build.VERSION.SDK); if (sdkVersion <Build.VERSION_CODES.LOLLIPOP_MR1) {/ * code * / notification.setLatestEventInfo (context, context. .FLAG_CANCEL_CURRENT)); / * code * /} else {} - Siemenstim

0