android file-dependancy android-support-library android-gradle-plugin android-recyclerview
我在Intellij Idea中创建了一个Android项目(我使用的是Android Studio而不是Android Studio,因为我还需要在项目中管理一些React代码).我创建了一个基本的Activity,它是构建项目的默认设置:
package com.example.mypackage.reacttoastex;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class MainActivity extends AppCompatActivity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
    }
}
但是,我在Intellij中收到此错误消息:
Gradle project sync failed. Basic functionality (e.g. editing, debugging) will not work properly
如果我跑Build Project,我得到这个:
Error:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApkCopy'.
   > Could not find any version that matches com.android.support:appcompat-v7:27.+.
     Versions that do not match:
         26.0.0-alpha1
         25.3.1
         25.3.0
         25.2.0
         25.1.1
         + 31 …android ×3