Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not found library #3

Closed
tonilopezmr opened this issue Jan 24, 2015 · 18 comments
Closed

not found library #3

tonilopezmr opened this issue Jan 24, 2015 · 18 comments

Comments

@tonilopezmr
Copy link

Error:(9) No resource identifier found for attribute 'backgroundColorValue' in package 'com.example.app'
Error:(9) No resource identifier found for attribute 'titleColor' in package 'com.example.app'
Error:(9) No resource identifier found for attribute 'titleSize' in package 'com.example.app'
Error:(9) No resource identifier found for attribute 'titleText' in package 'com.example.app'
Error:(13, 35) No resource found that matches the given name (at 'backgroundColorValue' with value '@color/green').

And I have added, compile 'com.github.pavlospt:roundedletterview:1.1' but android studio did not find the library.

@pavlospt
Copy link
Owner

Read the documentation carefully again before using the example and
creating an issue!
On Jan 24, 2015 3:33 AM, "Antonio López Marín" notifications@github.com
wrote:

Error:(9) No resource identifier found for attribute
'backgroundColorValue' in package 'com.example.app'
Error:(9) No resource identifier found for attribute 'titleColor' in
package 'com.example.app'
Error:(9) No resource identifier found for attribute 'titleSize' in
package 'com.example.app'
Error:(9) No resource identifier found for attribute 'titleText' in
package 'com.example.app'
Error:(13, 35) No resource found that matches the given name (at
'backgroundColorValue' with value '@color/green').

And I have added, compile 'com.github.pavlospt:roundedletterview:1.1' but
android studio did not find the library.


Reply to this email directly or view it on GitHub
#3.

@tonilopezmr
Copy link
Author

Definitely compile 'com.github.pavlospt:roundedletterview:1.1' not found.

I've tried other as 'com.amulyakhare:com.amulyakhare.textdrawable:1.0.1' and found perfect.

RoundedLetterView does not recognize me :(

Thanks, for your time.

@scarletsky
Copy link

I have the same issue.
Does it only work on API 21+?

@pavlospt
Copy link
Owner

pavlospt commented May 6, 2015

compile 'com.github.pavlospt:roundedletterview:1.1' Try this and tell me! It's uploaded and working fine!

@scarletsky
Copy link

@pavlospt

I try this before.

gradle

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        minSdkVersion 14
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
}

dependencies {
    compile 'com.github.pavlospt:roundedletterview:1.1'
}

xml:

<com.github.pavlospt.roundedletterview.RoundedLetterView
                    xmlns:app="http://schemas.android.com/apk/res-auto"
                    android:id="@+id/rlv_name_view"
                    android:layout_width="56dp"
                    android:layout_height="56dp"
                    app:rlv_backgroundColorValue="@color/green"
                    app:rlv_titleColor="@android:color/white"
                    app:rlv_titleSize="35dp"
                    app:rlv_titleText="A" />

error:

Error:(38) No resource identifier found for attribute 'rlv_backgroundColorValue' in package 'com.example.scarlex.app'
Error:(38) No resource identifier found for attribute 'rlv_titleColor' in package 'com.example.scarletsky.app'
Error:(38) No resource identifier found for attribute 'rlv_titleSize' in package 'com.example.scarletsky.app'
Error:(38) No resource identifier found for attribute 'rlv_titleText' in package 'com.example.scarletsky.app'
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/scarletsky/Library/Android/sdk/build-tools/21.1.2/aapt'' finished with non-zero exit value 1

@pavlospt
Copy link
Owner

pavlospt commented May 6, 2015

I need to see your full layout file.

@scarletsky
Copy link

@pavlospt

I create a new activity and it also throw error.

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin"
    tools:context="com.example.scarlex.eyecare_android.activities.SelectUpperActivity">

    <com.github.pavlospt.roundedletterview.RoundedLetterView
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:id="@+id/rlv_name_view"
        android:layout_width="56dp"
        android:layout_height="56dp"
        app:rlv_backgroundColorValue="@color/pink"
        app:rlv_titleColor="@android:color/white"
        app:rlv_titleSize="35dp"
        app:rlv_titleText="A" />

</RelativeLayout>

@pavlospt
Copy link
Owner

pavlospt commented May 6, 2015

I really can not understand why you get this error. Try moving the xmlns:app="http://schemas.android.com/apk/res-auto"
on your outer layout and change from app to something like "rlv" and replace it everywhere.

@scarletsky
Copy link

Haved try it, still do not work.

Does it related to SDK ?
Here is my settings.

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "id"
        minSdkVersion 14
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
}

@pavlospt
Copy link
Owner

pavlospt commented May 6, 2015

Ohh just noticed your minSdkVersion. This library supports minSdkVersion 18!

@scarletsky
Copy link

I try to create a new project, and minSdkVersion is 21....
Still error......
I don't know why 😵

@pavlospt
Copy link
Owner

pavlospt commented May 6, 2015

There is no apparent reason! Are you including jcenter() on your project's build.gradle?

@scarletsky
Copy link

No, but it still error after add jcenter().

This is a new project.

apply plugin: 'com.android.application'

android {
    compileSdkVersion 21
    buildToolsVersion "21.1.2"

    defaultConfig {
        applicationId "me.scarlex.testapp"
        minSdkVersion 21
        targetSdkVersion 21
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

repositories {
    mavenCentral()
    jcenter()
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])

    compile 'com.github.pavlospt:roundedletterview:1.1'
}

XML:

<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
    android:paddingRight="@dimen/activity_horizontal_margin"
    android:paddingTop="@dimen/activity_vertical_margin"
    android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">

    <com.github.pavlospt.roundedletterview.RoundedLetterView
        xmlns:app="http://schemas.android.com/apk/res-auto"
        android:id="@+id/rlv_name_view"
        android:layout_width="56dp"
        android:layout_height="56dp"
        app:rlv_backgroundColorValue="@android:color/black"
        app:rlv_titleColor="@android:color/white"
        app:rlv_titleSize="35dp"
        app:rlv_titleText="A" />

</RelativeLayout>

error:

Error:(10) No resource identifier found for attribute 'rlv_backgroundColorValue' in package 'me.scarlex.testapp'
Error:(10) No resource identifier found for attribute 'rlv_titleColor' in package 'me.scarlex.testapp'
Error:(10) No resource identifier found for attribute 'rlv_titleSize' in package 'me.scarlex.testapp'
Error:(10) No resource identifier found for attribute 'rlv_titleText' in package 'me.scarlex.testapp'
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/scarlex/Library/Android/sdk/build-tools/21.1.2/aapt'' finished with non-zero exit value 1

Do I miss anything?

@pavlospt
Copy link
Owner

pavlospt commented May 6, 2015

Please post the build.gradle of your project as well, not just the build.gradle of your module!

@scarletsky
Copy link

Oh, sorry, I miss it. Here is the build.gradle of my TestApp project.

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.1.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
    }
}

@pavlospt
Copy link
Owner

pavlospt commented May 6, 2015

I still can't seem to find what is the cause of this error! Will have to check it when i find more time! Get the .java and .xml file from values for now till i get to fix it!

@scarletsky
Copy link

In the new project, I haven't change the .java files and other .xml files.
I just modify the activity_main.xml and build.gradle, they are both posted above.
😵

@pavlospt
Copy link
Owner

pavlospt commented May 6, 2015

Yes i mean go to the "roundedletterview" folder in github and get the
RoundedLetterView.java and the attrs.xml file from values and use them on
your project, till i find the time to work this thing out and get back to
you!

On Wed, May 6, 2015 at 1:02 PM, scarletsky notifications@github.com wrote:

In the new project, I haven't change the .java files and other .xml files.
I just modify the activity_main.xml and build.gradle, they are both
posted above.
[image: 😵]


Reply to this email directly or view it on GitHub
#3 (comment)
.

[image: --]
Pavlos P. Tournaris
[image: http://]
http://about.me/pavlospt

Android Developer & Software Engineer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants