本文介绍了错误:找不到与搜索模式匹配的文件:D:\ a \ 1 \ s \ ** \ *.apk的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Windows 10中具有 react-native 应用程序,该应用程序在我的开发机上运行良好,它可以发布签名的APK ,一切正常.

I have react-native application in windows 10 which works great in my development machine, it can release signed apk and everything is ok.

我使用VSTS(TFS在线)作为源代码控制,当我构建项目时,一切都成功构建,但是出现奇怪的错误

I am using VSTS (TFS Online) as my source control, When I Build my project, everything built successfully, but I get strange error

这是您可以看到构建成功完成的地方,我遇到了错误

this is where you can see build successfully done, and I face error

这是错误的详细信息

有任何线索吗?

更新这些是我在Build定义中的任务

UpdateThese are my tasks in Build definition

更新2

在构建定义中添加Gradlew任务

Add Gradlew task in Build definition

推荐答案

我正在为可能面临类似问题的人回答我自己的问题

I'm answering my own question for those who may face similar issue

基于@ Cece-Don-MSFT的帮助,我发现在gradlew任务中,我不得不更改工作目录

Based on the @Cece-Don-MSFT helps, I found out that in the gradlew task I had to change the working directory

在大多数情况下,此变量应为空,因为它已设置为项目根目录,在我的情况下,我不得不将工作目录更改为android目录

despit the fact that in most cases this variable should be empty, because it is set to the project root, in my case, I had to change the working directory to android directory

这篇关于错误:找不到与搜索模式匹配的文件:D:\ a \ 1 \ s \ ** \ *.apk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 00:04