admin管理员组文章数量:1023876
Recently I've developed an app that allows users to generate APK's through a website providing the source.
Manually, the user would've ran yarn run cordova build android
and it would've created the APK normally, but my app is supposed to start a new Process and run that exact same command like this:
var process = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = "cmd.exe",
Arguments = $@"/c yarn run cordova build android > log2.txt 2>&1",
RedirectStandardOutput = false,
UseShellExecute = true,
CreateNoWindow = false,
LoadUserProfile = true
}
};
process.Start();
but the log returns this:
A problem occurred evaluating root project 'android'.
> No installed build tools found. Install the Android build tools version 19.1.0 or higher.
I've tried checking and setting the Android\Sdk\tools
and Android\Sdk\platform-tools
on the system's PATH, but no succcess still.
Cordova version: 12.0.0 Gradle version: 8.1.1
Any ideas?
Recently I've developed an app that allows users to generate APK's through a website providing the source.
Manually, the user would've ran yarn run cordova build android
and it would've created the APK normally, but my app is supposed to start a new Process and run that exact same command like this:
var process = new Process
{
StartInfo = new ProcessStartInfo
{
FileName = "cmd.exe",
Arguments = $@"/c yarn run cordova build android > log2.txt 2>&1",
RedirectStandardOutput = false,
UseShellExecute = true,
CreateNoWindow = false,
LoadUserProfile = true
}
};
process.Start();
but the log returns this:
A problem occurred evaluating root project 'android'.
> No installed build tools found. Install the Android build tools version 19.1.0 or higher.
I've tried checking and setting the Android\Sdk\tools
and Android\Sdk\platform-tools
on the system's PATH, but no succcess still.
Cordova version: 12.0.0 Gradle version: 8.1.1
Any ideas?
本文标签: androidRunning cordova build manually worksbut through c39s Process doesntStack Overflow
版权声明:本文标题:android - Running cordova build manually works, but through c#'s Process doesnt - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745603474a2158592.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论