GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Blob creation fails when deploying in an Android device · Issue #995 · googleapis/google-cloud-java

Blob creation fails when deploying in an Android device #995

New issue
Copy link
New issue
Copy link
Closed
Closed
Blob creation fails when deploying in an Android device#995
Copy link
Assignees
mziccard

Description

@rafaelsf80
rafaelsf80
opened on May 8, 2016
Issue body actions

Hello,

Trying to deploy this snippet code into an Android device, I got the a NoSuchMethodError run-time exception saying that crc32c() static method does not exist in class com.google.common.hash.Hashing.

The exception is thrown at line where the blob is created:
Blob blob = storage.create(blobInfo, "Hello, Cloud Storage!".getBytes(UTF_8));

The whole Android code here.
Any suggestion would be appreciated.

Reacted by Roy Lee

Activity

Next
  1. mziccard commented on May 9, 2016

    @mziccard
    mziccard
    on May 9, 2016
    Contributor
    More actions

    Hi @rafaelsf80,

    it seems that an older version of guava is being deployed... This is strange... Try adding an explicit exclusion:

    exclude group: 'com.google.guava', module: 'guava-jdk5'
    Reacted by Roy Lee
  2. rafaelsf80 commented on May 9, 2016

    @rafaelsf80
    rafaelsf80
    on May 9, 2016
    Author
    More actions

    Hi @mziccard
    Thanks for your answer, I added this as suggested, but unfortunately still same error related to crc32c static method:

    compile ('com.google.cloud:gcloud-java-storage:0.2.1') {
            exclude group: 'com.google.api-client', module: 'google-api-client-appengine'
            exclude group: 'com.google.guava', module: 'guava-jdk5'
        }
    compile 'com.google.apis:google-api-services-storage:v1beta1-rev131-1.22.0'
  3. mziccard commented on May 9, 2016

    @mziccard
    mziccard
    on May 9, 2016
    Contributor
    More actions

    Try this:

    compile ('com.google.cloud:gcloud-java-storage:0.2.1') {
            exclude group: 'com.google.api-client', module: 'google-api-client-appengine'
            exclude group: 'com.google.guava', module: 'guava-jdk5'
    }
    compile ('com.google.apis:google-api-services-storage:v1beta1-rev131-1.22.0') {
            exclude group: 'com.google.guava', module: 'guava-jdk5'
    }
    
  4. rafaelsf80 commented on May 9, 2016

    @rafaelsf80
    rafaelsf80
    on May 9, 2016
    Author
    More actions

    Thanks again for your quick answer. Unfortunately, the problem remains with the same exception at run-time, related to the crc32c method. Thanks.

  5. mziccard commented on May 9, 2016

    @mziccard
    mziccard
    on May 9, 2016
    Contributor
    More actions

    Could you double check? Maybe cleaning the build first? I've just tried and I managed to create the blob.

  6. rafaelsf80 commented on May 9, 2016

    @rafaelsf80
    rafaelsf80
    on May 9, 2016
    Author
    More actions

    sorry, thanks, my mistake. It worked :)
    Thanks for your quick help

  7. mziccard commented on May 9, 2016

    @mziccard
    mziccard
    on May 9, 2016
    Contributor
    More actions

    You're welcome :)

  8. mziccard
    closed this as completedon May 9, 2016
  9. JustinBeckwith
    assigned
    mziccard
    on Feb 1, 2021
  10. github-actions
    added a commit that references this issue on Jul 18, 2022

    build(deps): update dependency org.apache.maven.plugins:maven-project…

    2c74c72
  11. github-actions
    added 4 commits that reference this issue on Sep 30, 2022

    deps: update dependency com.google.cloud:google-cloud-core to v2.8.18 (…

    ead37cc

    deps: update dependency com.google.cloud:google-cloud-core to v2.8.20 (…

    59351f1

    chore(main): release 0.124.14 (#997)

    d1a85b3

    chore(main): release 3.1.2 (#991)

    94431f9
  12. suztomo
    added a commit that references this issue on Feb 1, 2023

    deps: update dependency com.google.code.gson:gson to v2.10 (#995)

    0244ed8
  13. 1 remaining item

  14. meltsufin
    added 2 commits that reference this issue on Dec 22, 2025

    fix: enable longpaths support for windows test (#1485) (#995)

    b2f68cb

    chore(main): release 3.10.1 (#991)

    afb5304
  15. chingor13
    added a commit that references this issue on Jan 6, 2026

    chore(main): release 0.129.3-SNAPSHOT (#995)

    c8e1169
  16. chingor13
    added a commit that references this issue on Jan 22, 2026

    chore(main): release 2.13.6-SNAPSHOT (#995)

    a0e2597
  17. chingor13
    added a commit that references this issue on Feb 24, 2026

    chore(main): release 1.11.1-SNAPSHOT (#995)

    abde3e5
  18. suztomo
    added 2 commits that reference this issue on Mar 11, 2026

    fix: enable longpaths support for windows test (googleapis#1485) (goo…

    296e3f2

    chore(main): release 3.10.1 (googleapis#991)

    8a54c91
  19. chingor13
    added a commit that references this issue on Mar 12, 2026

    chore(main): release 1.11.1-SNAPSHOT (#995)

    0964b13
  20. suztomo
    added a commit that references this issue on Mar 30, 2026

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    38f7996
  21. lqiu96
    added a commit that references this issue on Apr 1, 2026

    chore(deps): update dependency com.google.cloud:libraries-bom to v26.…

    188bf30
  22. meltsufin
    added 4 commits that reference this issue on Apr 29, 2026

    deps: update dependency com.google.cloud:google-cloud-core to v2.5.0 (#…

    3b3b90a

    chore(main): release 1.115.3 (#1002)

    48745ee

    deps: update dependency com.google.cloud:google-cloud-core to v2.5.0 (#…

    02421cb

    chore(main): release 1.115.3 (#1002)

    30ab197
  23. benjaminp
    added a commit that references this issue on Jul 13, 2026

    test(deps): update dependency com.google.cloud:google-cloud-conforman…

    6e54cf4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @mziccard
    mziccard

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.