Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(app):修复git资源以便调用gradlew构建项目 #294

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

pzhlkj6612
Copy link

你好!

gradlew 和 gradlew.bat 这两个文件可以被包含在项目内:

Upgrading the Gradle Wrapper

...

As usual, you should commit the changes to the Wrapper files to version control.

from: https://docs.gradle.org/current/userguide/gradle_wrapper.html#sec:upgrading_wrapper


使用 gradlew 构建时的输出:

> set "JAVA_HOME=...\openlogic-openjdk-17.0.11+9-windows-x64"

> gradlew.bat assembleRelease 

...

BUILD SUCCESSFUL in 4m 1s
186 actionable tasks: 84 executed, 102 up-to-date

$ find . -name '*.apk'
./app/build/outputs/apk/offline/release/yuyanIme_2025011218_offline.apk
./app/build/outputs/apk/online/release/yuyanIme_2025011218_online.apk

可以用 gradlew.bat tasks 列出所有的 gradle 任务。


参考资料:

.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant