Android Packaging error. java.lang.RuntimeException: java.lang.RuntimeException: Error while executing process

Hello, I actually was able to fix my problem, but I want to help other people who also faced this error because I couldnt find any information about this problem in the internet. I spent about 8 hours trying to fix this and finaly solved it.

So I have UE 4.26 and I tried to package for Android and got message about exception without any stacktrace or explanations when :app:compileDebugAidl task started to execute.

“java.lang.RuntimeException: java.lang.RuntimeException: Error while executing process …”

No need to write full error because further it just says that error ocured inside aidl.exe program with some arguments.

I found this video and decided why not to try setup everything in my PC from begining and it actually helped me and that exception went away.