I am trying to use a .jar file for prettifying my code(in app). For this I have found an answer to a question here
private static Map<String, String> buildColorsMap() {
Map<String, String> map = new HashMap<>();
map.put("typ", "87cefa");
map.put("kwd", "00ff00");
map.put("lit", "ffff00");
map.put("com", "999999");
map.put("str", "ff4500");
map.put("pun", "eeeeee");
map.put("pln", "ffffff");
return map;
}
To use this new Hashmap with <> angle brackets, I need to use Java 1.7 (which requires minSdk version of 18). When I update my compiler complaiance level to use 1.7, I get an error in my project, so need to clean. Once I clean the project, I get errors on my R.layout.XXX lines. It seems to be messing with this call to UI elements everywhere. Does anybody have any clue how to fix this issue?