Cannot Start Examples

25 posts, 0 answers
  1. J
    J avatar
    2 posts
    Member since:
    Jul 2014

    Posted 19 Jul 2014 Link to this post

    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.
  2. J
    J avatar
    2 posts
    Member since:
    Jul 2014

    Posted 21 Jul 2014 Link to this post

    I managed to fix it by commenting out the offending code, and my testing with the charts didn't need whatever I commented out.
  3. DevCraft banner
  4. Antony Jekov
    Admin
    Antony Jekov avatar
    88 posts

    Posted 21 Jul 2014 Link to this post

    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.

     
  5. Jayson
    Jayson avatar
    4 posts
    Member since:
    Jan 2015

    Posted 24 Jan 2015 Link to this post

    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.
  6. Jayson
    Jayson avatar
    4 posts
    Member since:
    Jan 2015

    Posted 24 Jan 2015 in reply to Jayson Link to this post

    here are the libraries attached.
  7. Jayson
    Jayson avatar
    4 posts
    Member since:
    Jan 2015

    Posted 24 Jan 2015 in reply to Jayson Link to this post

    inside the project source code R cannot be resolved to a variable
  8. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 29 Jan 2015 Link to this post

    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.

     
  9. Darpan
    Darpan avatar
    3 posts
    Member since:
    Feb 2015

    Posted 22 Feb 2015 in reply to Deyan Link to this post

    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.
  10. Andy
    Andy avatar
    2 posts
    Member since:
    Aug 2010

    Posted 23 Feb 2015 Link to this post

    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.  

  11. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 24 Feb 2015 Link to this post

    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.

     
  12. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 24 Feb 2015 Link to this post

    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.

     
  13. Andy
    Andy avatar
    2 posts
    Member since:
    Aug 2010

    Posted 24 Feb 2015 in reply to Deyan Link to this post

    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.

  14. Darpan
    Darpan avatar
    3 posts
    Member since:
    Feb 2015

    Posted 24 Feb 2015 Link to this post

    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')
    }
  15. Darpan
    Darpan avatar
    3 posts
    Member since:
    Feb 2015

    Posted 24 Feb 2015 in reply to Darpan Link to this post

    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>
  16. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 25 Feb 2015 Link to this post

    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.

     
  17. joe
    joe avatar
    2 posts
    Member since:
    Apr 2015

    Posted 13 Apr 2015 Link to this post

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

     

     

  18. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 14 Apr 2015 Link to this post

    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.

     
  19. joe
    joe avatar
    2 posts
    Member since:
    Apr 2015

    Posted 23 Apr 2015 in reply to joe Link to this post

    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>

  20. Martin
    Martin avatar
    1 posts
    Member since:
    Apr 2015

    Posted 25 Apr 2015 Link to this post

    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.

     

  21. Deyan
    Admin
    Deyan avatar
    2038 posts

    Posted 28 Apr 2015 Link to this post

    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.

     
  22. George
    George avatar
    2 posts
    Member since:
    Jul 2015

    Posted 07 Jul 2015 Link to this post

    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
  23. Jack
    Jack avatar
    2 posts
    Member since:
    Oct 2015

    Posted 06 Oct 2015 Link to this post

    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

  24. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 09 Oct 2015 Link to this post

    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
  25. Jack
    Jack avatar
    2 posts
    Member since:
    Oct 2015

    Posted 11 Oct 2015 in reply to Victor Link to this post

    thanks for reply

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

  26. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 14 Oct 2015 Link to this post

    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
Back to Top
DevCraft banner