Skip to main content
14-Alexandrite
Sep 5, 2024 8:35 AM UTC
Solved

Run Android Steam Sensor Application Issue

 

I downloded the last version of Java sdk thingworx (7.0.2) and I am trying to build the Android-Steamsensor sample.

 

I am following this tutorial (3 steps):

https://support.ptc.com/help/thingworx/edge_sdk_java/en/index.html#page/java_sdk/c_android_sdk_samples_build_cmd_line.html#wwID0EOLIO

 

I run gradle.bat assemble

 

=> Output:

 

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.3/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 740ms

 

According to the tutorial, this command produces your ready-to-deploy apk files in the subdirectory, build/outputs/apk. 

 

However there nothing !

 

Any idea ?

 

Thank you for your help

 

 

 

 

 

 

 

 

 

Rocko
RockoAnswer
19-Tanzanite
Sep 5, 2024 11:46 AM UTC

Ok, I have the same here, also with the other android sample projects. Have you tried build it using Android Studio? There is in the doc a section that says "Download and extract the distribution bundle for the Android SDK. This installation provides the appropriate environment for building and running the examples."

Nevertheless the doc page you listed says otherwise, therefore I suggest to create a ticket with support as it's clearly not working as described.

 

3 replies

Rocko
19-Tanzanite
Sep 5, 2024 9:37 AM UTC

the documentation you link says:

 
Do not try to build any of these projects using your own, locally installed version of Gradle. The Gradle plugins are sensitive to the version of Gradle that you use to build the project, and the project build will fail. Run one of the commands shown above.

 

There is no gradle.bat in the distribution. There is only gradlew.bat. When you run gradle.bat you take some other gradle installation from your system which is gradle 7, not gradle 6 so it won't run.

you need to run

.\gradlew.bat assemble

 

Translate
14-Alexandrite
Sep 5, 2024 10:32 AM UTC

Yes of course, i notice that i need to run the gradle wrapper in the package and not the one installed on my machine.

i put an echo in gradlew.bat and here is the runned  command:

 

URL TO JAVA/java.exe" "-Xmx64m" "-Xms64m" "-Dorg.gradle.appname=gradlew" -classpath "URL OF THE PROJECT\gradle\wrapper\gradle-wrapper.jar" org.gradle.wrapper.GradleWrapperMain assemble

 

As i said the build is successful but nothing generated !

 

Translate
Rocko
Rocko19-TanzaniteAnswer
19-Tanzanite
Sep 5, 2024 11:46 AM UTC

Ok, I have the same here, also with the other android sample projects. Have you tried build it using Android Studio? There is in the doc a section that says "Download and extract the distribution bundle for the Android SDK. This installation provides the appropriate environment for building and running the examples."

Nevertheless the doc page you listed says otherwise, therefore I suggest to create a ticket with support as it's clearly not working as described.

 

Translate