Some problems with the first Android studio project

Source: Internet
Author: User
Tags aliyun

At first, I was using Android studio3.1 to get the ". Gradle" problem. The workaround is https://www.zhihu.com/question/37810416. Add Build.gradle in Project

Maven {URL ' http://maven.aliyun.com/nexus/content/groups/public/'}
maven{url ' http://maven.aliyun.com/nexus/content/repositories/jcenter '}

When configuring the HTTP proxy, I used the Dalian Neusoft Information Institute mirror server address:
-http://mirrors.neusoft.edu.cn Port: 80

I changed to Android studio2.3 because I had a problem next. First, I met

Gradle Sync Failed:could Not the Find Method Android () for arguments [[email protected]] on root project ' Firstapplication ' O F Type Org.gradle.api.Project.
Consult IDE Log for + details (Help | Show Log)

The workaround is to remove the Build.gradle in project

android{

}

dependencies{

}

The reason is that the build.gradle in the app already has these two things. Reference: Issues in StackOverflow.

Second encounter: Failed to resolve:junit:junit:4.12, there is a similar.

The workaround is: https://stackoverflow.com/questions/36992657/failed-to-resolve-junitjunit12.

I don't understand the specific reason.

The compilation is complete.

Some problems with the first Android studio project

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.