我是android新手。我在android studio 3.0中启动了一个新的项目项目,但在Gradle构建错误后显示为:
package com.google.challenges;
public class Answer {
public static int answer(int[] x, int[] y) {
for (int n : x) {
if (!isPresent(n, y)) {
return n;
}
}
for (int n : y) {
if (!isPresent(n, x)) {
return n;
}
}
return 0;
}
private static boolean isPresent(int n, int[] b){
for (int i : b) {
if (n == i) {
return true;
}
}
return false;
}
}
Error:Unable to resolve dependency for
':app@debugAndroidTest/compileClasspath':
Could not resolve
javax.annotation:javax.annotation-api:1.2.