外部库进口,摇篮建设问题 [英] External library import, Gradle build issue

查看:191
本文介绍了外部库进口,摇篮建设问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图导入此 https://github.com/dmitry-扎伊采夫/ CircleLayout 圆形布局,但让这些警告,同时构建项目。

警告:

  

错误:(1)未找到属性的资源标识符angleOffset中   包'com.aitrg.praneeth.organizer

错误:执行失败的任务。':应用程序:processDebugResources

  

com.android.ide.common.process.ProcessException:org.gradle.process.internal.ExecException:处理'命令'/home/praneeth/Android/Sdk/build-tools/22.0.1/aapt''完成非零退出值1

解决方案

得到的答案与 Shvet

- >首先下载该文件,解压缩

- >在使用导入它作为使用导入模块的模块机器人工作室

- >导入,因为它是图书馆转到模块摇篮后(导入文件)的变化插上的图书馆。

  • 应用插件:com.android.library

- >作为库文件没有版本删除版本ID /名称

- >手动添加依赖的编制项目(:circleLayout')的或使用的项目结构

- >现在重建项目。

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

解决方案

Got the answer with help of Shvet

--> First download the file and extract it.

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

--> After Importing, as it is 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.

这篇关于外部库进口,摇篮建设问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆