processing-android icon indicating copy to clipboard operation
processing-android copied to clipboard

Exported Android Projects cannot be properly imported into Android Studio

Open codeanticode opened this issue 4 years ago • 2 comments

The Gradle project file generated by the mode does not show with the full structure of an Android project in Android Studio, a warning message informs that the project does not use the Gradle build system:

image

codeanticode avatar Apr 29 '21 19:04 codeanticode

Hi @codeanticode, I tried importing the project on windows and didn't face this issue. Can I get some more information on this to reproduce the issue? Thanks, Rupesh

rupeshkumar22 avatar Apr 30 '21 22:04 rupeshkumar22

I exported a sketch using the "Export Android Project" option under the File menu, and then tried to import project from Android Studio. I used AS 4.1.3. Thank you!

codeanticode avatar Apr 30 '21 23:04 codeanticode

I confirm that wrappers files and gradlew command issues can be fixed with #747 for older Android Studio using older gradle versions, but to my surprise, I tried importing the project exported from Android Mode in the latest Android Studio Flamingo and the gradle build corrected the wrapper files i.e included the gradle-wrapper.jar by itself after importing which is not currently part of Export Android Project in Android Mode as of now. I confirm exported project from Android Mode working fine on the latest Android Studio Flamingo 2022.2.1

rupeshkumar22 avatar Jul 20 '23 10:07 rupeshkumar22

@rupeshkumar22 thanks for confirming that the export functionality is working!

Actually, the project export for AR sketches was broken, but this commit fixed it https://github.com/processing/processing-android/commit/bdde55ade6549fa7f28abf73169e37b61860cc5c :-)

codeanticode avatar Oct 29 '23 23:10 codeanticode