Android 将AmazonSDK与NativeScript一起使用

Android 将AmazonSDK与NativeScript一起使用,android,amazon-web-services,amazon-s3,nativescript,Android,Amazon Web Services,Amazon S3,Nativescript,我正在使用AmazonSDKforFirePhone进行一些测试,目的是学习在NativeScript上使用它 我按照网站()上描述的安装说明进行操作。但是我对app_resources/Android文件夹中的app.gladle文件进行了更改: // Add your native dependencies here: buildscript { repositories { mavenCentral() } dependencies {

我正在使用AmazonSDKforFirePhone进行一些测试,目的是学习在NativeScript上使用它

我按照网站()上描述的安装说明进行操作。但是我对app_resources/Android文件夹中的
app.gladle
文件进行了更改:

// Add your native dependencies here:
buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.amazon.device.tools.build:gradle:1.0.+'
    }
}

// Uncomment to add recyclerview-v7 dependency
dependencies {
    compile 'com.android.support:recyclerview-v7:+'
}

android {
  compileSdkVersion = "Amazon.com:Amazon Fire Phone SDK Addon:17"
  defaultConfig {
    generatedDensities = []
    applicationId = "br.com.carlosdelfino.mobile.client"

    //override supported platforms
    // ndk {
    //       abiFilters.clear()
    //          abiFilters "armeabi-v7a"
        // }

  }
  aaptOptions {
    additionalParameters "--no-version-vectors"
  }

  //splits {
  //    abi {
  //      enable true //enables the ABIs split mechanism
  //      reset() //reset the list of ABIs to be included to an empty string
  //      include 'arm64-v8a', 'armeabi-v7a', 'x86'
  //      universalApk true
  //    }
  //}
}
当我试图编译应用程序并运行它时,会出现以下错误:

client/platforms/android/libs/aar/Primitives-2017.1.324-dev-release.aar
    +adding dependency: /Users/carlosdelfino/workspace/client/platforms/android/libs/aar/widgets-release.aar

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'client'.
> failed to find target with hash string 'Amazon.com:Amazon Fire Phone SDK Addon:17' in: /Users/carlosdelfino/Library/Android/sdk

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

BUILD FAILED

Total time: 2 mins 44.264 secs
Processing node_modules failed. Error: Command ./gradlew failed with exit code 1

这是亚马逊SDK或NativeScript特有的问题,因为我做错了什么吗?

“Amazon.com:Amazon Fire Phone SDK插件:17“不是有效的Android SDK版本。我将删除
compileSdkVersion
条目,查看amazon库是否在没有它的情况下编译,或者只输入我编译nativescript项目时使用的内容。要从NS CLI中精确定位select compileSdk版本,可以传递值在
22-26
范围内的
--compileSdk
标志。通常,您希望根据最新的目标进行编译,以访问最新和最好的android位。@pkanev,谢谢。我放弃了测试,回到了原来的状态,一切正常。