Comments (10)
@msdx 运行python freeline.py
的时候报的错误是吗?
from freeline.
加上该依赖之后使用python或者是使用gradlew都会报错。
from freeline.
@msdx 麻烦提供一下gradlew编译报错的详细日志可以吗?
from freeline.
日志如下:
:app:prepareComSquareupLeakcanaryLeakcanaryAndroid14Beta2Library UP-TO-DATE
:app:prepareComTencentBuglyCrashreport220Library UP-TO-DATE
:app:prepareComWdullaerMaterialdatetimepicker240Library UP-TO-DATE
:app:prepareIoReactivexRxandroid110Library UP-TO-DATE
:app:prepareJpWasabeefRecyclerviewAnimators130Library UP-TO-DATE
:app:prepareDevelopDebugDependencies
:app:compileDevelopDebugAidl UP-TO-DATE
:app:compileDevelopDebugRenderscript UP-TO-DATE
:app:generateDevelopDebugBuildConfig UP-TO-DATE
:app:generateDevelopDebugResValues UP-TO-DATE
:app:generateDevelopDebugResources UP-TO-DATE
:app:resourcesInterceptorBeforeMergeDevelopDebugResources
Old file /workspace/project/coupon-manager/app/build/freeline/app/resources_dependencies.json removed.
Save to /workspace/project/coupon-manager/app/build/freeline/app/resources_dependencies.json
:app:mergeDevelopDebugResources UP-TO-DATE
:app:processDevelopDebugManifest UP-TO-DATE
:app:processDevelopDebugResources
/workspace/project/coupon-manager/app/build/intermediates/res/merged/Develop/debug/values-v23/values-v23.xml:3: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
/workspace/project/coupon-manager/app/build/intermediates/res/merged/Develop/debug/values-v23/values-v23.xml:18: AAPT: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
:app:processDevelopDebugResources FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDevelopDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
from freeline.
@msdx 这个貌似是你代码的问题,可以参考一下这个链接:http://stackoverflow.com/questions/32092511/resource-error-in-android-studio-after-update-no-resource-found
from freeline.
不,这个锅不能让我来背。我不用freeline时完全没问题,单独加上这句依赖时就编译出错。我的猜想是,应该你们的这个库依赖了版本更高的appcompat,由于gradle对依赖冲突的默认解决策略,这种情况下会采用更高版本的库,因此导致与我公司项目的build tools版本不匹配而出现此问题。那么问题来了,我引入的这个依赖是否依赖了更高版本的appcompat?需要依赖它的原因是什么?等上午去公司我会去求证一下。
from freeline.
早上醒来思路竟如此清晰。刚下看了你们的runtime 的构建脚本,已经证实了我的想法,确实依赖了比我项目高的appcompat(23.0.1),我项目中用的是22.2.1的。接下来我这边的解决方法应该是升级我的buildtools版本与其匹配,当然我的appcompat与其他support库版本也要跟着升以减少as提出的警告。但是你们的runtime,是否真需要对appcompat 23.0.1的依赖吗?
from freeline.
接下来要考虑一下你们的问题了。如果不需要依赖较高的版本,是否需要降一下这个版本以提高友好性?如果不需要这个依赖,把它去掉是否更好?
from freeline.
@msdx 感谢指正,确实是这个问题。这个依赖确实不是必须的,下个版本去掉。
from freeline.
@lomanyong 客气了。这两天接手一个离职同事留下来的被维护得乱七八糟的项目,静不下去来去分析问题。早上醒来看到你附的stackoverflow的答案提到的版本问题才一下子想到是这个原因。早上醒来才冷静,到了公司看着项目的代码我又不冷静了T_T
from freeline.
Related Issues (20)
- 我是先安装python2.7.9,然后安装你们github上的教程仔细来,然后点击android studio 上的freeline按钮,没反应.最最重要的是我用命令来执行python freeline.py多次还是和第一次执行的时间一样长,并且还没原始的run时间短?请教下怎么回事?
- WARNING: Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation' and 'testApi'. It will be removed at the end of 2018. HOT 1
- Freeline 最新代码拉下来出错,无法下载1.0.0版本
- Freeline在Android Studio里面,无法搜索到,windows HOT 2
- gradle_tools.py 运行异常
- 不支持 Kotlin,一年没更新,卒。 HOT 3
- 好好的项目就这么凉了 HOT 3
- Jar Conflict about butterknife
- freeline提示No module named 'build_commands'无法运行 HOT 1
- 本地编译源代码,提示错误。com.antfortune.freeline:gradle:0.8.9-SNAPSHOT找不到
- Site offline
- 这么好的插件 怎么就凉了 HOT 3
- 纪念一下
- 与viewBinding 冲突 HOT 2
- Custom task is not recognized by jenkins
- JavaPoet Version collision With ViewBinding
- cannot use freeline in Android Studio 4.1.2, how to adapt Android Studio 4.1.2? HOT 2
- On Mac M1 ,Newest AndroidStudio "Could not find com.antfortune.freeline:gradle:0.8.8" HOT 1
- abnormal link
- 希望能够提供一个样例项目,第一步就配置不过去
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freeline.