nightscout / AndroidAPSBuilder

Utilities to build AndroidAPS apk
20 stars 27 forks source link

Installation of JDK fails - Windows 10 #3

Open roppenheimer opened 2 years ago

roppenheimer commented 2 years ago

Installation of JDK fails - Windows 10

Downloading x64 to C:\Users\Richard\Downloads\8u162-x64.exe Downloading C:\Users\Richard\Downloads\8u162-x64.exe failed Press Any Key To Continue...

th122 commented 2 years ago

This script really only works for a specific version (or range of versions) and looks rather outdated. All components that get installed are hard-coded in their respective scripts to a set of versions that probably worked well together in the past, but versions have progressed, and paths changed...

The jdk that is supposed to be downloaded is v8u164. It does work to download the current jdk from Oracle (they changed licensing, so download paths may have changed as well), download and install the current version. As of 2021-12-11 that was v8u311. Then for ease of use I changed all occurrences of 164 in installJdk.psi to 311, commented out the actual downloading and the check, but left the check for the Java directory. It did then set the Java Home variable that is needed for continuing.

Android SDK will then be downloaded and installed ok (not sure it"s really the version needed). (Installing a current version manually looks way better) but for downloading AAPS, it is still using MilosKozak/AndroidAPS.git

Then you most certainly want to substitute nighscout for MilosKozak in the github path to retrieve a current version of AAPS and try to proveed from then on.