Hello I'm importing jazzylistview sample project and i get the following error in the layout file:
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res/com.twotoasters.jazzylistview.sample"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#color/background"
tools:context=".MainActivity" >
<com.twotoasters.jazzylistview
android:id="#id/android:list"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="#null"
app:effect="helix"
app:only_animate_new_items="false"
app:only_animate_fling="false"
app:max_velocity="0" />
</FrameLayout>
I get the following error on com.twotoasters.jazzylistview line:
Multiple annotations found at this line:
- error: No resource identifier found for attribute 'only_animate_fling' in package
'com.twotoasters.jazzylistview.sample'
- error: No resource identifier found for attribute 'max_velocity' in package 'com.twotoasters.jazzylistview.sample'
- error: No resource identifier found for attribute 'effect' in package 'com.twotoasters.jazzylistview.sample'
- error: No resource identifier found for attribute 'only_animate_new_items' in package
'com.twotoasters.jazzylistview.sample'
please help me what should i do?
xmlns:app="http://schemas.android.com/apk/res/com.twotoasters.jazzylistview.sample"
here instead of using /com.twotoasters.jazzylistview.sample use your package name.
Related
I am using intercom sdk version 3.+ for notification purpose. I need to update the intercom sdk version to 5.+. After updating the sdk version in gradle file I faced the below error.
AGPBI: {"kind":"error","text":"No resource found that matches the given name (at \u0027textAppearance\u0027 with value \u0027#style/TextAppearance.AppCompat.Notification\u0027).","sources":[{"file":"C:\Users\Android-2\.android\build-cache\971cf0b344c5894d7c756a8e5b80dd3e25a942ef\output\res\layout\activity_add_source.xml","position":{"startLine":32,"startColumn":40,"startOffset":1209,"endColumn":84,"endOffset":1253}}],"original":"","tool":"AAPT"}
C:\Users\Android
2\Desktop\Files\OriginalCode\android\app\build\intermediates\res\merged\debug\layout\activity_add_source.xml:28: error: Error: No resource found that matches the given name (at 'textAppearance' with value '#style/TextAppearance.AppCompat.Notification').
:app:processDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt
I also checked in different ways to resolve the above issue. But I can't. If I created a new project in android studio and checked with intercom sdk version 5.+. It accepts and no issues. I faced only in my existing app. Kindly help me on this issue.
activity_add_source.xml
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<com.stripe.android.view.CardMultilineWidget
android:id="#+id/add_source_card_entry_widget"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_margin="#dimen/add_card_total_margin"
/>
<FrameLayout
android:id="#+id/add_source_error_container"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="#id/add_source_card_entry_widget"
>
<TextView
android:id="#+id/tv_add_source_error"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="#dimen/add_card_total_margin"
android:textAppearance="#style/TextAppearance.AppCompat.Notification"
android:visibility="gone"
/>
</FrameLayout>
</RelativeLayout>
</ScrollView>
I think you should try adding the following style in your styles.xml
<style name="TextAppearance.AppCompat.Notification">
<item name="android:textSize">12sp</item>
<item name="android:textColor">#ccc</item>
</style>
NB: Change text and color as per your preferences
I have an android project which was developed according to API 25 and was running fine. But, now i wanted to change some code in it and i have also updated my Android Studio to 3.0 since(may be that's the problem). Following are the errors i receive :
C:\Users\nutty geek\Desktop\Ankur\app\build\intermediates\res\merged\debug\layout\activity_main.xml:17: error: No resource identifier found for attribute 'headerLayout' in package 'com.nuttygeek.vastucosmos.vastucompass'
C:\Users\nutty geek\Desktop\Ankur\app\build\intermediates\res\merged\debug\layout\activity_main.xml:17: error: No resource identifier found for attribute 'menu' in package 'com.nuttygeek.vastucosmos.vastucompass'
C:\Users\nutty geek\Desktop\Ankur\app\build\intermediates\res\merged\debug\layout\content_main.xml:2: error: No resource identifier found for attribute 'layout_behavior' in package 'com.nuttygeek.vastucosmos.vastucompass'
C:\Users\nutty geek\Desktop\Ankur\app\build\intermediates\res\merged\debug\layout\content_main.xml:2: error: Error: No resource found that matches the given name (at 'layout_behavior' with value '#string/appbar_scrolling_view_behavior').
Failed to execute aapt
com.android.ide.common.process.ProcessException: Failed to execute aapt
i also have added this line to gradle.properties :
android.enableAapt2=false
for disabing AAPT2 but it still give some errors.
Questions:
1. Why has this problem occured ?
2. How can i resolve this issue ?
here is the activity_main.xml of the project...
<?xml version="1.0" encoding="utf-8"?>
<android.support.v4.widget.DrawerLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="#+id/drawer_layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:openDrawer="start">
<include
layout="#layout/app_bar_main"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<android.support.design.widget.NavigationView
android:id="#+id/nav_view"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_gravity="start"
android:fitsSystemWindows="true"
app:headerLayout="#layout/nav_header_main"
app:menu="#menu/activity_main_drawer" />
</android.support.v4.widget.DrawerLayout>
Seems like i was your using some features which demanded the need of this dependency.
compile 'com.android.support:design:26.1.0'
i added it and the problem is finally solved !
I am trying to use code from a project that I downloaded from Github, however I am consistently getting errors.
Is there more steps needed to use a project than importing it into eclipse?
I am currently just copying and pasting code from the downloaded project to mine.
Attempting to use the following:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res/com.mikhaellopez.circularimageviewsample"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
android:orientation="vertical" >
<com.mikhaellopez.circularimageview.CircularImageView
android:layout_width="250dp"
android:layout_height="250dp"
android:src="#drawable/image"
app:border="true"
app:border_color="#color/GrayLight"
app:border_width="4dp"
app:shadow="true" />
</LinearLayout>
But getting the error:
Multiple annotations found at this line:
- error: No resource identifier found for attribute 'border_color' in package
'com.mikhaellopez.circularimageviewsample'
- error: No resource identifier found for attribute 'shadow' in package
'com.mikhaellopez.circularimageviewsample'
- error: No resource identifier found for attribute 'border' in package
'com.mikhaellopez.circularimageviewsample'
- error: No resource identifier found for attribute 'border_width' in package
'com.mikhaellopez.circularimageviewsample'
Is there more steps needed to use a project than importing it into eclipse?
Well, that depends.
I am currently just copying and pasting code from the downloaded project to mine.
Depending upon how that code is written, that may not work well.
But getting the error:
Change:
xmlns:app="http://schemas.android.com/apk/res/com.mikhaellopez.circularimageviewsample"
to:
xmlns:app="http://schemas.android.com/apk/res-auto"
as your app does not have the package name of com.mikhaellopez.circularimageviewsample, apparently.
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.
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