I am on a Trial License before I buy.
In ExampleActivity I am getting the error: "Cannot resolve symbol 'TelerikApiKeys'" on line 35, which reads:
import com.telerik.examples.common.TelerikApiKeys;
This then causes the same error on line 97, which reads:
this.feedback.init(TelerikApiKeys.FEEDBACK_API_KEY, "https://platform.telerik.com/feedback/api/v1", uniqueHash);
If the following page is somehow crucial, please explain step-by-step what I need to do as I cannot fathom the contents:
http://docs.telerik.com/devtools/android/controls/feedback/feedback-gettingstarted
Thank you.
24 Answers, 1 is accepted
Thank you for contacting Telerik support.
I looked into the values of the TelerikApiKeys and the values for both trial and the development versions are "<your-api-key-here>".
You need to create your own App Feedback application using the Telerik Platform and use the api key from there. This is the only way of managing the incoming data and having full access to everything your clients are leaving as a feedback for you.
Please take the time to setup the app feedback on your platform account and try again using the api key that you will be provided with.
The platform also supports trial version, so you can use the add feedback application as part of your current trial.
Please let me know if everything is OK and feel free to add to this ticket if you need any further assistance.
Thank you for your time and all best!
Regards,
Antony Jekov
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Looking at your screenshots everything seems to be as required besides the target Android version we are building against: it should be 4.4.2. But since the Examples app is backward compatible down to API level 14, you should be fine.
Not being able to resolve the R class means that there might be some other errors that prevent the IDE from generating this class. Can you please go to the Problems tab in Eclipse and see what types of error messages you are getting and send us a screenshot of that. This will help us better estimate the reason for this behavior.
Some other things come to my mind as well. Can you please let us know which version of the appcompat v7 you are using in your project?
Thanks for your time.
Regards,
Deyan
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Please advise. And, FWIW, following the instructions at http://docs.telerik.com/devtools/android/download-and-deployment/getting-started-for-android-studio is utterly pointless.
Thanks for writing.
Please make sure that you are having the following settings in your build.gradle file:
android {
compileSdkVersion 19
buildToolsVersion
"19.1.0"
defaultConfig {
applicationId
"com.telerik.myapplication"
minSdkVersion 9
targetSdkVersion 19
versionCode 1
versionName
"1.0"
}
buildTypes {
release {
minifyEnabled
false
proguardFiles getDefaultProguardFile(
'proguard-android.txt'
),
'proguard-rules.pro'
}
}
repositories{
flatDir{
dirs
'libs'
}
}
}
dependencies {
compile fileTree(dir:
'libs'
, include: [
'*.jar'
])
compile
'com.android.support:appcompat-v7:19.+'
}
I think the problem is that you are referencing a higher version of the v7 AppCompat library whereas your build target is a lower one. Is that correct?
When it comes to libraries that use resources (.aar files) these settings are important as they determine which framework resource set is being referenced. If your v7 AppCompat is higher version than the target SDK, these errors are possible as the v7 AppCompat is referencing resources that are missing from the target SDK.
For instance, in your getting started tutorial we point out that you need to reference the 19.+ v7 app compat library. Our controls are built against API Level 19 as discussed here: http://docs.telerik.com/devtools/android/download-and-deployment/system-requirements
You need to have the target SDK and v7 AppCompat be version 19. Android Studio will let you know specifically which the latest 19.+ versions are as these are changing. After you update the settings in this way, you should be able to run our Examples app.
Additionally, we will update our online help to state this more clearly as it seems to be confusing.
Let me know should you have additional questions or feedback.
Regards,
Deyan
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
Your case seems to be exactly the same. Please let us know if the instructions in my previous post are helpful.
I am attaching here the v7 AppCompat library v19 for Eclipse for anyone using eclipse.
Regards,
Deyan
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
}
}
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "19.1.0"
defaultConfig {
minSdkVersion 19
targetSdkVersion 19
versionName "version"
}
repositories {
flatDir {
dirs 'libs'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_6
targetCompatibility JavaVersion.VERSION_1_6
}
buildTypes {
release {
minifyEnabled false
proguardFile getDefaultProguardFile('proguard-android-optimize.txt')
}
}
productFlavors {
defaultFlavor {
proguardFile 'proguard-rules.txt'
}
}
}
dependencies {
compile files('libs/analyticsmonitor.jar')
compile files('libs/java2html.jar')
compile(name: 'Common-2014.3.1403-trial-release', ext: 'aar')
compile(name: 'Primitives-2014.3.1403-trial-release', ext: 'aar')
compile(name: 'Input-2014.3.1403-trial-release', ext: 'aar')
compile(name: 'Chart-2014.3.1403-trial-release', ext: 'aar')
compile(name: 'Feedback-2014.3.1403-trial-release', ext: 'aar')
}
Even then, it starts failing with new and exciting issues. I'd suggest posting new steps for getting the samples up and running or, better yet, modify the sample to work with the actual release and not the beta version of android studio.
No rush on response now. I have had to pull the plug on recommending this toolset to the client, but I do thank you for the help you've provided.
Thanks for your response. I was able to play with the gradle file based on your suggestion. There were couple more errors I received so I had to comment out one style property in the themes.xml (@style/SpinnerDropDownStyle). After that I was able to build and test out the sample in an emulator.
Here is a setting in gradle that worked for me.
================================================
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
}
}
apply plugin: 'android'
android {
compileSdkVersion 19
buildToolsVersion "19.1.0"
defaultConfig {
applicationId "com.telerik.myapplication"
minSdkVersion 9
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
repositories{
flatDir{
dirs 'libs'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:19.+'
compile(name: 'Common-2014.3.1403-trial-release', ext: 'aar')
compile(name: 'Primitives-2014.3.1403-trial-release', ext: 'aar')
compile(name: 'Input-2014.3.1403-trial-release', ext: 'aar')
compile(name: 'Chart-2014.3.1403-trial-release', ext: 'aar')
compile(name: 'Feedback-2014.3.1403-trial-release', ext: 'aar')
}
Content of the file looks like this. Commented the code third from the bottom.
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar"></style>
...
...
<style name="BrandedActionBarTheme" parent="DarkTheme">
<item name="android:actionBarStyle">@style/MainActivityActionBar</item>
<item name="android:actionBarWidgetTheme">@style/AppTheme</item>
<!--<item name="android:actionDropDownStyle">@style/SpinnerDropDownStyle</item>-->
</style>
</resources>
Good to hear that you've managed to resolve the case.
@Andy
You need the appcompat library to be able to run the application. This is what our Getting started tutorial and my previous post are saying. It just needs to be aligned with the target SDK version.
Let us know if you have additional questions.
Regards,
Deyan
Telerik
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
I am getting many errors.and the screenshot attached for an error.
Thanks for writing.
I could not find any attachments. Can you please make sure you are correctly attaching the screenshot describing your problem?
Thanks for your time.
Regards,
Deyan
Telerik
See What's Next in App Development. Register for TelerikNEXT.
My Samsung Galaxy S6 SD card has some little problem
<a href="http://www.casesam.co.uk">Samsung Galaxy S6 case</a>
<a href="http://www.casesam.co.uk/category-galaxy-j5-case-cover-33.html">Samsung Galaxy J5 case</a>
Hey, when I look at the KeysRetriever.java Class, there is a reference to: com.telerik.examples.common.TelerikApiKeys.
That class TelerikApiKeys is non existent. Help me clarify about the place where I am supposed to place the API key I obtained from my trial version.
Thank you.
Thanks for writing.
Could you please clarify what kind of API key you would like to use? The TelerikApiKeys is a helper class that retrieves the API keys for the services used throughout the application for demo purposes. Such service is Flickr for example. This class is not needed for running the Examples project. If you have your own Flickr API key, you can directly place it as a return value in the corresponding method of the KeysRetriever.java class.
I hope this helps.
Regards,
Deyan
Telerik
See What's Next in App Development. Register for TelerikNEXT.
Hello
I just followed "Opening the Examples solution" from getting-started http://docs.telerik.com/devtools/android/download-and-deployment/getting-started-for-android-studio and open project . Unfortunately, I've got this errors. Please help me
The first error message indicates that you need to use a newer gradle plugin for android studio. This is specified in the gradle file for your project. For more information on gradle see here. Also for information on the gradle plugin for Android Studio see here.
The missing underline styles are probably because you do not have the app compat library installed. You can use the Android SDK Manager to install it.
Regards,
Victor
Telerik
thanks for reply
i have installed the app compat library , but still not work
I answered your other thread about the same build errors.
Regards,
Victor
Telerik