我收到以下错误,你们都可以查看我的代码,我该如何解决?
我已下载该文件并重启几次....
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.orbotix.ovalfreefall"
minSdkVersion 18
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'])
}
我的其他gradle文件
我dk是这个文件与否,我真的很困惑 apply plugin:'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.orbotix.orbbasicloader"
minSdkVersion 18
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'])
releaseCompile project(path: ':RobotCommonLibrary', configuration: 'release')
releaseCompile project(path: ':RobotLeConnectorLibrary', configuration: 'release')
releaseCompile project(path: ':RobotLibraryUmbrella', configuration: 'release')
debugCompile project(path: ':RobotLeConnectorLibrary', configuration: 'debug')
debugCompile project(path: ':RobotCommonLibrary', configuration: 'debug')
debugCompile project(path: ':RobotLibraryUmbrella', configuration: 'debug')
}
答案 0 :(得分:1)
转到here&点击下载zip,然后解压缩,然后创建一个新的Android项目。在文件资源管理器中,您将转到Sphero-Android-SDK-master/libs/RobotLibrary.jar
,然后将此文件复制到新android项目的新projectname/app/libs/
目录中。然后确保build.gradle(module:app)在底部有这个。然后你可以使用SDK。
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
}