This is a migrated thread and some comments may be shown as answers.

Cannot Start Examples

24 Answers 249 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
J
Top achievements
Rank 1
J asked on 19 Jul 2014, 07:56 PM
Hello.

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

Sort by
0
J
Top achievements
Rank 1
answered on 21 Jul 2014, 10:05 AM
I managed to fix it by commenting out the offending code, and my testing with the charts didn't need whatever I commented out.
0
Antony Jekov
Telerik team
answered on 21 Jul 2014, 12:53 PM
Hello Mr. Withey,

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.

 
0
Jayson
Top achievements
Rank 1
answered on 24 Jan 2015, 07:52 AM
I just followed everything from getting-started http://docs.telerik.com/devtools/android/download-and-deployment/getting-started-for-eclipse and downloaded msi and .zip file containing the eclipse project for telerik-ui-android. Unfortunately, I've got this errors.
0
Jayson
Top achievements
Rank 1
answered on 24 Jan 2015, 07:54 AM
here are the libraries attached.
0
Jayson
Top achievements
Rank 1
answered on 24 Jan 2015, 08:13 AM
inside the project source code R cannot be resolved to a variable
0
Deyan
Telerik team
answered on 29 Jan 2015, 08:53 AM
Hello Jayson,

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.

 
0
Darpan
Top achievements
Rank 1
answered on 23 Feb 2015, 12:04 AM
I am not sure if this issue was ever resolved. I am running into a similar issue where I fixed the gradle.build files for the example AndroidStudio project. However, I am getting 101 errors. Screenshot attached for an error that I am getting.
0
Andy
Top achievements
Rank 1
answered on 23 Feb 2015, 06:10 PM
I am having the exact same problems.  I am currently comparing charting packages and while there is "some" promise with the Telerik tooling based on the example app in the play store and the documentation, the fact I cannot compile the samples in Android Studio without effort and even then having it fail is a big negative on this assessment.  

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.  

0
Deyan
Telerik team
answered on 24 Feb 2015, 08:30 AM
Hi Andy,

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.

 
0
Deyan
Telerik team
answered on 24 Feb 2015, 08:39 AM
Hello Darpan,

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.

 
0
Andy
Top achievements
Rank 1
answered on 24 Feb 2015, 05:16 PM
Nope.  That's not the issue.  The entire gradle file is below.  This is after importing the project, removing app-compat, setting compile, min, and target to 19, ...

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.

0
Darpan
Top achievements
Rank 1
answered on 25 Feb 2015, 03:27 AM
Hi Deyan,
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')
}
0
Darpan
Top achievements
Rank 1
answered on 25 Feb 2015, 03:32 AM
Oh, forgot to post details on the themes.xml where I commented out the code. The file is located at Telerik_UI_for_Android_2014_3_1403_TRIAL/Examples/AndroidStudio/src/main/res/values folder.

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>
0
Deyan
Telerik team
answered on 25 Feb 2015, 08:33 AM
Hi Darpan,

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.

 
0
joe
Top achievements
Rank 1
answered on 13 Apr 2015, 07:35 AM

I am getting many errors.and the screenshot attached for an error.

 

 

0
Deyan
Telerik team
answered on 14 Apr 2015, 07:36 AM
Hi joe,

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.

 
0
joe
Top achievements
Rank 1
answered on 24 Apr 2015, 01:48 AM

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>

0
Martin
Top achievements
Rank 1
answered on 25 Apr 2015, 10:34 PM

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.

 

0
Deyan
Telerik team
answered on 28 Apr 2015, 06:55 AM
Hello Martin,

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.

 
0
George
Top achievements
Rank 1
answered on 07 Jul 2015, 08:03 AM
Now they are shown in a Android view which you can change to Project view so that your project is visualized as in our documentation
0
Jack
Top achievements
Rank 1
answered on 06 Oct 2015, 05:50 AM

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

0
Victor
Telerik team
answered on 09 Oct 2015, 10:20 AM
Hi å‚‘å…‹ å»–,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Jack
Top achievements
Rank 1
answered on 12 Oct 2015, 03:52 AM

thanks for reply

i have installed the app compat library , but still not work

0
Victor
Telerik team
answered on 14 Oct 2015, 07:50 AM
Hello Jack,

I answered your other thread about the same build errors.

Regards,
Victor
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussion
Asked by
J
Top achievements
Rank 1
Answers by
J
Top achievements
Rank 1
Antony Jekov
Telerik team
Jayson
Top achievements
Rank 1
Deyan
Telerik team
Darpan
Top achievements
Rank 1
Andy
Top achievements
Rank 1
joe
Top achievements
Rank 1
Martin
Top achievements
Rank 1
George
Top achievements
Rank 1
Jack
Top achievements
Rank 1
Victor
Telerik team
Share this question
or