We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

PIXIP's avatar
PIXIP
Explorer | Level 4
2 years ago

Specification '\dropbox-sdk-java\generated_stone_source\main\src' must have a .stone extension

After importing the dropbox-sdk-java example from the official GitHub into Android Studio I get this building and trying to run it:

 

Specification 'C:\Users\XXX\StudioProjects\dropbox-sdk-java\dropbox-sdk-java\generated_stone_source\main\src' must have a .stone extension.

Execution failed for task ':dropbox-sdk-java:generateStone'.

Process 'command 'python'' finished with non-zero exit value 1

 

Android Studio version is Electric Eel

    • PIXIP's avatar
      PIXIP
      Explorer | Level 4

      No need to change anything in the SDK

      I literally just cloned it from https://github.com/dropbox/dropbox-sdk-java and then built it and tried to run examples.android on both a default AVD (API 33) and a physical device

      Python version is 3.10.10

      • Здравко's avatar
        Здравко
        Legendary | Level 20

        Hi again PIXIP,

        You just enlightened a bug in Dropbox Java SDK. 😁

        Yes, Dropbox rely on deprecated packages for a long time.  Actually since Python3.3, some of the packages used here are designated as deprecated. In Python3.9 those packages are already dropped. 🤷 That's where your error comes from. Let's hope Dropbox developers will fix it soon. In meantime, as a workaround, you can install Python 3.8 and use it. 😉 Make sure that python command exists and points the correct executable (sometimes only python3 exists; create proper link if needed too).

        Hope this helps to some extent.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 12 months ago
326 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!