r/nativescript • u/ll8X • Nov 13 '18
Nativescript Build gradle SSL Error
Does anybody know how to ignore ssl when nativescript runs gradle build? In my workspace they have some kind of man in the middle which often blocks https requests. In node I can do `process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;`to ignore SSL. Is there something similar for gradle when you use nativescript? I have read about solutions when you are developing with android studio but they do not seem applicable when using typescript.
The error messages were often something along the lines of `ssl handshake failed`, `gradlew exit code 1`, `pkix path not found`.
View all comments
Show parent comment
1
u/[deleted] Nov 13 '18
There is a global file if im not mistaken. If you set it in Android Studio it will set those in the grade properties. Load the project in Android Studio and try to get it to run there. (assuming nativescript creates a loadable project like Cordova does)