Cannot solve this
I have tried everything I could find
try {
process = Runtime.getRuntime().exec("chmod -777 YourAndroidStudioFolder"+
"chmod +x /User/Library/Android/sdk/build-tools/23.0.1/aapt\\n\" +\n" +
" \"chmod +x /User/Library/Android/sdk/build-tools/23.0.1/dx\\n\" +\n" +
" \"chmod +x /User/Library/Android/sdk/build-tools/23.0.1/zipalign"+"cat config.cpp");
dataOutputStream = new DataOutputStream(process.getOutputStream());
//dataOutputStream.writeBytes("g++ config.cpp -o a.out");
//dataOutputStream.writeBytes("exit\n");
dataOutputStream.flush();
process.waitFor();
Log.v("SUccess", "works");
} catch (Exception e) {
Log.v("Error:",e.toString());
} finally {
try {
if (dataOutputStream != null) {
dataOutputStream.close();
}
process.destroy();
} catch (Exception e) {
}
}
This code works but
process = Runtime.getRuntime().exec("g++ config.cpp -o a.out");
This does not work keeps getting error13.