ghahramani / viewpager

Google Play Music Tabs and View Pager
Apache License 2.0
47 stars 41 forks source link

No resource found that matches the given name 'android:Theme.Holo.Light'. #1

Closed karthi-anubavam closed 11 years ago

karthi-anubavam commented 11 years ago

I imported github code to Ti studio and build the module, when run the app with this module, I am getting below error

[DEBUG] /Users/admin/Documents/android-sdk-macosx/platform-tools/aapt package -m -J /Users/admin/Documents/Test_workspace/testApp/build/android/gen -M /Users/admin/Documents/Test_workspace/testApp/build/android
/AndroidManifest.xml -S /Users/admin/Documents/Test_workspace/testApp/build
/android/res -I /Users/admin/Documents/android-sdk-macosx/platforms/android-10/android.jar
[ERROR] Error generating R.java from manifest
[ERROR] /Users/admin/Documents/Test_workspace/testApp/build/android/res/values-v11/styles.xml:2: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.
[ERROR] /Users/admin/Documents/Test_workspace/testApp/build/android/res/values-v14/styles.xml:2: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'.
[ERROR] :  Build process exited with code 1
[ERROR] :  Project failed to build after 3s 248ms
ghahramani commented 11 years ago

yeah, You should compile your project with sdk 4.0 or newer or if you don't want to use Holo theme on sdk 4.0 or above you should remove values-v14 and values-v14 folder under res folder

karthi-anubavam commented 11 years ago

@dreamlearn thanks for your quick response, do you mean minSdkVersion for my testApp 14 (sdk 4.0)? I have tried with minSdkVersion in custom androidmanifest.xml, but it didn't work

ghahramani commented 11 years ago

@karthi-anubavam you should add it to tiapp.xml

this is my config:

<android xmlns:android="http://schemas.android.com/apk/res/android">
   <tool-api-level>17</tool-api-level>
   <manifest>
       <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="17" />
    </manifest>
</android>
karthi-anubavam commented 11 years ago

@dreamlearn Now am getting below error

[ERROR] 
[ERROR] UNEXPECTED TOP-LEVEL EXCEPTION:
[ERROR] java.lang.IllegalArgumentException: already added: Landroid/support/v4/app/ActivityCompatHoneycomb;
[ERROR]     at com.android.dx.dex.file.ClassDefsSection.add(ClassDefsSection.java:123)
[ERROR]     at com.android.dx.dex.file.DexFile.add(DexFile.java:163)
[ERROR] System Error while compiling Android classes.dex
[ERROR]     at com.android.dx.command.dexer.Main.processClass(Main.java:490)
[ERROR]     at com.android.dx.command.dexer.Main.processFileBytes(Main.java:459)
[ERROR]     at com.android.dx.command.dexer.Main.access$400(Main.java:67)
[ERROR]     at com.android.dx.command.dexer.Main$1.processFileBytes(Main.java:398)
[ERROR]     at com.android.dx.cf.direct.ClassPathOpener.processArchive(ClassPathOpener.java:245)
[ERROR]     at com.android.dx.cf.direct.ClassPathOpener.processOne(ClassPathOpener.java:131)
[ERROR]     at com.android.dx.cf.direct.ClassPathOpener.process(ClassPathOpener.java:109)
[ERROR]     at com.android.dx.command.dexer.Main.processOne(Main.java:422)
[ERROR]     at com.android.dx.command.dexer.Main.processAllFiles(Main.java:333)
[ERROR]     at com.android.dx.command.dexer.Main.run(Main.java:209)
[ERROR]     at com.android.dx.command.dexer.Main.main(Main.java:174)
[ERROR]     at com.android.dx.command.Main.main(Main.java:91)
[ERROR] 1 error; aborting
[ERROR] :  Build process exited with code 1
[ERROR] :  Project failed to build after 24s 291ms
ghahramani commented 11 years ago

@karthi-anubavam this error occurred when you reference to more one android-support-v4 library please check your references and please remove android-support-v4 library from lib folder in module and application if it exists and add the library only to external library in eclipse.

karthi-anubavam commented 11 years ago

@dreamlearn Thanks for your response. I just removed android-support-v4.jar from lib directory and it works fine. Also replace the proxy with tabs in your example/app.js. Once again thanks for the cool module.

ghahramani commented 11 years ago

@karthi-anubavam sure, I hope you enjoyed it.

DipaliShah commented 9 years ago

i m using ecllipse 10 with latest updates and facing same "no resource found....."in styles.xml . Even my 2 month old projects which are running successfully are now showing me this Theme error. plz help