在Linux centos平台上使用Jenkins和Gradle构建Android应用程序时出错

前端之家收集整理的这篇文章主要介绍了在Linux centos平台上使用Jenkins和Gradle构建Android应用程序时出错前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我已经将我的构建过程 Android工作室与Jenkins和Gradle集成.当我在Jenkins上运行构建时,错误即将到来
:::::::::::::::::::::::::::::::::::::::::::::::::: :::::::::::::::::::::::::::
00:04:56.154 [DEBUG] [org.gradle.configuration.project.BuildScriptProcessor] Timing: Running the build script took 1.587 secs
00:04:56.164 [INFO] [org.gradle.api.Project] Parsing the SDK,no caching allowed
00:04:56.373 [INFO] [org.gradle.api.Project] Parsing legacy package: /opt/androidsdk/android-sdk-linux/tools
00:04:56.414 [INFO] [org.gradle.api.Project] File not found while marshalling /opt/androidsdk/android-sdk-linux/tools/package.xml. Probably the SDK is read-only
00:04:56.415 [INFO] [org.gradle.api.Project] Parsing legacy package: /opt/androidsdk/android-sdk-linux/platform-tools
00:04:56.416 [INFO] [org.gradle.api.Project] File not found while marshalling /opt/androidsdk/android-sdk-linux/platform-tools/package.xml. Probably the SDK is read-only
00:04:56.416 [INFO] [org.gradle.api.Project] Parsing legacy package: /opt/androidsdk/android-sdk-linux/platforms/android-19
00:04:56.438 [INFO] [org.gradle.api.Project] File not found while marshalling /opt/androidsdk/android-sdk-linux/platforms/android-19/package.xml. Probably the SDK is read-only
00:04:56.440 [INFO] [org.gradle.api.Project] Parsing legacy package: /opt/androidsdk/android-sdk-linux/platforms/android-22
00:04:56.461 [INFO] [org.gradle.api.Project] File not found while marshalling /opt/androidsdk/android-sdk-linux/platforms/android-22/package.xml. Probably the SDK is read-only
00:04:56.463 [INFO] [org.gradle.api.Project] Parsing legacy package: /opt/androidsdk/android-sdk-linux/platforms/android-23
00:04:56.471 [INFO] [org.gradle.api.Project] File not found while marshalling /opt/androidsdk/android-sdk-linux/platforms/android-23/package.xml. Probably the SDK is read-only
00:04:56.473 [INFO] [org.gradle.api.Project] Parsing legacy package: /opt/androidsdk/android-sdk-linux/platforms/android-21
00:04:56.487 [INFO] [org.gradle.api.Project] File not found while marshalling /opt/androidsdk/android-sdk-linux/platforms/android-21/package.xml. Probably the SDK is read-only

解决方法

我有同样的警告.

在Windows中,对于文件夹“android-sdk”,我已经为用户提供了写权限,这解决了我的问题.

猜你在找的Linux相关文章