Build for Android jcenter.bintray.com HTTP Jan 13th 2020 issue

jukov

  • Posts: 7
jcenter.bintray.com :
Starting Jan 13th 2020, any non-HTTPS requests will be denied with 403 error.
(https://jfrog.com/blog/secure-jcenter-with-https/)
So, all lines in gradle.build:
url "http://jcenter.bintray.com/"
must be changed to:
url "https://jcenter.bintray.com/"

How to do it?
Now builds for Android does not work for this reason.


« Last Edit: January 13, 2020, 07:44:04 pm by jukov »

vodkaman6661

  • Posts: 121
Hi,

I've got the same issue. But still doesn't work after changing it

Good luck

The gradle build can be found here:
C:\Program Files\Stencyl\plaf\haxe\lib\lime\lime\templates\android\template


jukov

  • Posts: 7
Hey.
Thanks for the answer.
But edit this gradle files doesn’t affect anything!
C:\Program Files\Stencyl\plaf\haxe\lib\lime\lime\templates\android\template\build.gradle
C:\Program Files\Stencyl\plaf\haxe\lib\lime\lime\templates\extension\dependencies\android\build.gradle
C:\Program Files\Stencyl\plaf\haxe\lib\lime\lime\dependencies\extension-api\build.gradle

So these files are constantly regenerated when the project build starts:
..\games-generated\MyGame\Export\android\bin\deps\extension-api\build.gradle
..\games-generated\MyGame\Export\android\bin\build.gradle
and all the time they have this line:
url "http://jcenter.bintray.com/"
, and not what is in the files build.gradle inside C:\Program Files\Stencyl\plaf\haxe\lib\lime\lime\ !!!

What's the matter?

jukov

  • Posts: 7
Reply to myself:
It is necessary to make changes to the C:\Program Files\Stencyl\...\build.gradle files, having administrator rights. Then these changes will be saved and used.

yoplalala

  • *
  • Posts: 1597

pleichty

  • *
  • Posts: 9
I had the same problem but had to edit more gradle.build files at
1. C:\Program Files\Stencyl\plaf\haxe\lib\lime\lime\templates\android\template\gradle.build -- this is the one mentioned above
2. C:\Program Files\Stencyl\plaf\haxe\lib\lime\lime\templates\dependencies\extension-api\gradle.build
3. C:\Program Files\Stencyl\plaf\haxe\lib\lime\lime\templates\extension\dependencies\gradle.build
I'm not sure I needed all 3 but, it works with all 3.

Lamberts

  • Posts: 5
THANK YOU!

With changes in file locations it works also on MacOs X
1. /Applications/Stencyl-4.0.2-mac/plaf/haxe/lib/lime/lime/templates/android/template/build.gradle
2./Applications/Stencyl-4.0.2-mac/plaf/haxe/lib/lime/lime/templates/extension/dependencies/android/build.gradle
3./Applications/Stencyl-4.0.2-mac/plaf/haxe/lib/lime/lime/dependencies/extension-api/build.gradle