some problems when i import googlecast demo - android

I had added
android-support-v4.jar,
android-support-v7-appcompat.jar,
android-support-v7-midearouter.jar,
and I had added the "GooleCastSdkAndroid" as a lib project.
But it still reported an error:
[2013-10-22 10:21:21 - CastSampleActivity] W/ResourceType( 8256): ResXMLTree_node header size 0 is too small.<br/>
[2013-10-22 10:21:21 - CastSampleActivity] cast-android-sample-master\cast-android-sample-master\res\menu\cast_sample.xml:3: error: No resource identifier found for attribute 'actionProviderClass' in package 'com.example.castsample'<br/>
[2013-10-22 10:21:21 - CastSampleActivity]cast-android-sample-master\cast-android-sample-master\res\menu\cast_sample.xml:3: error: No resource identifier found for attribute 'showAsAction' in package 'com.example.castsample'.
Can someone help to point me Where Is Wrong?

I solved the problem.
Please change
app:actionProviderClass to android:actionProviderClass
app:showAsAction to android:showAsAction.

Related

Error:(14) No resource identifier found for attribute 'fillType' in package

When I use vectorDrawable instead of png/jpeg, I use fillType in path.
I receive the following error:
"Error:(14) No resource identifier found for attribute 'fillType' in package 'android'"
Can anyone help me?

eclipse import android project problems

I try to import an android project, and i got this console message !!
**[2015-05-15 08:36:16 - CabBookingHome]** C:\Users\FAMILLE\Desktop\r21\CabBookingHome\res\values\strings.xml:104: error: Resource entry register_me is already defined.
**[2015-05-15 08:36:16 - CabBookingHome]** C:\Users\FAMILLE\Desktop\r21\CabBookingHome\res\values\base_strings.xml:10: Originally defined here.
**[2015-05-15 08:36:16 - CabBookingHome]** C:\Users\FAMILLE\Desktop\r21\CabBookingHome\res\values-v14\styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'.
can any one help me please :) thank you

Appcompat v7 and ActionBarActivity

I'm following this tutorial to make and app with action bar for 2.3.x devices. But i cannot import appcompat-v7 to my projecto... It gives me lots of errors like these:
[2014-11-06 14:19:23 - AcordeNoPonto] C:\Workspace\appcompat_v7\res\values-v21\themes_base.xml:194: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
[2014-11-06 14:19:23 - AcordeNoPonto] C:\Workspace\appcompat_v7\res\values-v21\themes_base.xml:195: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
[2014-11-06 14:19:23 - AcordeNoPonto] C:\Workspace\appcompat_v7\res\values-v21\themes_base.xml:193: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
[2014-11-06 14:19:23 - AcordeNoPonto] C:\Workspace\appcompat_v7\res\values-v21\themes_base.xml:190: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
[2014-11-06 14:19:23 - AcordeNoPonto] C:\Workspace\appcompat_v7\res\values-v21\themes_base.xml:191: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
[2014-11-06 14:19:23 - AcordeNoPonto] C:\Workspace\appcompat_v7\res\values-large-v14\themes_base.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.DialogWhenLarge.Base'.
[2014-11-06 14:19:23 - AcordeNoPonto] C:\Workspace\appcompat_v7\res\values-large-v14\themes_base.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'Theme.Base.AppCompat.Light.DialogWhenLarge.Base'.
So i cannot import my app theme and my action bar is not shown...
In project.properties for Your project android-support-v7-appcompat Make sure target value as follow.
Project target.
target=android-21
android.library=true
once you done Clean your Project. I hope this works.
In project.properties of both your project and android-support-v7-appcompat (under res), comment out the target api if not target=android-21 and place the new target code there.
If this doesn't work, or you can't use 21+ api, make sure in your app's project.properties that android.library=false.
Next check your project's Referenced Libraries does not contain v4 in the buildpath. I believe I'm saying this correctly, that v7-appcompat required it (the previous version), but that it is included within the android-support-v7-appcompat file and thus the duplicate entries cause a problem.
I got this problem too. I found many solutions that you must update to Android 5.0 API leveL 21..you can see one of the solutions for updating all IDE. HERE
..
(Note : Following method is my second way solution for me.)
If you don't want to update, you can try existing API level..I found solution in my way is that when you create the new android application project, choose as follow
minSdkVersion= API 14 ,
targetSdkVersion=API 17 ,
compiled with=API 17
Hope, this will help!

cant add the banner Ads of the airpush new SDK

i am trying to add this in my main.xml
<com.jrlnv.qmais91534.AdView
xmlns:ap="http://schemas.android.com/apk/res-auto"
android:id="#+id/myAdView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ap:animation="fade"
ap:banner_type="inappad"
ap:placementType="interstitial"
ap:test_mode="false"
ap:canShowMR="false"
/>
this is the banner ads from the new airpush SDK
but i got this errors
Multiple annotations found at this line:
- error: No resource identifier found for attribute 'canShowMR' in package 'com.MKA'
- error: No resource identifier found for attribute 'placementType' in package 'com.MKA'
- error: No resource identifier found for attribute 'banner_type' in package 'com.MKA'
- error: No resource identifier found for attribute 'animation' in package 'com.MKA'
- error: No resource identifier found for attribute 'test_mode' in package 'com.MKA'
any help
thank you
You also need to place the mraid_attrs.xml file into your app's res > values folder. This file is included within the SDK download.

air push adview error

I am embeding air push ads in my android app. I added adview in layout.xml file. It has errors that are
Multiple annotations found at this line:
- error: No resource identifier found for attribute 'canShowMR' in package 'com.GUI.traficsing'
- error: No resource identifier found for attribute 'banner_type' in package 'com.GUI.traficsing'
- error: No resource identifier found for attribute 'placementType' in package 'com.GUI.traficsing'
- error: No resource identifier found for attribute 'refresh_time' in package 'com.GUI.traficsing'
- error: No resource identifier found for attribute 'animation' in package 'com.GUI.traficsing'
- error: No resource identifier found for attribute 'test_mode' in package 'com.GUI.traficsing'
Thank you
You need to place the mraid_attrs.xml file into your app's res > values folder. This file is included within the SDK download.
It solved me the same problem.
Ref: http://manage.airpush.com/docs/index.php?title=Android_SDK_6.0_Documentation

Categories

Resources