更改nativescript android api版本

更改nativescript android api版本,android,gradle,nativescript,Android,Gradle,Nativescript,我正在使用: nativescript has an 8.0.1 version and is up to date. @nativescript/core has an 8.0.4 version and is up to date. @nativescript/ios are not installed. @nativescript/android has an 8.0.0 version and is up to date. 我正在尝试将我的应用程序设置为targetminSdkVers

我正在使用:

nativescript has an 8.0.1 version and is up to date.
@nativescript/core has an 8.0.4 version and is up to date.
@nativescript/ios are not installed.
@nativescript/android has an 8.0.0 version and is up to date.
我正在尝试将我的应用程序设置为target
minSdkVersion
19,但不管我做什么,应用程序都是用版本17编译的

我试过:

  • App\u Resources/Android/App.gradle
  • 添加到
    应用程序资源/Android/src/main/AndroidManifest.xml
我环顾四周,找不到解决方案,尽管我遇到了一些关于同一问题的帖子。他们都没有解决这个问题


有问题的项目是,只需克隆它并运行
tns build android
。它将使用android-platform-17.d.ts构建。如果您想在使用平台19中的类型时看到构建失败,只需添加
let test=new android.bluetooth.BluetoothGattCallback()

文件
node\u modules/@nativescript/types android/lib/android.d.ts
中的默认值是
,因此它是使用
android-platform-17.d.ts
构建的。尝试将该文件中的值更改为
,然后构建它


我试图在代码中更改它之后进行生成,但由于另一个原因,生成失败,
无法创建抽象类的实例。出现此错误的原因是,
android.bluetooth.BluetoothGattCallback
实际上是一个类,但您试图将其用作函数。

这实际上是我目前解决此问题的方法,但显然这不是一个很好的解决方案,因为每当我清理和重建项目时,都会返回错误的值。你知道我该怎么改变吗?包中包含所有版本sdk的类型,但您不能使用它们,这是没有意义的。。。