Tuesday, 15 March 2011

intellij idea - can not connect android-support-v7-appcompat to my project -



intellij idea - can not connect android-support-v7-appcompat to my project -

i downloaded illustration developer.android.com

imported in intellijidea , up. next, wanted connect library android-support-v7-appcompat project. did according instructions:

how add together android.support.v7.widget.gridlayout intellijidea? tutorial on youtube

and many others. , in cases have same error. when compile project intellijidea says there no resources:

error screen http://www.fayloobmennik.net/4303361

error:android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v2 error:android-apt-compiler: [android-support-v7-appcompat] 1\themes_base.xml:41: error: error retrieving parent item: no resource found matches given name 'android:theme.material.light.dialog'. error:android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\va error:android-apt-compiler: [android-support-v7-appcompat] lues-v21\themes_base.xml:153: error: error: no resource found matches given name: attr 'android:colorprimary'. c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml error:(75, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:75: error: error retrieving parent item: no resource found matches given name 'android:widget.material.actionbutton'. error:(79, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:79: error: error retrieving parent item: no resource found matches given name 'android:widget.material.actionbutton.closemode'. error:(83, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:83: error: error retrieving parent item: no resource found matches given name 'android:widget.material.actionbutton.overflow'. error:(25, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:25: error: error retrieving parent item: no resource found matches given name 'android:widget.material.actionbar.tabview'. error:(29, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:29: error: error retrieving parent item: no resource found matches given name 'android:widget.material.light.actionbar.tabview'. error:(33, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:33: error: error retrieving parent item: no resource found matches given name 'android:widget.material.actionbar.tabtext'. error:(37, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:37: error: error retrieving parent item: no resource found matches given name 'android:widget.material.light.actionbar.tabtext'. error:(41, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:41: error: error retrieving parent item: no resource found matches given name 'android:widget.material.light.actionbar.tabtext'. error:(65, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:65: error: error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.actionmode.title'. error:(69, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:69: error: error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.actionmode.subtitle'. error:(45, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:45: error: error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.actionbar.menu'. error:(49, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:49: error: error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.actionbar.title'. error:(53, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:53: error: error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.actionbar.subtitle'. error:(57, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:57: error: error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.actionbar.title.inverse'. error:(61, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:61: error: error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.actionbar.subtitle.inverse'. error:(178, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:178: error: error retrieving parent item: no resource found matches given name 'android:widget.material.progressbar.horizontal'. error:(182, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:182: error: error retrieving parent item: no resource found matches given name 'android:widget.material.progressbar'. error:(113, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:113: error: error retrieving parent item: no resource found matches given name 'android:widget.material.spinner'. error:(115, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:115: error: error retrieving parent item: no resource found matches given name 'android:widget.material.spinner'. error:(110, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:110: error: error retrieving parent item: no resource found matches given name 'android:widget.material.dropdownitem.spinner'. error:(107, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:107: error: error retrieving parent item: no resource found matches given name 'android:widget.material.listview.dropdown'. error:(121, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:121: error: error retrieving parent item: no resource found matches given name 'android:widget.material.listview'. error:(126, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:126: error: error retrieving parent item: no resource found matches given name 'android:widget.material.listpopupwindow'. error:(138, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:138: error: error: no resource found matches given name: attr 'android:overlapanchor'. error:(143, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:143: error: error: no resource found matches given name: attr 'android:overlapanchor'. error:(129, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:129: error: error retrieving parent item: no resource found matches given name 'android:widget.material.popupmenu'. error:(132, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:132: error: error retrieving parent item: no resource found matches given name 'android:widget.material.light.popupmenu'. error:(146, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:146: error: error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.popupmenu.large'. error:(150, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:150: error: error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.popupmenu.small'. error:(154, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:154: error: error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.popupmenu.large'. error:(158, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:158: error: error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.popupmenu.small'. error:(164, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:164: error: error retrieving parent item: no resource found matches given name '@android:textappearance.material.searchresult.title'. error:(168, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:168: error: error retrieving parent item: no resource found matches given name '@android:textappearance.material.searchresult.subtitle'. error:(172, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:172: error: error retrieving parent item: no resource found matches given name 'android:widget.material.autocompletetextview'. error:(174, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:174: error: error retrieving parent item: no resource found matches given name 'android:widget.material.autocompletetextview'. error:(93, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:93: error: error retrieving parent item: no resource found matches given name 'android:widget.material.toolbar.button.navigation'. error:(97, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:97: error: error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.actionbar.title'. error:(101, -1) android-apt-compiler: [android-support-v7-appcompat] c:\users\pavel\desktop\appcompat\res\values-v21\styles_base.xml:101: error: error retrieving parent item: no resource found matches given name 'android:textappearance.material.widget.actionbar.subtitle'. c:\users\pavel\desktop\appcompat\res\values-v21\styles_base_text.xml c:\users\pavel\desktop\appcompat\res\values-v17\styles_rtl.xml c:\users\pavel\desktop\appcompat\res\values-v21\themes_base.xml c:\users\pavel\desktop\appcompat\res\values-v11\themes_base.xml c:\users\pavel\desktop\appcompat\res\values-v14\themes_base.xml

manifest

<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.android.navigationdrawerexample" android:versioncode="1" android:versionname="1.0"> <uses-sdk android:minsdkversion="14" android:targetsdkversion="17" /> <application android:label="@string/app_name" android:icon="@drawable/ic_launcher" android:theme="@style/theme.appcompat.light"> <activity android:name=".mainactivity" android:label="@string/app_name"> <intent-filter> <action android:name="android.intent.action.main" /> <category android:name="android.intent.category.launcher" /> </intent-filter> </activity> </application> </manifest>

in project, alter android build target 5.0

to back upwards values-v21, build target should 5.0

go file -> "project structure"

under platform settings -> sdks can see android sdk path, classpath , build target.

update sdk first latest build target using sdk manager.

if you're sdk not up-to date in classpath can see android version below 21.

if have latest one, can see, classpath selected \android-21\android.jar.

or

in you're module settings can see "build tool version".

android studio (intellij idea) taking latest build version. first update you're sdk manager latest version.

android intellij-idea appcompat

No comments:

Post a Comment