Hello,
I'm trying to build (on Windows 11) a simple tcl program with Androwish.
I get the following error when on the "Cleanup & Build" step:
FAILURE: Build failed with an exception.
* What went wrong:
Unable to get mutable Windows environment variable map
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full
insights.
* Get more help at https://help.gradle.org
Anyone used Androwish recently that may be able to point me in the right direction? I have the following Android tools installed:
Android SDK Built-Tools 34
NDK
Android SDK Command line Tools
Android SDK Platform-Tools
I also installed JDK 17 and JDK 21.
I have ANDROID_HOME and JAVA_HOME environment variables pointing to the install locations above.
I'm a novice here. I was able to build things successively a couple
years ago, but since have a new computer and I'm not sure what may have changed (other than newer versions of Android).
Thanks,
Jacob
java.lang.UnsupportedClassVersionError:com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0
On 12/4/2023 7:10 AM, Jacob wrote:
Hello,
I'm trying to build (on Windows 11) a simple tcl program with
Androwish. I get the following error when on the "Cleanup & Build" step:
FAILURE: Build failed with an exception.
* What went wrong:
Unable to get mutable Windows environment variable map
* Try:
Run with --stacktrace option to get the stack trace. Run with --info
or --debug option to get more log output. Run with --scan to get full
insights.
* Get more help at https://help.gradle.org
Anyone used Androwish recently that may be able to point me in the
right direction? I have the following Android tools installed:
Android SDK Built-Tools 34
NDK
Android SDK Command line Tools
Android SDK Platform-Tools
I also installed JDK 17 and JDK 21.
I have ANDROID_HOME and JAVA_HOME environment variables pointing to
the install locations above.
I'm a novice here. I was able to build things successively a couple
years ago, but since have a new computer and I'm not sure what may
have changed (other than newer versions of Android).
Thanks,
Jacob
Small update here. I realized JDK "1.7" refers to JDK7, not JDK 17.
Anyways, made some progress but now stuck again. I also changed the build.gradle file to reference mavenCentral repository instead of jCentral.The current error is:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\...\AWSDK-c48f047f5b\AWSDK\build.gradle' line: 18
* What went wrong:
A problem occurred evaluating root project 'AndroWishApp'.
java.lang.UnsupportedClassVersionError:com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0
Environment variables: Search "env" -> Umgebungsvariablen diesesKontos bearbeiten
files in folder C:\android\licenses get written
On 12/5/2023 1:18 AM, Harald Oehlmann wrote:
Am 04.12.2023 um 19:54 schrieb Jacob:
On 12/4/2023 7:10 AM, Jacob wrote:
Hello,
I'm trying to build (on Windows 11) a simple tcl program with
Androwish. I get the following error when on the "Cleanup & Build"
step:
FAILURE: Build failed with an exception.
* What went wrong:
Unable to get mutable Windows environment variable map
* Try:
Run with --stacktrace option to get the stack trace. Run with --info
or --debug option to get more log output. Run with --scan to get
full insights.
* Get more help at https://help.gradle.org
Anyone used Androwish recently that may be able to point me in the
right direction? I have the following Android tools installed:
Android SDK Built-Tools 34
NDK
Android SDK Command line Tools
Android SDK Platform-Tools
I also installed JDK 17 and JDK 21.
I have ANDROID_HOME and JAVA_HOME environment variables pointing to
the install locations above.
I'm a novice here. I was able to build things successively a couple
years ago, but since have a new computer and I'm not sure what may
have changed (other than newer versions of Android).
Thanks,
Jacob
Small update here. I realized JDK "1.7" refers to JDK7, not JDK 17.
Anyways, made some progress but now stuck again. I also changed the
build.gradle file to reference mavenCentral repository instead of
jCentral.The current error is:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\...\AWSDK-c48f047f5b\AWSDK\build.gradle' line: 18
* What went wrong:
A problem occurred evaluating root project 'AndroWishApp'.
java.lang.UnsupportedClassVersionError:com/android/build/gradle/AppPlugin : Unsupported major.minor version
52.0
Here are my personal notes to get "bones" run on WIndows 10 64 bit:
As the error informs you: to recent platform tools.
I use version 28.
Hope this helps,
Harald
*Java SDK 1.6 or 1.7*
https://codenotfound.com/java-download-install-jdk-7-windows.html
I have Java8 Update 201. This is JRE, not JDK -> remove
- remove also c:\AppData\Oracle, c:\program files(x86)\java
Install JDK 1.8 (Java 8 202), as 1.7 is out of support.
Download:
https://codenotfound.com/java-download-install-jdk-8-windows.html
jdk-8u202-windows-i586.exe
https://codenotfound.com/java-download-install-jdk-8-windows.html
Disable install option: Public JRE
Environment variables: Search "env" -> Umgebungsvariablen diesesKontos bearbeiten
New: JAVA_HOME
Value: C:\Program Files (x86)\Java\jdk1.8.0_202
Edit: PATH
Add: %JAVA_HOME%\bin
cmd.exe: java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) Client VM (build 25.202-b08, mixed mode)
*Android command line tools for windows*
"tools" folder is: sdk-tools-windows-4333796.zip
from: https://developer.android.com/studio
Unzip to c:\android (so we get a folder c:\android\tools)
New environment (as above):
Var: ANDROID_HOME
Value: c:\android
*gradle*
gradle is automatically downloaded by awsdk.gradlew.bat
But first, the licence must be accepted:
cmd: cd \android\tool\bin
sdkmanager --licenses
yyyyyyy
files in folder C:\android\licenses get written
*Tcl/Tk wish version 8.5 or 8.6 (preferred)*
cmd->wish -> Ashoks TCL 8.6.6 -> o.k.
*Android Platform Tools*
https://developer.android.com/studio/releases/platform-tools
platform-tools_r28.0.2-windows.zip
Unzip to c:\android (so we get c:\Android\platform-tools)
*USB Debugging*
To use adb with a device connected over USB, you must enable USB
debugging in the device system settings, under Developer options.
On Android 4.2 and higher, the Developer options screen is hidden by
default.
To make it visible, go to Settings > About phone and tap Build number
seven times.
Return to the previous screen to find Developer options at the bottom.
*Install Windows USB Driver*
https://developer.android.com/studio/run/oem-usb.html
Load Google USB driver:
https://developer.android.com/studio/run/win-usb.html
File: latest_usb_driver_windows.zip
Unzip it to c:\android (getting folder c:\android\usb_driver
Installation:
https://developer.android.com/studio/run/oem-usb.html#InstallingDriver
Test:
cmd.exe: cd C:\android\platform-tools
adb devices
List of devices attached
S/N device
*Install Apps from unknown sources*
Android:Settings->Security->Unknown source -> yes
Thank you for sharing Harald. I actually did see your page on the wiki.
I was able to build from your steps (I think mavenCentral change was
still needed), but the Android version was too low for my phone. Then
when going to a new Android version it appeared I needed JDK 17.
I was then ultimately able to build the project by using JDK 17, Gradle 8.2.1, com.android.tools.build:gradle:8.1.1, and mavenCentral
repository. However, it still does not run on my phone. I believe
Android 14 (API 34) is 64-bit and perhaps Androidwish is not compatible.
I would love to hear if anyone else has had luck building on newer
Android phones.
Am 04.12.2023 um 19:54 schrieb Jacob:
On 12/4/2023 7:10 AM, Jacob wrote:
Hello,
I'm trying to build (on Windows 11) a simple tcl program with
Androwish. I get the following error when on the "Cleanup & Build" step: >>>
FAILURE: Build failed with an exception.
* What went wrong:
Unable to get mutable Windows environment variable map
* Try:
Run with --stacktrace option to get the stack trace. Run with --info
or --debug option to get more log output. Run with --scan to get full
insights.
* Get more help at https://help.gradle.org
Anyone used Androwish recently that may be able to point me in the
right direction? I have the following Android tools installed:
Android SDK Built-Tools 34
NDK
Android SDK Command line Tools
Android SDK Platform-Tools
I also installed JDK 17 and JDK 21.
I have ANDROID_HOME and JAVA_HOME environment variables pointing to
the install locations above.
I'm a novice here. I was able to build things successively a couple
years ago, but since have a new computer and I'm not sure what may
have changed (other than newer versions of Android).
Thanks,
Jacob
Small update here. I realized JDK "1.7" refers to JDK7, not JDK 17.
Anyways, made some progress but now stuck again. I also changed the
build.gradle file to reference mavenCentral repository instead of
jCentral.The current error is:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\...\AWSDK-c48f047f5b\AWSDK\build.gradle' line: 18
* What went wrong:
A problem occurred evaluating root project 'AndroWishApp'.
java.lang.UnsupportedClassVersionError:com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0
Here are my personal notes to get "bones" run on WIndows 10 64 bit:
As the error informs you: to recent platform tools.
I use version 28.
Hope this helps,
Harald
*Java SDK 1.6 or 1.7* https://codenotfound.com/java-download-install-jdk-7-windows.html
I have Java8 Update 201. This is JRE, not JDK -> remove
- remove also c:\AppData\Oracle, c:\program files(x86)\java
Install JDK 1.8 (Java 8 202), as 1.7 is out of support.
Download:
https://codenotfound.com/java-download-install-jdk-8-windows.html jdk-8u202-windows-i586.exe
https://codenotfound.com/java-download-install-jdk-8-windows.html
Disable install option: Public JRE
Environment variables: Search "env" -> Umgebungsvariablen diesesKontos bearbeiten
New: JAVA_HOME
Value: C:\Program Files (x86)\Java\jdk1.8.0_202
Edit: PATH
Add: %JAVA_HOME%\bin
cmd.exe: java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) Client VM (build 25.202-b08, mixed mode)
*Android command line tools for windows*
"tools" folder is: sdk-tools-windows-4333796.zip
from: https://developer.android.com/studio
Unzip to c:\android (so we get a folder c:\android\tools)
New environment (as above):
Var: ANDROID_HOME
Value: c:\android
*gradle*
gradle is automatically downloaded by awsdk.gradlew.bat
But first, the licence must be accepted:
cmd: cd \android\tool\bin
sdkmanager --licenses
yyyyyyy
files in folder C:\android\licenses get written
*Tcl/Tk wish version 8.5 or 8.6 (preferred)*
cmd->wish -> Ashoks TCL 8.6.6 -> o.k.
*Android Platform Tools* https://developer.android.com/studio/releases/platform-tools platform-tools_r28.0.2-windows.zip
Unzip to c:\android (so we get c:\Android\platform-tools)
*USB Debugging*
To use adb with a device connected over USB, you must enable USB
debugging in the device system settings, under Developer options.
On Android 4.2 and higher, the Developer options screen is hidden by
default.
To make it visible, go to Settings > About phone and tap Build number
seven times.
Return to the previous screen to find Developer options at the bottom.
*Install Windows USB Driver*
https://developer.android.com/studio/run/oem-usb.html
Load Google USB driver:
https://developer.android.com/studio/run/win-usb.html
File: latest_usb_driver_windows.zip
Unzip it to c:\android (getting folder c:\android\usb_driver
Installation: https://developer.android.com/studio/run/oem-usb.html#InstallingDriver
Test:
cmd.exe: cd C:\android\platform-tools
adb devices
List of devices attached
S/N device
*Install Apps from unknown sources*
Android:Settings->Security->Unknown source -> yes
Am 05.12.2023 um 14:19 schrieb Jacob:
On 12/5/2023 1:18 AM, Harald Oehlmann wrote:
Am 04.12.2023 um 19:54 schrieb Jacob:
On 12/4/2023 7:10 AM, Jacob wrote:
Hello,
I'm trying to build (on Windows 11) a simple tcl program with
Androwish. I get the following error when on the "Cleanup & Build"
step:
FAILURE: Build failed with an exception.
* What went wrong:
Unable to get mutable Windows environment variable map
* Try:
Run with --stacktrace option to get the stack trace. Run with
--info or --debug option to get more log output. Run with --scan to
get full insights.
* Get more help at https://help.gradle.org
Anyone used Androwish recently that may be able to point me in the
right direction? I have the following Android tools installed:
Android SDK Built-Tools 34
NDK
Android SDK Command line Tools
Android SDK Platform-Tools
I also installed JDK 17 and JDK 21.
I have ANDROID_HOME and JAVA_HOME environment variables pointing to
the install locations above.
I'm a novice here. I was able to build things successively a couple
years ago, but since have a new computer and I'm not sure what may
have changed (other than newer versions of Android).
Thanks,
Jacob
Small update here. I realized JDK "1.7" refers to JDK7, not JDK 17.
Anyways, made some progress but now stuck again. I also changed the
build.gradle file to reference mavenCentral repository instead of
jCentral.The current error is:
FAILURE: Build failed with an exception.
* Where:
Build file 'C:\Users\...\AWSDK-c48f047f5b\AWSDK\build.gradle' line: 18 >>>>
* What went wrong:
A problem occurred evaluating root project 'AndroWishApp'.
java.lang.UnsupportedClassVersionError:com/android/build/gradle/AppPlugin : Unsupported major.minor version
52.0
Here are my personal notes to get "bones" run on WIndows 10 64 bit:
As the error informs you: to recent platform tools.
I use version 28.
Hope this helps,
Harald
*Java SDK 1.6 or 1.7*
https://codenotfound.com/java-download-install-jdk-7-windows.html
I have Java8 Update 201. This is JRE, not JDK -> remove
- remove also c:\AppData\Oracle, c:\program files(x86)\java
Install JDK 1.8 (Java 8 202), as 1.7 is out of support.
Download:
https://codenotfound.com/java-download-install-jdk-8-windows.html
jdk-8u202-windows-i586.exe
https://codenotfound.com/java-download-install-jdk-8-windows.html
Disable install option: Public JRE
Environment variables: Search "env" -> Umgebungsvariablen diesesKontos bearbeiten
New: JAVA_HOME
Value: C:\Program Files (x86)\Java\jdk1.8.0_202
Edit: PATH
Add: %JAVA_HOME%\bin
cmd.exe: java -version
java version "1.8.0_202"
Java(TM) SE Runtime Environment (build 1.8.0_202-b08)
Java HotSpot(TM) Client VM (build 25.202-b08, mixed mode)
*Android command line tools for windows*
"tools" folder is: sdk-tools-windows-4333796.zip
from: https://developer.android.com/studio
Unzip to c:\android (so we get a folder c:\android\tools)
New environment (as above):
Var: ANDROID_HOME
Value: c:\android
*gradle*
gradle is automatically downloaded by awsdk.gradlew.bat
But first, the licence must be accepted:
cmd: cd \android\tool\bin
sdkmanager --licenses
yyyyyyy
files in folder C:\android\licenses get written
*Tcl/Tk wish version 8.5 or 8.6 (preferred)*
cmd->wish -> Ashoks TCL 8.6.6 -> o.k.
*Android Platform Tools*
https://developer.android.com/studio/releases/platform-tools
platform-tools_r28.0.2-windows.zip
Unzip to c:\android (so we get c:\Android\platform-tools)
*USB Debugging*
To use adb with a device connected over USB, you must enable USB
debugging in the device system settings, under Developer options.
On Android 4.2 and higher, the Developer options screen is hidden by
default.
To make it visible, go to Settings > About phone and tap Build number
seven times.
Return to the previous screen to find Developer options at the bottom.
*Install Windows USB Driver*
https://developer.android.com/studio/run/oem-usb.html
Load Google USB driver:
https://developer.android.com/studio/run/win-usb.html
File: latest_usb_driver_windows.zip
Unzip it to c:\android (getting folder c:\android\usb_driver
Installation:
https://developer.android.com/studio/run/oem-usb.html#InstallingDriver
Test:
cmd.exe: cd C:\android\platform-tools
adb devices
List of devices attached
S/N device
*Install Apps from unknown sources*
Android:Settings->Security->Unknown source -> yes
Thank you for sharing Harald. I actually did see your page on the
wiki. I was able to build from your steps (I think mavenCentral change
was still needed), but the Android version was too low for my phone.
Then when going to a new Android version it appeared I needed JDK 17.
I was then ultimately able to build the project by using JDK 17,
Gradle 8.2.1, com.android.tools.build:gradle:8.1.1, and mavenCentral
repository. However, it still does not run on my phone. I believe
Android 14 (API 34) is 64-bit and perhaps Androidwish is not
compatible. I would love to hear if anyone else has had luck building
on newer Android phones.
Jacob,
you get a warning once when starting, but then it runs correctly.
You have some features removed (like reading the serial number).
But perhaps, my phone (actually industrial bar-code readers) are not
current enough.
Christian ones stated, that he does not want to modernize the whole
build and does not want to switch to 64 bit.
I hope, this changes one day. First, let get 9.0 out of the door.
Take care,
Harald
...
Noted about switching to 64 bit. Hopefully one day soon...
...
Noted about switching to 64 bit. Hopefully one day soon...
On 12/5/23 17:20, Jacob wrote:
... Noted about switching to 64 bit. Hopefully one day soon...
a recent test version isn't that far away and can be found in
the LUCK download section. The AndroWish64-debug.apk there has
support for the armeabi-v7a, arm64-v8a, and x86_64 architectures.
It is here: http://www.ch-werner.de/LUCK/
As always, YMMV. You might even brew your new AndroWish SDK from
it by gradually replacing pieces.
BR,
Christian
...
The 64-bit apk you've uploaded, for what android version is that built?
On 12/6/23 17:21, Jacob wrote:
...
The 64-bit apk you've uploaded, for what android version is that built?
API Level 14, i.e. Android 4.0 (and higher)
BR,
Christian
On 12/9/2023 11:27 PM, undroidwish wrote:
On 12/6/23 17:21, Jacob wrote:
...
The 64-bit apk you've uploaded, for what android version is that built?
API Level 14, i.e. Android 4.0 (and higher)
BR,
Christian
Christian,
Noted. FYI Android now blocks installation of apps built with lower
build targets (rather than just providing a warning like before). I was
able to get the 64-bit apk working on my Android 14 phone (API 34) by
using:
adb install --bypass-low-target-sdk-block AndroWish64-debug.apk
Thanks,
Jacob
Noted. FYI Android now blocks installation of apps built with lower
build targets (rather than just providing a warning like before). I was
able to get the 64-bit apk working on my Android 14 phone (API 34) by
using:
adb install --bypass-low-target-sdk-block AndroWish64-debug.apk
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (0 / 16) |
| Uptime: | 163:01:02 |
| Calls: | 12,095 |
| Calls today: | 3 |
| Files: | 15,000 |
| Messages: | 6,517,783 |