cant add the banner Ads of the airpush new SDK - android

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.

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?

some problems when i import googlecast demo

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.

error: No resource identifier found for attribute in custom-views from http://developer.android.com

I'm learning to develop android applications following the tutorial in http://developer.android.com.
Now I'm working on http://developer.android.com/training/custom-views/create-view.html and when I build the application I get the errors:
D:\sviluppo\netbeans\custom-view\res\layout\main.xml:24: error: No resource identifier found for attribute 'showText' in package 'com.example.android.customviews.charting'
D:\sviluppo\netbeans\custom-view\res\layout\main.xml:24: error: No resource identifier found for attribute 'labelHeight' in package 'com.example.android.customviews.charting'
D:\sviluppo\netbeans\custom-view\res\layout\main.xml:24: error: No resource identifier found for attribute 'labelWidth' in package 'com.example.android.customviews.charting'
D:\sviluppo\netbeans\custom-view\res\layout\main.xml:24: error: No resource identifier found for attribute 'labelY' in package 'com.example.android.customviews.charting'
D:\sviluppo\netbeans\custom-view\res\layout\main.xml:24: error: No resource identifier found for attribute 'labelPosition' in package 'com.example.android.customviews.charting'
D:\sviluppo\netbeans\custom-view\res\layout\main.xml:24: error: No resource identifier found for attribute 'highlightStrength' in package 'com.example.android.customviews.charting'
D:\sviluppo\netbeans\custom-view\res\layout\main.xml:24: error: No resource identifier found for attribute 'pieRotation' in package 'com.example.android.customviews.charting'
D:\sviluppo\netbeans\custom-view\res\layout\main.xml:24: error: No resource identifier found for attribute 'labelColor' in package 'com.example.android.customviews.charting'
D:\sviluppo\netbeans\custom-view\res\layout\main.xml:24: error: No resource identifier found for attribute 'autoCenterPointerInSlice' in package 'com.example.android.customviews.charting'
D:\sviluppo\netbeans\custom-view\res\layout\main.xml:24: error: No resource identifier found for attribute 'pointerRadius' in package 'com.example.android.customviews.charting'
I downloaded the code from the website and I installed it as it is, without any change so the main.xml is
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res/com.example.android.customviews"
android:orientation="vertical"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<com.example.android.customviews.charting.PieChart
android:id="#+id/Pie"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="10dp"
android:layout_weight="100"
custom:showText="true"
custom:labelHeight="20dp"
custom:labelWidth="110dp"
custom:labelY="85dp"
custom:labelPosition="left"
custom:highlightStrength="1.12"
android:background="#android:color/white"
custom:pieRotation="0"
custom:labelColor="#android:color/black"
custom:autoCenterPointerInSlice="true"
custom:pointerRadius="4dp"
/>
<Button
android:id="#+id/Reset"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="#string/reset_button"
/>
</LinearLayout>
and namespaces are the same.
Can you help me to understand why I'm getting these errors?
Thanks a lot.
I also had the same problem and the answer is in this link.
In short, you need to replace
http://schemas.android.com/apk/res/com.example.android.customviews
with
http://schemas.android.com/apk/lib/com.example.android.customviews
Namely, /res/ to /lib/.
I downloaded the same custom-demo from Android.com, and had the same problem.
Changing
xmlns:custom="http://schemas.android.com/apk/res/com.example.android.customviews"
to either
xmlns:custom="http://schemas.android.com/apk/lib/com.example.android.customviews"
or
xmlns:custom="http://schemas.android.com/apk/res-auto"
worked. There were some differences between them, and I found the second solution perfect for what I needed. I don't know why it works.
I meet the same problem,I think your custom attributes don't belong to the right namespace.You can get the demo of customview_panda and look at custom attribute in the main.xml,you will understand.
https://github.com/pandabo1985/Android_App_Prac

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

GridLayout compatibility

I am working on an application for which I need to make GridLayout compatible. So I am following the steps given in this link. I have downloaded zip folder and also have made it library. Everything is working fine till implementation. When I am trying to change main.xml as described as in the given link , I am getting . The error code is as follow.
<com.gridlayout.GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:gridlayout="http://schemas.android.com/apk/res/com.CompatGrid.MakeCompatible"
android:layout_width="match_parent"
android:layout_height="match_parent"
gridlayout:alignmentMode="alignBounds"
gridlayout:columnCount="4"
gridlayout:columnOrderPreserved="false"
gridlayout:useDefaultMargins="true" >
My package name is "com.CompatGrid" and my Activity is "MakeCompatible". Error is in 3rd , 4th, 5th and 6th line.
Errors are something like that.
error:No resource identifier found for attribute 'alignmentMode' in package 'MakeCompatible'.
error:No resource identifier found for attribute 'columnCount' in package 'MakeCompatible'.
error:No resource identifier found for attribute 'columnOrderPreserved' in package 'MakeCompatible'.
error:No resource identifier found for attribute 'useDefaultMargins' in package 'MakeCompatible'.
I have done as the instructions are given.
After reading again and again I found out my error. It was in 2nd line.
xmlns:gridlayout="http://schemas.android.com/apk/res/com.CompatGrid.MakeCompatible"
I edit it to
xmlns:gridlayout="http://schemas.android.com/apk/res/com.CompatGrid"
My mistake was I had to use the package name , not the main Activity Class name in the main.xml.

Categories

Resources