How can these errors be fixed?(SOLVED)

I used the Unity Ads extension but when I tried to bundle the game the following errors occurred:
java.security.PriviligedActionException:Unknown
java.net.UnknownHostException: github.com

How do I fix these errors?

And also the game doesn’t build again.

Hmm, looks strange.
Could you make the next steps please:

  1. Close Defold.
  2. Open your project folder.
  3. Remove .internal and build folders
  4. Open project again

Also, could you please show what libraries you added to your project (screenshot of this section or game.project file)?

Could you try to open this link manually https://github.com/AGulev/DefVideoAds/archive/master.zip ?

1 Like

I added just the Unity Ads extension

Usually, this kind of errors appears when the internet connection is blocked for the Editor.
It could be a standard windows firewall or a custom firewall.

For example, when you start the Editor (the first launch) Windows show you something like this, but for Defold Editor:
Windows-Firewall-has-blocked-some-features-of-this-app-Copy
If you don’t allow access then it could be a reason for the problem.

5 Likes

Thanks it’s working fine now.

2 Likes

Nice catch!
Do we have this in the FAQ?

3 Likes

Hi,
old topic but having same trouble, with shared connexion.

On wifi direct, it works fine, but with internet shared with my phone I always got the error.

Antivirus is off. firewall off.
I deleted .internal and build folder, same issue.

Error message on while fetching libraries :

Unreachable host: https://github.com

Please verify internet connection and try again.

thanks for help

And I assume you can open a browser and access GitHub with the same setup?

yes everything works fine except for defold to reach github.
and I have a very very bad Internet connexion (2Mbs downloads), so sharing phone 4g is far better…

just updated defold: it now works :slight_smile: