Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blob creation fails when deploying in an Android device #995

Closed
rafaelsf80 opened this issue May 8, 2016 · 7 comments
Closed

Blob creation fails when deploying in an Android device #995

rafaelsf80 opened this issue May 8, 2016 · 7 comments
Assignees

Comments

@rafaelsf80
Copy link

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.

@mziccard
Copy link
Contributor

mziccard commented May 9, 2016

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'

@rafaelsf80
Copy link
Author

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'

@mziccard
Copy link
Contributor

mziccard commented May 9, 2016

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'
}

@rafaelsf80
Copy link
Author

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

@mziccard
Copy link
Contributor

mziccard commented May 9, 2016

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

@rafaelsf80
Copy link
Author

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

@mziccard
Copy link
Contributor

mziccard commented May 9, 2016

You're welcome :)

@mziccard mziccard closed this as completed May 9, 2016
github-actions bot pushed a commit that referenced this issue Jul 18, 2022
…-info-reports-plugin to v3.4.0 (#995)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [org.apache.maven.plugins:maven-project-info-reports-plugin](https://maven.apache.org/plugins/) | `3.3.0` -> `3.4.0` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/compatibility-slim/3.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.4.0/confidence-slim/3.3.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-aiplatform).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xMTcuNCIsInVwZGF0ZWRJblZlciI6IjMyLjExNy40In0=-->
github-actions bot pushed a commit that referenced this issue Sep 30, 2022
…#995)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-core](https://togithub.com/googleapis/java-core) | `2.8.14` -> `2.8.18` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.18/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.18/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.18/compatibility-slim/2.8.14)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-core/2.8.18/confidence-slim/2.8.14)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/java-core</summary>

### [`v2.8.18`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#&#8203;2818-httpsgithubcomgoogleapisjava-corecomparev2817v2818-2022-09-30)

[Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.17...v2.8.18)

##### Dependencies

-   Update dependency com.google.protobuf:protobuf-bom to v3.21.7 ([#&#8203;960](https://togithub.com/googleapis/java-core/issues/960)) ([1fcd95f](https://togithub.com/googleapis/java-core/commit/1fcd95f2401b66a79383bd79729595334493b0e4))

### [`v2.8.17`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#&#8203;2817-httpsgithubcomgoogleapisjava-corecomparev2816v2817-2022-09-28)

[Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.16...v2.8.17)

##### Dependencies

-   Update dependency cachetools to v5 ([#&#8203;943](https://togithub.com/googleapis/java-core/issues/943)) ([c6c511d](https://togithub.com/googleapis/java-core/commit/c6c511d82534e96fe5b42ad9e4886aaa18efaef3))
-   Update dependency certifi to v2022.9.24 ([#&#8203;934](https://togithub.com/googleapis/java-core/issues/934)) ([c756885](https://togithub.com/googleapis/java-core/commit/c75688575c3c19d0d8a1a2b25c6fe3eb99c229cb))
-   Update dependency charset-normalizer to v2.1.1 ([#&#8203;938](https://togithub.com/googleapis/java-core/issues/938)) ([1520f65](https://togithub.com/googleapis/java-core/commit/1520f65cf6655aed9767d9470e3729a0fc270b9e))
-   Update dependency click to v8.1.3 ([#&#8203;946](https://togithub.com/googleapis/java-core/issues/946)) ([6f7a7f5](https://togithub.com/googleapis/java-core/commit/6f7a7f5f318a7c3586fa79a7a0013bca562b059e))
-   Update dependency com.google.api.grpc:proto-google-common-protos to v2.9.4 ([#&#8203;945](https://togithub.com/googleapis/java-core/issues/945)) ([307e406](https://togithub.com/googleapis/java-core/commit/307e40688d55af3cb96e38972af6035cf846c595))
-   Update dependency gcp-releasetool to v1.8.8 ([#&#8203;935](https://togithub.com/googleapis/java-core/issues/935)) ([a5ba3b8](https://togithub.com/googleapis/java-core/commit/a5ba3b8d6bc43734bb01b0ba04e11b5262db526b))
-   Update dependency google-api-core to v2.10.1 ([#&#8203;947](https://togithub.com/googleapis/java-core/issues/947)) ([1f3da64](https://togithub.com/googleapis/java-core/commit/1f3da6450b1a5093aadaa9f299fc797773cc8480))
-   Update dependency google-auth to v2.12.0 ([#&#8203;948](https://togithub.com/googleapis/java-core/issues/948)) ([361da3d](https://togithub.com/googleapis/java-core/commit/361da3dcaecadd708546447737c5a7c1d9799834))
-   Update dependency google-cloud-core to v2.3.2 ([#&#8203;936](https://togithub.com/googleapis/java-core/issues/936)) ([99c0013](https://togithub.com/googleapis/java-core/commit/99c001309e1f72b84c41b7df55ff26c9f182863a))
-   Update dependency google-cloud-storage to v2.5.0 ([#&#8203;949](https://togithub.com/googleapis/java-core/issues/949)) ([cd6cbfb](https://togithub.com/googleapis/java-core/commit/cd6cbfb3b1c45e2f55d51edee74621a7dbe06401))
-   Update dependency google-crc32c to v1.5.0 ([#&#8203;950](https://togithub.com/googleapis/java-core/issues/950)) ([abd5ff9](https://togithub.com/googleapis/java-core/commit/abd5ff9321304b1238f4dd6fa0b4dd57665b46cc))
-   Update dependency googleapis-common-protos to v1.56.4 ([#&#8203;937](https://togithub.com/googleapis/java-core/issues/937)) ([bd7d676](https://togithub.com/googleapis/java-core/commit/bd7d676c3f221b59768815ccca000c7763aeb7f9))
-   Update dependency importlib-metadata to v4.12.0 ([#&#8203;951](https://togithub.com/googleapis/java-core/issues/951)) ([f0d1fe8](https://togithub.com/googleapis/java-core/commit/f0d1fe8cc2079216b95d8fd24a46de5161801b35))
-   Update dependency jeepney to v0.8.0 ([#&#8203;952](https://togithub.com/googleapis/java-core/issues/952)) ([342614b](https://togithub.com/googleapis/java-core/commit/342614b1275877fb41e8241f0c6061286989df13))
-   Update dependency jinja2 to v3.1.2 ([#&#8203;953](https://togithub.com/googleapis/java-core/issues/953)) ([a1542bf](https://togithub.com/googleapis/java-core/commit/a1542bf8938a72c85b20f97e642dde3666ea0b04))
-   Update dependency keyring to v23.9.3 ([#&#8203;954](https://togithub.com/googleapis/java-core/issues/954)) ([34bbdae](https://togithub.com/googleapis/java-core/commit/34bbdaeb312cce804d92d6b041e3098b8a6c04bc))
-   Update dependency markupsafe to v2.1.1 ([#&#8203;955](https://togithub.com/googleapis/java-core/issues/955)) ([cb444b0](https://togithub.com/googleapis/java-core/commit/cb444b0d274af29ffa3076bd89c42acedf514749))
-   Update dependency protobuf to v3.20.2 ([#&#8203;956](https://togithub.com/googleapis/java-core/issues/956)) ([949b4fe](https://togithub.com/googleapis/java-core/commit/949b4feab38e8b0f0b32ae80067dc07da5a2a383))
-   Update dependency protobuf to v4 ([#&#8203;944](https://togithub.com/googleapis/java-core/issues/944)) ([9d379e2](https://togithub.com/googleapis/java-core/commit/9d379e202dd8bedf0c3bbaab3d3ba593813285d9))
-   Update dependency pyjwt to v2.5.0 ([#&#8203;939](https://togithub.com/googleapis/java-core/issues/939)) ([bd4896e](https://togithub.com/googleapis/java-core/commit/bd4896ed5d0413472ae100b60e5f632506214a97))
-   Update dependency requests to v2.28.1 ([#&#8203;940](https://togithub.com/googleapis/java-core/issues/940)) ([f64fef9](https://togithub.com/googleapis/java-core/commit/f64fef9ef365b43e1ec195db312862000db18627))
-   Update dependency typing-extensions to v4.3.0 ([#&#8203;941](https://togithub.com/googleapis/java-core/issues/941)) ([3b8f163](https://togithub.com/googleapis/java-core/commit/3b8f163789f5cb11a4b461411cb7c1e132439449))
-   Update dependency zipp to v3.8.1 ([#&#8203;942](https://togithub.com/googleapis/java-core/issues/942)) ([96ccc51](https://togithub.com/googleapis/java-core/commit/96ccc51c7107fbbcea6564cdf71fcedb05364761))

### [`v2.8.16`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#&#8203;2816-httpsgithubcomgoogleapisjava-corecomparev2815v2816-2022-09-26)

[Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.15...v2.8.16)

##### Dependencies

-   Update dependency org.threeten:threetenbp to v1.6.2 ([#&#8203;929](https://togithub.com/googleapis/java-core/issues/929)) ([2f797f9](https://togithub.com/googleapis/java-core/commit/2f797f990eacc112dd982e7a8f9155bc229b7bf3))

### [`v2.8.15`](https://togithub.com/googleapis/java-core/blob/HEAD/CHANGELOG.md#&#8203;2815-httpsgithubcomgoogleapisjava-corecomparev2814v2815-2022-09-23)

[Compare Source](https://togithub.com/googleapis/java-core/compare/v2.8.14...v2.8.15)

##### Dependencies

-   Update dependency com.google.api.grpc:proto-google-iam-v1 to v1.6.0 ([#&#8203;925](https://togithub.com/googleapis/java-core/issues/925)) ([a5475c5](https://togithub.com/googleapis/java-core/commit/a5475c5333ca97392c9e64a883826ea1bd976a01))
-   Update dependency com.google.api.grpc:proto-google-iam-v1 to v1.6.1 ([#&#8203;926](https://togithub.com/googleapis/java-core/issues/926)) ([3bc96fb](https://togithub.com/googleapis/java-core/commit/3bc96fbba4907d4ac3d24915870132fed596c0d3))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-vision).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yMDEuMyIsInVwZGF0ZWRJblZlciI6IjMyLjIwOC4yIn0=-->
github-actions bot pushed a commit that referenced this issue Oct 5, 2022
github-actions bot pushed a commit that referenced this issue Oct 5, 2022
🤖 I have created a release *beep* *boop*
---


## [3.1.2](https://togithub.com/googleapis/java-vision/compare/v3.1.1...v3.1.2) (2022-10-03)


### Documentation

* Update comments for image annotator OCR models ([#983](https://togithub.com/googleapis/java-vision/issues/983)) ([5c408fe](https://togithub.com/googleapis/java-vision/commit/5c408fef37777fb9899d9190b89896318f64d262))


### Dependencies

* Update dependency com.google.cloud:google-cloud-core to v2.8.12 ([#984](https://togithub.com/googleapis/java-vision/issues/984)) ([59f683c](https://togithub.com/googleapis/java-vision/commit/59f683ce1933b80a3b6256d9cf7f737c689ba711))
* Update dependency com.google.cloud:google-cloud-core to v2.8.13 ([#992](https://togithub.com/googleapis/java-vision/issues/992)) ([e0882e8](https://togithub.com/googleapis/java-vision/commit/e0882e83f338f4fb530a0c304dfa97bc1977fc56))
* Update dependency com.google.cloud:google-cloud-core to v2.8.14 ([#993](https://togithub.com/googleapis/java-vision/issues/993)) ([efd9c3f](https://togithub.com/googleapis/java-vision/commit/efd9c3fc7863dd4d819e9628d18bb43998f73ef8))
* Update dependency com.google.cloud:google-cloud-core to v2.8.18 ([#995](https://togithub.com/googleapis/java-vision/issues/995)) ([ead37cc](https://togithub.com/googleapis/java-vision/commit/ead37cc0cf1a1af8bb513d89153e30f06ea71f20))
* Update dependency com.google.cloud:google-cloud-core to v2.8.19 ([#1023](https://togithub.com/googleapis/java-vision/issues/1023)) ([ce23a3b](https://togithub.com/googleapis/java-vision/commit/ce23a3b2ae1c49a8df71fd66eda38f4845763cad))
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#1026](https://togithub.com/googleapis/java-vision/issues/1026)) ([71a4c70](https://togithub.com/googleapis/java-vision/commit/71a4c70366ab05af1307d914975aa43a2e5679a7))
* Update dependency com.google.cloud:google-cloud-storage to v2.12.0 ([#986](https://togithub.com/googleapis/java-vision/issues/986)) ([08262f8](https://togithub.com/googleapis/java-vision/commit/08262f87c3ce67eed973ccf9fc2f1f63525f5857))
* Update spring.version to v2.7.4 ([#994](https://togithub.com/googleapis/java-vision/issues/994)) ([8688790](https://togithub.com/googleapis/java-vision/commit/868879044e4296f524d6157d37b8601a5fc8dc4d))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
suztomo pushed a commit that referenced this issue Feb 1, 2023
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.code.gson:gson](https://togithub.com/google/gson) | `2.9.1` -> `2.10` | [![age](https://badges.renovateapi.com/packages/maven/com.google.code.gson:gson/2.10/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.code.gson:gson/2.10/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.code.gson:gson/2.10/compatibility-slim/2.9.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.code.gson:gson/2.10/confidence-slim/2.9.1)](https://docs.renovatebot.com/merge-confidence/) |

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-core).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4yNDEuMTEiLCJ1cGRhdGVkSW5WZXIiOiIzMi4yNDEuMTEifQ==-->
suztomo pushed a commit that referenced this issue Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants