0

I am very new to coding in Java/Android Studio so please bare with me.I am trying to run demo app in Exoplayer provided on github(https://github.com/google/ExoPlayer). I tried to following steps:

-imported the project to android studio 2.2 by File=>Navigate to directory containing exoplayer

-Tools=>Android=>Sync Project with gradle files
-press run button and i get this error:

error:

 Error running playbacktests: Default Activity not found

Could any one help me fix this error and run the demo exoplayer application successfully on android studio 2.2. Thanks in advance.

user1788736
  • 2,727
  • 20
  • 66
  • 110

1 Answers1

1

Try to update the Gradle version (build.gradle that's at the root not inside app folder) like this :

 dependencies {
            classpath 'com.android.tools.build:gradle:2.2.2'

    }
GB11
  • 175
  • 1
  • 18
  • Thanks for reply . I tried what you suggested and re sync and now i get this error :Error:Minimum supported Gradle version is 2.14.1. Current version is 2.10. If using the gradle wrapper, try editing the distributionUrl in f:\Projects\ExoPlayer-release-v2\gradle\wrapper\gradle-wrapper.properties to gradle-2.14.1-all.zip Fix Gradle wrapper and re-import project
    Gradle settings . How to fix it ?
    – user1788736 Dec 08 '16 at 02:18
  • 1
    Finally by pressing "Fix Gradle wrapper and re-import project" the second error went away and i selected demo from run drop-down menu and project run on simulator successfully! – user1788736 Dec 08 '16 at 02:58
  • then have a noce coding :) – GB11 Dec 08 '16 at 03:01