当我尝试在Android Studio中构建Android库项目时,我收到以下Gradle错误:
Gradle sync failed: Plugin with id 'com.android.library' not found.
Run Code Online (Sandbox Code Playgroud)
我对Gradle很新,这对我来说很困惑.为什么会这样?
build.gradle文件如下:
apply plugin: 'com.android.library'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
minSdkVersion 8
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.0'
}
Run Code Online (Sandbox Code Playgroud) Google People API,Google Plus API不为响应中的id每个Person资源提供唯一的。
为什么这已被弃用/删除,以及如何Person在没有id.
我正在尝试设置一个远程OrientDB服务器,我试图从本地Java代码输入顶点.
当我尝试以下代码时:
private static final void dropDb() {
OrientGraphNoTx graph = new OrientGraphNoTx(ORIENT_URL);
graph.drop();
}
Run Code Online (Sandbox Code Playgroud)
我得到一个例外说:
Exception in thread "main" com.orientechnologies.orient.core.exception.ODatabaseException: Cannot delete database
...
Caused by: java.lang.UnsupportedOperationException: Cannot delete a database in a remote server. Please use the console or the OServerAdmin class.
Run Code Online (Sandbox Code Playgroud)
如何在OrientDB中使用Java删除远程图形?