Tyroner
Aspiring developer
Profile
Posts: 175
Reg: Dec 26, 2012
Johannesburg, S...
4,200
11/02/15 08:34 AM (8 years ago)

Android Studio: resolve dependencies

I am using Android Studio Ver 1.4. Trying to import my buzztouch project but getting stuck with following: Gradle: Resolve dependencies: ':app:_debugCompile' Nothing happens after this. Any suggestions as to what could be the problem? Tyrone
 
Tyroner
Aspiring developer
Profile
Posts: 175
Reg: Dec 26, 2012
Johannesburg, S...
4,200
like
11/02/15 01:11 PM (8 years ago)
Strange Android Studio! I closed Android Studio, reopened it and above problem now gone. Running app in Studio now generates errors. I assume it is because something is missing and must be added to project. But do not know where to find it. Here are the errors: Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:assembleDebug] :app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportSupportV42100Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesBase6587Library UP-TO-DATE :app:prepareComGoogleAndroidGmsPlayServicesMaps6587Library UP-TO-DATE :app:prepareDebugDependencies :app:compileDebugAidl :app:compileDebugRenderscript :app:generateDebugBuildConfig :app:generateDebugAssets UP-TO-DATE :app:mergeDebugAssets UP-TO-DATE :app:generateDebugResValues UP-TO-DATE :app:generateDebugResources :app:mergeDebugResources :app:processDebugManifest :app:processDebugResources :app:generateDebugSources :app:preDebugAndroidTestBuild UP-TO-DATE :app:prepareDebugAndroidTestDependencies :app:compileDebugAndroidTestAidl :app:processDebugAndroidTestManifest :app:compileDebugAndroidTestRenderscript :app:generateDebugAndroidTestBuildConfig :app:generateDebugAndroidTestAssets UP-TO-DATE :app:mergeDebugAndroidTestAssets UP-TO-DATE :app:generateDebugAndroidTestResValues UP-TO-DATE :app:generateDebugAndroidTestResources :app:mergeDebugAndroidTestResources :app:processDebugAndroidTestResources :app:generateDebugAndroidTestSources :app:compileDebugNdk UP-TO-DATE :app:compileDebugJava Error:(56, 34) error: package com.google.android.gms.ads does not exist Error:(57, 34) error: package com.google.android.gms.ads does not exist Error:(58, 34) error: package com.google.android.gms.ads does not exist Error:(59, 34) error: package com.google.android.gms.ads does not exist Error:(60, 41) error: package com.google.android.youtube.player does not exist Error:(61, 41) error: package com.google.android.youtube.player does not exist Error:(119, 13) error: cannot find symbol class InterstitialAd Error:(149, 17) error: cannot find symbol class AdView Error:(149, 38) error: cannot find symbol class AdView Error:(154, 35) error: cannot find symbol variable AdSize Error:(156, 17) error: cannot find symbol class AdRequest Error:(156, 52) error: package AdRequest does not exist Error:(166, 17) error: cannot find symbol class AdView Error:(166, 38) error: cannot find symbol class AdView Error:(171, 35) error: cannot find symbol variable AdSize Error:(173, 17) error: cannot find symbol class AdRequest Error:(173, 52) error: package AdRequest does not exist Error:(185, 39) error: cannot find symbol class InterstitialAd Error:(189, 17) error: cannot find symbol class AdRequest Error:(189, 52) error: package AdRequest does not exist Error:(209, 42) error: cannot find symbol variable YouTubeStandalonePlayer Error:(232, 17) error: cannot find symbol class AdView Error:(232, 38) error: cannot find symbol class AdView Error:(237, 35) error: cannot find symbol variable AdSize Error:(239, 17) error: cannot find symbol class AdRequest Error:(239, 52) error: package AdRequest does not exist Error:(249, 17) error: cannot find symbol class AdView Error:(249, 38) error: cannot find symbol class AdView Error:(254, 35) error: cannot find symbol variable AdSize Error:(256, 17) error: cannot find symbol class AdRequest Error:(256, 52) error: package AdRequest does not exist Error:(268, 39) error: cannot find symbol class InterstitialAd Error:(272, 17) error: cannot find symbol class AdRequest Error:(272, 52) error: package AdRequest does not exist Error:(287, 42) error: cannot find symbol variable YouTubeStandalonePlayer Error:(439, 13) error: cannot find symbol class YouTubeInitializationResult Error:(439, 55) error: cannot find symbol variable YouTubeStandalonePlayer Error:Execution failed for task ':app:compileDebugJava'. > Compilation failed; see the compiler error output for details. Information:BUILD FAILED Information:Total time: 5.128 secs Information:38 errors Information:0 warnings Information:See complete output in console Any suggestions? Tyrone
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
11/02/15 11:48 PM (8 years ago)
You are trying to show AdMob ads but there is no Google Play services module to support it. Have a look at this post: https://www.buzztouch.com/forum/thread.php?tid=29C6423266F0F344C9A538B&command=isSearching&currentPage=1&topicTitle=studio&createdBy=&repliedBy=&minViews=-1&maxViews=-1&minReplies=-1&maxReplies=-1&forumCategory= You are probably using the AnWatchListPro plugin. Normally, it contains all it needs to run, in this case support for YouTubeStandalonePlayer and it should have downloaded it automatically. If not, try to reinstall the plugin on your BT server and download the project again, it should work.
 
Tyroner
Aspiring developer
Profile
Posts: 175
Reg: Dec 26, 2012
Johannesburg, S...
4,200
like
11/03/15 05:02 AM (8 years ago)
Thanks Dusko. That problem solved. Now giving only three errors: Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'. Error:(2) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'. Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/tyronerichards/Library/Android/sdk/build-tools/21.1.1/aapt'' finished with non-zero exit value 1 Any ideas? Tyrone
 
Dusko
Veteran developer
Profile
Posts: 998
Reg: Oct 13, 2012
Beograd
22,680
like
11/03/15 06:24 AM (8 years ago)
You have probably downloaded too many levels of Android SDK and something in them wants access to android:TextAppearance.Material.Widget.Button.Inverse android:Widget.Material.Button.Colored It probably has something to do with the Material Design versions of Android SDK. Two ways to resolve it: 1) supply what it wants, or 2) delete where it wants it. Personally, I have found a configuration that works for me and I do not download any additional SDKs, so you may want to do the same. The third error is not an error per se, it just tells you that something else is wrong.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.