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

Please add example for PlayAssetDelivery java #61

Open
litoco opened this issue May 21, 2020 · 1 comment
Open

Please add example for PlayAssetDelivery java #61

litoco opened this issue May 21, 2020 · 1 comment
Assignees

Comments

@litoco
Copy link

litoco commented May 21, 2020

I was trying to implement Play Asset Delivery for java from here. But then there were 2 problems with that:

  1. Step number 9 here didn't work for me. ( I am using classpath 'com.android.tools.build:gradle:4.0.0-rc01' and distributionUrl=https\://services.gradle.org/distributions/gradle-6.2.2-bin.zip in my project)
  2. There was no error due to step1 but when I tried to get the asset from AssetManager it was throwing exception java.io.FileNotFoundException: asset1.mp4.
    Please add code for reference.
@ShenshenCui
Copy link

We will add java example later. Meanwhile you can refer to https://developer.android.com/guide/playcore/asset-delivery/integrate-java which have some code snipeet.
In order to test loading the asset, you can follow the local testing guide here:https://developer.android.com/guide/playcore/asset-delivery/test#steps-native-java

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

3 participants