0
我正在尝试为Google Glass制作应用程序。但是,当我试图同步的gradle这个,这我表明这样200上下的误差(种了很多,所以我把它放在引擎收录):为Google Glass构建Google Gradle时出现错误“Gradle error Retrieving parent for item:No resources found that matches the given name”
https://pastebin.com/5LJXEy1w
总之,这些错误类型“错误检索项目的父项:找不到与给定名称相匹配的资源“,来自大量中间文件。这是我的gradle文件:
apply plugin: 'com.android.application'
repositories {
jcenter()
flatDir {
dirs 'prebuilt-libs'
}
}
android {
compileSdkVersion "Google Inc.:Glass Development Kit Preview:19"
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.zeroexperiencestudio.glassqr"
minSdkVersion 19
targetSdkVersion 25
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.journeyapps:zxing-android-embedded:3.4.0'
compile 'com.android.support:appcompat-v7:25.0.2'
compile 'com.android.support:recyclerview-v7:25.0.2'
}
为什么会发生这种情况?我该如何解决这个问题?
这是我的清单:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.zeroexperiencestudio.glassqr">
<application
android:hardwareAccelerated="false"
android:largeHeap="true"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
>
<activity
android:name=".MainActivityTest"
android:label="@string/app_name"
>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data
android:name="com.google.android.glass.VoiceTrigger"
android:resource="@xml/voice" />
</activity>
</application>
</manifest>
不幸的是,我的清单中没有任何'android:theme',并使用Google Glass的默认主题。不管怎么说,还是要谢谢你。 –