gpt4 book ai didi

android - 离线运行检查(来自 Jenkins)Android Studio 1.1 vs 1.5

转载 作者:行者123 更新时间:2023-11-30 01:39:50 34 4
gpt4 key购买 nike

升级到 Android Studio 1.5 后 - inspections.sh 停止运行并显示以下消息。

/Applications/Android\ Studio.app/Contents/bin/inspect.sh /Users/cosminstirbu/MyApp  /Users/cosminstirbu/MyApp/inspections_profile.xml /Users/cosminstirbu/MyApp/inspectionsresults -v2 -d /Users/cosminstirbu/MyApp/app
2016-01-06 14:46:20.696 studio[6443:163537] Value of STUDIO_JDK: (null)
2016-01-06 14:46:20.706 studio[6443:163547] fullFileName is: /Applications/Android Studio.app/Contents/bin/studio.vmoptions
2016-01-06 14:46:20.706 studio[6443:163547] fullFileName exists: /Applications/Android Studio.app/Contents/bin/studio.vmoptions
2016-01-06 14:46:20.707 studio[6443:163547] Value of STUDIO_VM_OPTIONS is (null)
2016-01-06 14:46:20.707 studio[6443:163547] Processing VMOptions file at /Applications/Android Studio.app/Contents/bin/studio.vmoptions
2016-01-06 14:46:20.707 studio[6443:163547] Done
2016-01-06 14:46:20.707 studio[6443:163547] Processing VMOptions file at /Users/cosminstirbu/Library/Preferences/AndroidStudio1.5/studio.vmoptions
2016-01-06 14:46:20.707 studio[6443:163547] No content found
2016-01-06 14:46:20.708 studio[6443:163547] Processing VMOptions file at
2016-01-06 14:46:20.708 studio[6443:163547] No content found
/Applications/Android Studio.app/Contents/bin/idea.properties: 'java.endorsed.dirs' already defined
Jan 6 14:46:26 users-MacBook-Pro.local studio[6443] <Warning>: CGSConnectionByID: 0 is not a valid connection ID.
Jan 6 14:46:26 users-MacBook-Pro.local studio[6443] <Warning>: CGSConnectionByID: 0 is not a valid connection ID.
Jan 6 14:46:26 users-MacBook-Pro.local studio[6443] <Warning>: CGSConnectionByID: 0 is not a valid connection ID.
Jan 6 14:46:26 users-MacBook-Pro.local studio[6443] <Warning>: Invalid Connection ID 0
Starting up Android Studio 1.5.1 ...done.
Opening project...done.
Initializing project...Loaded profile 'MyApp' from file '/Users/cosminstirbu/MyApp/inspections_profile.xml'
done.
Inspecting with profile 'MyApp'
This project contains no modules. Inspection cannot proceed.

你可以在下面找到 .gitignore 文件

# Built application files
build

# Crashlytics configuations
com_crashlytics_export_strings.xml

# Local configuration file (sdk path, etc)
local.properties

# Gradle generated files
.gradle/

# Signing files
.signing/

# User-specific configurations
.idea/libraries/
.idea/workspace.xml
.idea/tasks.xml
.idea/.name
.idea/compiler.xml
.idea/copyright/profiles_settings.xml
.idea/encodings.xml
.idea/modules.xml
.idea/scopes/scope_settings.xml
.idea/vcs.xml
*.iml

# OS-specific files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

所以它说该项目不包含任何模块。

我猜这是因为一些被忽略的文件,因为在我用 Android Studio 打开项目然后运行检查后,它可以工作。

https://www.jetbrains.com/ruby/help/running-inspections-offline.html它没有说明应该提交或不提交哪些文件。而且我绝对不想提交 workspace.xml 和 .iml 文件。

最佳答案

检查需要 IntelliJ IDEA 项目才能工作。至少,您需要 .iml 文件、.idea/modules.xml 和 .idea/libraries 下的所有内容。与您的 .gitignore 文件中的评论相反,这些文件都不包含用户特定的配置,并且所有这些文件都旨在 checkin VCS 并与其他用户共享。

(如果您使用的是Gradle,则无需检入*.iml等文件,因为在IDE中打开build.gradle时即可生成,但离线检测不支持构建。 gradle 导入,并要求存在实际的项目和模块文件。)

您不需要 workspace.xml 文件,它实际上包含您的用户特定配置。

关于android - 离线运行检查(来自 Jenkins)Android Studio 1.1 vs 1.5,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34633883/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com