2017-06-11 6 views
0

Google Glass用のアプリを作成しようとしています。私はGradleのを同期しようとしたときしかし、それは私に200っぽいこのようなエラー(多くの種類ので、私はペーストビンの上に置く)を示した:要するにGoogle Glass用にビルドするときに、「アイテムの親を取得中にエラーが発生しました:指定された名前と一致するリソースが見つかりません」

https://pastebin.com/5LJXEy1w 

を、それらのエラーはタイプである「エラー検索アイテムの親:指定された名前と一致するリソースが見つかりませんでした "これは私のグラデルファイルです:

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> 

答えて

0

は、あなたが使用している場合AndroidManifest.xmlファイルからandroid:themeを削除するようにしてください。

+0

残念ながら私のマニフェストには「アンドロイド:テーマ」がなく、Google Glassのデフォルトテーマを使用しています。とにかくありがとう。 –

関連する問題

 関連する問題