我已经添加了gradle文件.请查看它们,并帮助我解决问题.我从github复制此项目时,gradle同步出现问题
我遵循了每一步.
谢谢
// top-level build file where you can add configuration options common to all sub-projects/modules.enter code here buildscript { repositorIEs { jcenter() } dependencIEs { classpath 'com.androID.tools.build:gradle:2.2.3' // NOTE: Do not place your application dependencIEs here; they belong // in the indivIDual module build.gradle files } } allprojects { repositorIEs { jcenter() } } task clean(type: Delete) { delete rootProject.buildDir } task copy_cardboard_images() { doFirst { exec { if (System.propertIEs['os.name'].tolowerCase().contains('windows')) { // windows commandline 'cmd', '/c', 'adb', 'pull', '/mnt/shell/emulated/0/DCIM/CardboardCamera' } else { // linux commandline 'adb', 'pull', '/mnt/shell/emulated/0/DCIM/CardboardCamera' } } } dolast { copy { from 'CardboardCamera' into 'website/images' } } } task remove_cardboard_images() { doFirst { exec { if (System.propertIEs['os.name'].tolowerCase().contains('windows')) { // windows commandline 'cmd', '/c', 'adb', 'shell', 'rm', '-r', '/mnt/shell/emulated/0/DCIM/CardboardCamera' } else { // linux commandline 'adb', 'shell', 'rm', '-r', '/mnt/shell/emulated/0/DCIM/CardboardCamera' } } } } task move_cardboard_images() { dependsOn copy_cardboard_images dependsOn remove_cardboard_images }Build.gradle : app module apply plugin: 'com.androID.application'androID { compileSdkVersion 23 buildToolsversion "23.0.2" defaultConfig { applicationID "com.Google.devrel.vrvIEwapp" minSdkVersion 19 targetSdkVersion 23 versionCode 1 versionname "1.0" } buildTypes { release { MinifyEnabled false proguardfiles getDefaultProguardfile('proguard-androID.txt'), 'proguard-rules.pro' } }}dependencIEs { compile filetree(dir: 'libs', include: ['*.jar']) compile 'com.androID.support:appcompat-v7:23.3.0' compile 'com.androID.support:design:23.3.0' compile project(':gvr-androID-sdk/librarIEs:common') compile project(':gvr-androID-sdk/librarIEs:commonWidget') compile project(':gvr-androID-sdk/librarIEs:panoWidget') compile project(':gvr-androID-sdk/librarIEs:vIDeoWidget')}Settings.gradle : This code belongs to settings.gradle fileinclude ':app'include ':app'include ':gvr-androID-sdk/librarIEs:audio'include ':gvr-androID-sdk/librarIEs:base'include ':gvr-androID-sdk/librarIEs:common'include ':gvr-androID-sdk/librarIEs:commonWidget'include ':gvr-androID-sdk/librarIEs:panoWidget'include ':gvr-androID-sdk/librarIEs:vIDeoWidget'
解决方法:
您是否检查了位于AndroID文件夹中的AndroID项目的所有依赖项?
里面是settings.gradle文件.在此文件中,将检查项目的每个依赖项.
范例:
include 'your dependencIEs'project(':your dependencIEs').projectDir = new file('path dependencIEs')
总结 以上是内存溢出为你收集整理的java-无法解析配置’:app:_debugApk’的所有依赖项.找不到名称为’default’的配置全部内容,希望文章能够帮你解决java-无法解析配置’:app:_debugApk’的所有依赖项.找不到名称为’default’的配置所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)