Closed jsun-dd closed 4 years ago
Hi @jsun-dd,
so you have added our maven repository to your apps build.gradle
, added SDK implementation into your project build.gradle
and synced the Gradle files with the project and still cannot see Smartlook.setupAndStartRecording
, am I right?
What happens when you place:
Smartlook.setupAndStart(YOUR_API_KEY);
into your projects Application
class. Does your project build? If it doesn't what is the error message?
Hi there,
Yes that is exactly right. It says "Unresolved reference: Smartlook". Which isn't surprising since I haven't added the import for it.
What is the package name for Smartlook so I can add the import?
Janet
On Mon, Jul 6, 2020, 8:43 AM František Spurný notifications@github.com wrote:
Hi @jsun-dd https://github.com/jsun-dd,
so you have added our maven repository to your apps build.gradle, added SDK implementation into your project build.gradle and synced the Gradle files with the project and still cannot see Smartlook.setupAndStartRecording, am I right?
What happens when you place:
Smartlook.setupAndStart(YOUR_API_KEY);
into your projects Application class. Does your project build? If it doesn't what is the error message?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/smartlook/smartlook-android-sdk/issues/52#issuecomment-654315438, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI27UP6YOQPAVJLGG3OAGXLR2HWKLANCNFSM4OQQ6KJA .
Hi @jsun-dd ,
to answer your question: import com.smartlook.sdk.smartlook.Smartlook
However it seems weird that IDE is not able to resolve that automatically. Let us know if that helped. Otherwise I would say it might be some gradle sync issue.
Hi Adam, That fixed it.
It was just an IDE issue. Thank you!
Janet
On Mon, Jul 6, 2020 at 2:40 PM Adam Cerny notifications@github.com wrote:
Hi @jsun-dd https://github.com/jsun-dd ,
to answer your question: import com.smartlook.sdk.smartlook.Smartlook
However it seems weird that IDE is not able to resolve that automatically. Let us know if that helped. Otherwise I would say it might be some gradle sync issue.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/smartlook/smartlook-android-sdk/issues/52#issuecomment-654479418, or unsubscribe https://github.com/notifications/unsubscribe-auth/AI27UP3Z6QB5PJ5ZJFFYBFDR2JAE3ANCNFSM4OQQ6KJA .
Glad it helped. :] - Fell free to open new issue in case of any problems.
Hi there I'm on an Android native app new to Smartlook. After installing the sdk in build.gradle I'm not able to get my IDE to auto-suggest an import for
Smartlook.setupAndStartRecording
as described in the setup doc.Looking at the API docs and sources, I don't see any way to find out the package name either. Can you let me know what the expected import package is for the
Smartlook
class?