0
我對Java/Android Studio的編碼非常陌生,所以請和我一起裸照。我試圖在github上提供的Exoplayer中運行演示應用(https://github.com/google/ExoPlayer)。我嘗試以下步驟:如何將ExoPlayer導入到Android Studio 2.2?
-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 running playbacktests: Default Activity not found
可以在任何一個可以幫助我解決這個錯誤,併成功地在Android Studio 2.2中運行演示exoplayer應用。提前致謝。
感謝您的答覆。我嘗試了你的建議並重新同步,現在我得到這個錯誤:錯誤:最小支持的Gradle版本是2.14.1。當前版本是2.10。如果使用gradle包裝,請嘗試編輯f:\ Projects \ ExoPlayer-release-v2 \ gradle \ wrapper \ gradle-wrapper.properties中的distributionUrl到gradle-2.14.1-all.zip Fix Gradle wrapper and re-import project
Gradle settings。如何解決它? – user1788736
也許這可以幫助你http://stackoverflow.com/a/34814536/4911779 – GB11
最後通過按「修復Gradle包裝和重新導入項目」第二個錯誤消失了,我選擇演示從運行下拉菜單和項目成功模擬器上運行! – user1788736