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

构建安卓应用的配置文件没有正确处理 "project://" #17813

Open
finscn opened this issue Nov 5, 2024 · 0 comments
Open

构建安卓应用的配置文件没有正确处理 "project://" #17813

finscn opened this issue Nov 5, 2024 · 0 comments
Assignees
Labels
Bug Env: Android Env: Native General issue on all native platforms including iOS, Android, MacOS, Windows Needs Triage Needs to be assigned by the team

Comments

@finscn
Copy link
Contributor

finscn commented Nov 5, 2024

Cocos Creator version

3.8.4

System information

android

Issue description

首先 , 通过 "构建发布" 功能导出的 json 中, 存放 "keystorePath" 的路径信息 强制存为完整的绝对路径.
这对开发很不友好, 开发者可能有不同的系统 或者 路径来存放项目.

我们 统一把这个文件放在项目都 某个文件夹内, 比如 项目目录/keystore/abc.sign
然后我们手动修改 json配置为

 "keystorePath": "project://keystore/abc.sign"

project:// 在大多数时候会在编译时被动态替换为项目所在的绝对路径.
但是 keystorePath 这 key 的值 没有被处理.

导致 在安卓项目中 出现类似错误:

Build file '/项目绝对路径/native/engine/android/app/build.gradle' line: 60

A problem occurred evaluating project ':xxxxxx'.
> Cannot convert URL 'project://keystore/abc.sign' to a file.

Relevant error log output

No response

Steps to reproduce

.

Minimal reproduction project

No response

@finscn finscn added Bug Needs Triage Needs to be assigned by the team labels Nov 5, 2024
@minggo minggo added Env: Native General issue on all native platforms including iOS, Android, MacOS, Windows Env: Android labels Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Env: Android Env: Native General issue on all native platforms including iOS, Android, MacOS, Windows Needs Triage Needs to be assigned by the team
Projects
None yet
Development

No branches or pull requests

3 participants