rubygarage / shopapp-android

ShopApp is an application that transfers an online store into a mobile app
Apache License 2.0
169 stars 107 forks source link

App is crush when its installed #200

Closed sharif-rcis closed 5 years ago

sharif-rcis commented 5 years ago

java.lang.RuntimeException: Unable to create application com.shopapp.ShopApplication: java.lang.IllegalStateException: com.shopapp.di.module.RepositoryModule must be set at android.app.ActivityThread.handleBindApplication(ActivityThread.java:5008) at android.app.ActivityThread.access$1600(ActivityThread.java:177) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1495) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:135) at android.app.ActivityThread.main(ActivityThread.java:5930) at java.lang.reflect.Method.invoke(Native Method) at java.lang.reflect.Method.invoke(Method.java:372) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1405) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200) Caused by: java.lang.IllegalStateException: com.shopapp.di.module.RepositoryModule must be set at com.shopapp.di.component.DaggerAppComponent$Builder.build(DaggerAppComponent.java:437) at com.shopapp.ShopApplication.buildAppComponent(ShopApplication.kt:51) at com.shopapp.ShopApplication.onCreate(ShopApplication.kt:35) at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1019)

narayananiyer86 commented 5 years ago

Im getting the same error. My store is woocommerce.

DenysZP commented 5 years ago

@narayananiyer86, @sharif-rcis did you initialize the API? val api = ShopifyApi(this, "BASE DOMAIN", "STOREFRONT ACCESS TOKEN", "API KEY", "API PASSWORD") //Initialize your api here.

narayananiyer86 commented 5 years ago

Hey.Im using woocommerce. How do i inititialize the api for woocommerce ?

DenysZP commented 5 years ago

@narayananiyer86 Please follow the documentation.

narayananiyer86 commented 5 years ago

Hello. Im on that page already. What should be put in place of Shopify. My store is WooCommerce.When i put WooCommerce it appears in RED

DenysZP commented 5 years ago

At the moment, the application does not support the implementation for the WooCommerce. You can implement the API for this platform yourself.

narayananiyer86 commented 5 years ago

that will take time for us sir. any code/resources readily available for us to start ?

DenysZP commented 5 years ago

You can read the WooCommerce documentation and then create your own implementation of the API.

narayananiyer86 commented 5 years ago

any alternative projects can you refer us to sir ? we are time crunched here .

narayananiyer86 commented 5 years ago

alternative projects that are having the free to use commercial licesnce like yours.

DenysZP commented 5 years ago

Sorry, I have no information about this.