3
votes

I tried to import this https://github.com/dmitry-zaitsev/CircleLayout Circular layout but getting these warnings while build the project.

Warnings:

Error:(1) No resource identifier found for attribute 'angleOffset' in package 'com.aitrg.praneeth.organizer'

Error:Execution failed for task ':app:processDebugResources'.

com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/home/praneeth/Android/Sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 1

3
You should use app:angleOffset, not android:angleOffset - natario
I used app:angleOffset only! - Praneeth
How have you imported the library? - natario
@m vai : no there is some gradle prob so I'm copied all the required classes and files and using them with in my own pakage - Praneeth

3 Answers

4
votes

Got the answer with help of Shvet

--> First download the file and extract it.

--> In Android studio using import, import it as a module using Import-Module.

--> After Importing it as library go to Gradle of Module(imported file) change plug-in as library.

  • apply plugin: 'com.android.library'

--> As library file don't have versions remove version id/name.

--> Add dependencies manually by compile project(':circleLayout') or using project structure.

--> Now rebuild the project.

0
votes

You have to add xmlns:app="http://schemas.android.com/apk/res-auto" in the top viewgroup in the layout file where you are using the CircleLayout.

Example:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    >
    <ru.biovamp.widget.CircleLayout
       android:layout_width="match_parent"
       android:layout_height="match_parent"
       android:background="@android:color/white"
       app:angleOffset="90.0">

    </ru.biovamp.widget.CircleLayout>
</LinearLayout>
0
votes

You shouldn't copy-pasting classes one by one into your project, but rather import the library as whole, downloading it and adding to your lib folder. Libraries are standalone environments with a Manifest and extra files which you might not have yourself.

However, following what you have done now, you are clearly missing some attribute files. Looking at the library, my guess is that you are missing this one. It should be in the values folder.