Giter VIP home page Giter VIP logo

Comments (12)

liujingxing avatar liujingxing commented on June 12, 2024

你好,对于能跑起来却报红问题,一般是编译器的问题,一般重启可以解决。如果是找不到而报红,那就是生成失败了,要确保在项目中有使用注解。另外对于kotlin用户,请使用kapt依赖rxhttp-compiler库。

from rxhttp.

KunMinX avatar KunMinX commented on June 12, 2024

@liujingxing 不太行。重启 as,重启电脑,还是老样子,清理缓存也没用。
使用注解是指至少用到 @DefaultDomain 吗?在 Uri 类中看到了。

from rxhttp.

KunMinX avatar KunMinX commented on June 12, 2024

@liujingxing

刚刚改动一下 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.

KunMinX avatar KunMinX commented on June 12, 2024

@liujingxing

这边正好是接了一个项目,心想这个框架是简洁易用的,不如在项目上操作起来。

没想到编译不通过啊。。

我的编译环境是 as 3.5.0 beta5,Windows 和 Mac 都试了,都不行。

from rxhttp.

liujingxing avatar liujingxing commented on June 12, 2024

gradle版本多少?我这边试试

from rxhttp.

KunMinX avatar KunMinX commented on June 12, 2024

@liujingxing

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.

liujingxing avatar liujingxing commented on June 12, 2024

方便进群吗?好沟通。378530627

from rxhttp.

liujingxing avatar liujingxing commented on June 12, 2024

我这边找到一处问题。gradle版本升级到5.x版本后,apt会失效,已修复。你那边更新下代码,看看问题是否还在。

from rxhttp.

KunMinX avatar KunMinX commented on June 12, 2024

@liujingxing
感谢你的诊断。这边还是没能 build 成功。

clone 下来的项目是 4.10.1 的 gradle。
测试了 3.4.1 的 as。
也都不行。。

from rxhttp.

liujingxing avatar liujingxing commented on June 12, 2024

确定更新成功了吗?我看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.

KunMinX avatar KunMinX commented on June 12, 2024

@liujingxing 我就是直接 pull clone 来的源码,没做任何改动。
带注解的库当然可以,比如 Room 等等、

from rxhttp.

liujingxing avatar liujingxing commented on June 12, 2024

方便加QQ吗?327744707

from rxhttp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.