Android new Project card in Gradle:resolve dependencies ': App:_debugcompile '

Source: Internet
Author: User
Tags one more line

Today update ANDROIDSDK to 5.0, found new project card in gradle:resolvedependencies ': App:_debugcompile '

first of all,googledevelop is not accessible, if you can not do this. (Angel with Broken Wings)

Secondly, I have added disable.android.first.run=true at the end of the android-studio/bin/idea.properties.

There is no good solution on the StackOverflow, there is no such problem abroad!!


self-reliance, first closing the jammed Androidstudio

Open the directory of the project you just created and find it in the app directory build.gradle

Compare the Build.gradle of a project that could have been opened previously

found one more line:compile ' com.android.support:appcompat-v7:21.0.3 '

Guess this is not found, need to download (stuck)

First delete or comment out, after reopening the project, you can start the

Error in Project:

<style name= "Apptheme" parent= "Theme.AppCompat.Light.DarkActionBar" >

<!--Customize your themehere. -


public class Mainactivity extendsactionbaractivity {


A ctionbar trouble, or with Activity instead of actionbaractivity ,

Android:Theme.Holo.Light.DarkActionBar instead of Theme.AppCompat.Light.DarkActionBar is


If you need Actionbaractivity, you need to load com.android.support:appcompat-v7:21.0.3

find Android-support-v7-appcompat.jar to join the project app/libs

Project view,libs directory, right-Android-support-v7-appcompat.jar as library

compilefiles (' Libs/android-support-v7-appcompat.jar ') in build.gradle


Reference:

http://stormzhang.com/android/2015/03/29/android-support-library/

Android new Project card in Gradle:resolve dependencies ': App:_debugcompile '

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.