Mobile Buy SDK - Sample Android App - Not working

Urgent
New Member
2 0 0

I'm trying to get the https://github.com/Shopify/mobile-buy-android-sample app working.

After launching the app in AVD the app shows "Oops, something went wrong please try again".

In Android Studio the following error message is displayed at the bottom of the logs window:

E/BaseApplication: Failed to fetch shop settings
com.shopify.buy3.GraphError$HttpError: HTTP(403)
at com.shopify.buy3.internal.HttpResponseParser.successResponse(HttpResponseParser.kt:55)
at com.shopify.buy3.internal.HttpResponseParser.parse(HttpResponseParser.kt:42)
at com.shopify.buy3.internal.GraphHttpResultCallback.parse(RealGraphCall.kt:332)
at com.shopify.buy3.internal.GraphHttpResultCallback.onResponse(RealGraphCall.kt:311)
at okhttp3.RealCall$AsyncCall.execute(RealCall.java:141)
at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)

0 Likes
Urgent
New Member
2 0 0

Urgent_0-1596147814793.png

No, I'm not happy with my experience.  Why is Shopify not on top of this? 

If you're going to provide sample apps then provide some support to go with them.

0 Likes
jigneshdev
New Member
1 0 0

Check in shop.properties file your API_KEY is same as Storefront access token because i have same error like you and this thing fix my error

SHOP_DOMAIN=<yourstore>.myshopify.com
API_KEY=store-access-token

image.png

0 Likes