Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X
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):
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
Solved! Go to Solution.
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.
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
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 !
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.