Comments (12)
你好,对于能跑起来却报红问题,一般是编译器的问题,一般重启可以解决。如果是找不到而报红,那就是生成失败了,要确保在项目中有使用注解。另外对于kotlin用户,请使用kapt依赖rxhttp-compiler库。
from rxhttp.
@liujingxing 不太行。重启 as,重启电脑,还是老样子,清理缓存也没用。
使用注解是指至少用到 @DefaultDomain 吗?在 Uri 类中看到了。
from rxhttp.
刚刚改动一下 gradle 依赖再改回来,跑也跑不起来了。
在 Terminal 中 build 了一把。。
Task :app:lint
Ran lint on variant debug: 22 issues found
Ran lint on variant release: 22 issues found
Wrote HTML report to file:///D:/Projects/Android_Data_Test/network/RxHttp/app/build/reports/lint-results.html
Wrote XML report to file:///D:/Projects/Android_Data_Test/network/RxHttp/app/build/reports/lint-results.xml
Task :rxhttp:verifyReleaseResources FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':rxhttp:verifyReleaseResources'.
java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
D:\Projects\Android_Data_Test\network\RxHttp\rxhttp\build\intermediates\aapt_friendly_merged_manifests\release\processReleaseManifest\aapt\AndroidManifest.xml:2: error: attribute 'package' in tag is not
a valid Android package name: 'rxhttp'.
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
BUILD FAILED in 2m 42s
108 actionable tasks: 103 executed, 5 up-to-date
from rxhttp.
这边正好是接了一个项目,心想这个框架是简洁易用的,不如在项目上操作起来。
没想到编译不通过啊。。
我的编译环境是 as 3.5.0 beta5,Windows 和 Mac 都试了,都不行。
from rxhttp.
gradle版本多少?我这边试试
from rxhttp.
classpath 'com.android.tools.build:gradle:3.5.0-beta05'
distributionUrl=https://services.gradle.org/distributions/gradle-5.4.1-all.zip
下载的 demo 则是没有任何改动,原样的 gradle 配置
from rxhttp.
方便进群吗?好沟通。378530627
from rxhttp.
我这边找到一处问题。gradle版本升级到5.x版本后,apt会失效,已修复。你那边更新下代码,看看问题是否还在。
from rxhttp.
@liujingxing
感谢你的诊断。这边还是没能 build 成功。
clone 下来的项目是 4.10.1 的 gradle。
测试了 3.4.1 的 as。
也都不行。。
from rxhttp.
确定更新成功了吗?我看github上已经是最新的代码了。
classpath 'com.android.tools.build:gradle:3.4.1'
distributionUrl=https://services.gradle.org/distributions/gradle-5.1.1-all.zip
确定以下几个问题吧
1、你使用的本地依赖还是远程依赖?
2、有使用@DefaultDomain、@Domain、@parser、@param其中一个注解吗?或者看看使用的地方对不对,详情请查看https://juejin.im/post/5cc484146fb9a032332b35ae
3、在你目前的as环境上,能跑其它第三方带有注解的库吗?
from rxhttp.
@liujingxing 我就是直接 pull clone 来的源码,没做任何改动。
带注解的库当然可以,比如 Room 等等、
from rxhttp.
方便加QQ吗?327744707
from rxhttp.
Related Issues (20)
- rxLifeScope 及 Async 方法共同使用,调用async方法将导致请求结束回调不被调用 HOT 1
- The variable 'DEV_URL' must be String HOT 5
- 用Java自定义解析器,wrappers参数传入`List.class`,ksp编译后BaseRxHttp类报错 HOT 1
- JSON日志显示问题 HOT 2
- toDownloadFlow点击Cannot find declaration to go to HOT 5
- rxhttp最低支持的gradle和kotlin版本是多少 HOT 6
- java.lang.NoSuchFieldError: No field Companion of type HOT 10
- 自动刷新问题 HOT 1
- Cannot resolve symbol 'RxHttp' HOT 9
- 下载文件可能会超时,怎么解决? HOT 2
- 打印日志添加缓存信息 HOT 1
- 有时候后台会返回一些意想不到的json HOT 11
- 编译报错了 HOT 5
- 关于后端接口数据返回null,但是接口成功自定义Parser的问题 HOT 5
- RxHttp 生成在 AndroidTest 目录 HOT 3
- ksp编译,未使用任何注解,随意更改子module中的代码,运行项目,编译报错,提示找不到RxHttp类 HOT 1
- 服务器返回数据特殊处理 HOT 6
- 打印日志是有长度限制吧?请求参数过长日志打印不全,建议提供方法设置可控制 HOT 2
- 不能直接得到Response吗 HOT 3
- java.lang.NullPointerException: <get-cache>(...) must not be null 这种一般是什么问题呀,不是必现,偶尔出现就会闪退。 HOT 3
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 rxhttp.