Closed iehsan77 closed 4 years ago
You are not importing the SDK correctly. What version are you using?
i am using implementation "com.giphy.sdk:ui:1.2.5"
Please use GPHMediaView
object, not GifView
. That one is an internal object and should not be used. Where did you take the reference for it? It's not in the docs.
I use GPHMediaView but i get Error inflating class com.giphy.sdk.ui.views.GPHMediaView how can i solve it
put the Giphy.configure(this, YOUR_ANDROID_SDK_KEY)Giphy.configure(this, YOUR_ANDROID_SDK_KEY)
before inflating the layout inside the fragment
I am getting this same crash, but I'm already putting the configure call before I inflate the layout using com.giphy.sdk.ui.views.GPHMediaView
hii i'm getting error "android.view.InflateException: Binary XML file line #13: Error inflating class com.giphy.sdk.ui.views.GiphyGridView" and also i'm using a fragment pls help
@yash292005 we have the example app, it has GridViewDemoActivity
and DemoActivity
samples. Does it work for you?
Also, please refer this documentation.
Hii ALexander your idea worked just fine. but i'm having another issue regarding the giphy, the url "http://giphy.bintray.com/giphy-sdk" is showing error 403 forbidden and due to this m can't compile my app do you have any suggestion ? on how to fix it please suggest. thanks for reading
On Tue, May 11, 2021 at 2:13 PM ALexanderLonsky @.***> wrote:
@yash292005 https://github.com/yash292005 we have the example app, it has GridViewDemoActivity and DemoActivity samples. Does it work for you?
Also, please refer this https://github.com/Giphy/giphy-android-sdk/blob/v2.0.6/Docs.md#basic-setup documentation.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Giphy/giphy-android-sdk/issues/31#issuecomment-838086735, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASFB6IRXFRYIPBRBQQ3PFD3TNDU2XANCNFSM4MDKPWWA .
@yash292005 we have migrated from JCenter to MavenCentral: https://search.maven.org/artifact/com.giphy.sdk/ui/2.1.0/aar
Thanks, I will check it out.
On Sun, 6 Jun 2021 at 10:23 PM, ALexanderLonsky @.***> wrote:
@yash292005 https://github.com/yash292005 we have migrated from JCenter to MavenCentral: https://search.maven.org/artifact/com.giphy.sdk/ui/2.1.0/aar
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/Giphy/giphy-android-sdk/issues/31#issuecomment-855428270, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASFB6IQM75HVN4SQFSSQMDTTRORYDANCNFSM4MDKPWWA .
hii for some reason this is still not working this is my build.gradle(project level): buildscript { ext.kotlin_version = "1.3.72" repositories { google() mavenCentral() } dependencies { classpath "com.android.tools.build:gradle:4.1.3" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects { repositories { google() mavenCentral() maven { url "http://giphy.bintray.com/giphy-sdk" }
}
}
task clean(type: Delete) { delete rootProject.buildDir }
and i've implemented this line: implementation 'com.giphy.sdk:ui:2.1.0' in my app level dependency the error that the compiler is giving is : "Could not HEAD 'http://giphy.bintray.com/giphy-sdk/io/alterac/blurkit/blurkit/1.1.1/blurkit-1.1.1.pom'. Received status code 403 from server: Forbidden Disable Gradle 'offline mode' and sync project " can you suggest what should i do thanks for your reading and your previous response.
@yash292005 please keep JCenter for now, you should remove this:
maven {
url "http://giphy.bintray.com/giphy-sdk"
}
and keepJCenter + MavenCentral
as here:
https://github.com/Giphy/giphy-android-sdk/blob/main/build.gradle.kts
Unfortunately, Blurkit and the latest Fresco version are not on Maven yet and it's required to keep JCenter for now
Thanks brother Your suggestion worked just fine and my android app is working and i'm more than happy to have giphy on my application. Your a real Hero , let me know if i can help you in any way. THANKYOU SO MUCH
hii i just wanted to know that can we share the gifs and other item the sdk has to offer over whatsapp or other social media using intent's start activity function?? ( IN THE GRID VIEW)
hey @yash292005, please, start a new topic for a new issue in the future.
Giphy GridView does not provide a Share
feature.
But you can use the SDK to retrieve the GPHMedia
that can be shared using the Android Sharesheet
i got this when i am trying to view animated gif in a
<com.giphy.sdk.ui.views.GifView android:layout_width="" android:layout_height=""
Process: com.example.smeschat, PID: 30706 android.view.InflateException: Binary XML file line #54: Binary XML file line #54: Error inflating class com.giphy.sdk.ui.views.GifView Caused by: android.view.InflateException: Binary XML file line #54: Error inflating class com.giphy.sdk.ui.views.GifView Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Constructor.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:334)