Reputation: 44
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?
Upvotes: 0
Views: 24