初次涉及android studio ,创建个app人就差点崩溃了Error:Failed to find: com.android.support:appcompat-v7:21.+Install Repository and sync projectOpen FileOpen in Project Structure dialog
工具/原料
1
android studio
2
sdk manager
方法/步骤
1
在新建一个app项目的时候。R文件报错。clean一下 提示的错误信息Error:Failed to find: com.android.support:appcompat-v7:21.+Install Repository and sync projectOpen FileOpen in Project Structure dialog
2
找到图中所示位子打开我这里的是改过的
3
接下来打开sdk managerbuild-tools 我都下载了。咱们看最后一个Extras下的如提示。在那个目录下的com.android.support:appcompat-v7版本 修改dependencies { compile fileTree(include: ['*.jar'], dir: 'libs') compile 'com.android.support:appcompat-v7:21.0.1'}下的版本信息相同就好。然后clean一下。大功告成
上一篇:同城拉货方舟货的app软件
下一篇:榴莲app怎么下载