【发布时间】:2019-06-28 02:58:02
【问题描述】:
我正在尝试使用 tns run android 在 android 上运行 nativescript 应用程序
我总是遇到 gradle 错误:
FAILURE: Build failed with an exception.
* Where:
Build file:
'/Volumes/My_SSD/myproject/platforms/tempPlugin/kinvey_nativescript_sdk/bui
ld.gradle' line: 28
* What went wrong:
A problem occurred evaluating root project '`kinvey_nativescript_sdk`'.
> Failed to apply plugin [class 'org.gradle.api.plugins.BasePlugin']
> Could not create service of type OutputFilesRepository using ExecutionServices.createOutputFilesRepository().`
我尝试了以下方法:
- 运行
./gradlew --stacktrace,但出现此错误:
Caused by: org.gradle.cache.LockTimeoutException: Timeout waiting to lock
execution history cache
(/Volumes/My_SSD/myproject/platforms/tempPlugin/kinvey_nativescript_sdk/.gr
adle/5.1.1/executionHistory). It is currently in use by another Gradle
instance.
Owner PID: unknown
Our PID: 50331
Owner Operation: unknown
Our operation:
Lock file:
/Volumes/My_SSD/myproject/platforms/tempPlugin/kinvey_nativescript_sdk/.gra
dle/5.1.1/executionHistory/executionHistory.lock
手动删除 .lock 文件并重新运行
tns run android但我又遇到了同样的错误运行
chmod R+x/Volumes/My_SSD/myproject/platforms/tempPlugin/kinvey_nativescript_sdk
没有解决问题
该应用在 ios 模拟器上运行良好,但在 android 上运行良好
【问题讨论】:
标签: android macos gradle nativescript kinvey