Skip to content
This repository was archived by the owner on May 3, 2021. It is now read-only.
This repository was archived by the owner on May 3, 2021. It is now read-only.

项目跑不起来 AS3.3.2。。。 #6

Open

Description

@netgb
No description provided.

Activity

  1. netgb commented on Mar 31, 2019

    @netgb
    Author

    import la.xiong.androidquick.demo.injector.component.DaggerActivityComponent;

    请问这个类没上存吗?

  2. ddnosh commented on Apr 1, 2019

    @ddnosh
    Owner

    @netgb 这个是dagger2在编译的时候自动生成的,你clean一下试试。

  3. netgb commented on Apr 1, 2019

    @netgb
    Author

    谢谢提醒,试了还是没能生成。
    clean 、rebuild删除build目录重新跑项目也不生成。

    用AS3.3.2跑
    QuickGank
    和
    https://github.com/ddnosh/QuickTV
    修改了build.gradle文件能成功跑起来。。

    @ddnosh
    昨天已经解决了AS不能生成dagger2相关类的问题了,是和AS所安装的插件有关,
    一次性卸载掉了IDE好几个插件重启IDE后能正常生成了,具体是哪个插件没有排查。

  4. netgb commented on Apr 2, 2019

    @netgb
    Author

    @ddnosh
    同样AS3.3.2 换别机器上能成功跑起来,可能之前机器上的AS坏了。。。

  5. netgb commented on Apr 2, 2019

    @netgb
    Author

    E/e: CLEARTEXT communication to gank.io not permitted by network security policyjava.net.UnknownServiceException: CLEARTEXT communication to gank.io not permitted by network security policy
    E/LogUtil: BaseTActivity: error:java.net.UnknownServiceException: CLEARTEXT communication to gank.io not permitted by network security policy

    点击MVC例子,API28访问http url有问题,用这方案暂时解决了
    NetworkSecurityConfig: No Network Security Config specified

  6. ddnosh commented on Apr 3, 2019

    @ddnosh
    Owner

    @netgb 好的,我记录一下

  7. netgb commented on Apr 9, 2019

    @netgb
    Author

    WARNING: DSL element 'DexOptions.incremental' is obsolete and will be removed at the end of 2018.
    Affected Modules: sample

    // incremental true
    正式版AS3.3.2 ,这行注释了才能跑起来。
    还有可以更新一下sample模块的build.gradle里面jar包依赖的关键字吗,不然用AS3.3.2检出项目每次需要手工修改才没提示。

    WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
    It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
    Affected Modules: sample
    @ddnosh

  8. ddnosh commented on Apr 9, 2019

    @ddnosh
    Owner

    @netgb 已提交更新

  9. netgb commented on Apr 20, 2019

    @netgb
    Author

    AS 3.4版本,gradle插件3.4,gradle版本5.1.1,不能生成com.androidwind.annotation.TagService;
    错误: 程序包com.androidwind.annotation不存在

    换回来3.3.2gradle插件,4.10.2gradle版问题解决了。

  10. netgb commented on Apr 26, 2019

    @netgb
    Author

    implementation 'la.xiong.androidquick:AndroidQuick:1.2.3'
    @ddnosh
    新建项目直接依赖库文件好像跑不起来,有解决方案吗
    More than one file was found with OS independent path 'META-INF/rxjava.properties'

    //解决:
    app/build.gradle文件下修改添加以下内容解决了。
    packagingOptions {//加上这写代码
    pickFirst 'META-INF/*'
    }

  11. netgb commented on Apr 26, 2019

    @netgb
    Author

    WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
    It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
    Affected Modules: treeview

    WARNING: Configuration 'provided' is obsolete and has been replaced with 'compileOnly'.
    It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
    Affected Modules: sample

    AS重新检出项目还是会有错误提示!

  12. netgb commented on Apr 26, 2019

    @netgb
    Author

    The Android Gradle plugin supports only Butterknife Gradle plugin version 9.0.0-rc2 and higher.
    The following dependencies do not satisfy the required version:
    root project 'AndroidQuick' -> com.jakewharton:butterknife-gradle-plugin:8.4.0

    //解决:
    butterknife插件改如下,能Run起来了
    classpath 'com.jakewharton:butterknife-gradle-plugin:9.+'

  13. ddnosh commented on Apr 27, 2019

    @ddnosh
    Owner

    implementation 'la.xiong.androidquick:AndroidQuick:1.2.3'
    @ddnosh
    新建项目直接依赖库文件好像跑不起来,有解决方案吗
    More than one file was found with OS independent path 'META-INF/rxjava.properties'

    //解决:
    app/build.gradle文件下修改添加以下内容解决了。
    packagingOptions {//加上这写代码
    pickFirst 'META-INF/*'
    }

    对,要加上这一段,可参考https://github.com/ddnosh/android-tiny-template 工程里面引用包的配置。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions