2

根据Sugar ORM 文档,我使用了以下行

当我使用

compile 'com.github.satyan:sugar:1.3'

在我的 Gradle 中,它看起来像:

  dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.github.satyan:sugar:1.3'
    compile 'com.android.support:appcompat-v7:23.0.1'
    compile 'com.android.support:support-v4:23.0.1'
    compile 'com.android.support:recyclerview-v7:23.0.1'
    compile 'com.google.android.gms:play-services:8.1.0'
    compile 'com.google.android.gms:play-services-ads:8.1.0'
    compile 'com.google.android.gms:play-services-identity:8.1.0'
    compile 'com.google.android.gms:play-services-gcm:8.1.0'
  }

当我使用

compile 'com.github.satyan:sugar:1.3'

在编译时我收到以下错误

Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/amit/android-sdk-linux_86/build-tools/22.0.1/aapt'' finished with non-zero exit value 1

失败的

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/amit/android-sdk-linux_86/build-tools/23.0.1/aapt'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

但是每当我删除它时,它都会成功构建,

如果我想使用sugarORM,任何人都可以帮助我如何使用它

4

0 回答 0