【问题标题】:Android Gradle Experimental & RenderScript implementationAndroid Gradle 实验性和 RenderScript 实现
【发布时间】:2015-12-16 18:48:00
【问题描述】:

我正在尝试使用 Gradle Experimental。
到目前为止,我似乎还没有找到实现模糊效果所需的 RenderScript 支持库的方法:
https://developer.android.com/guide/topics/renderscript/compute.html#access-rs-apis

这是我尝试使用的库:https://github.com/kikoso/android-stackblur

但是因为没有jar或者aar,所以不能用。

【问题讨论】:

    标签: android android-studio gradle renderscript gradle-experimental


    【解决方案1】:

    项目的自述文件说你必须先下载它。你可以通过git clone https://github.com/kikoso/android-stackblur.git来克隆git repo,或者你可以直接从https://github.com/kikoso/android-stackblur/archive/master.zip下载它

    之后,您必须从 Android Studio 中导入项目,并按照库的使用步骤进行操作。

    【讨论】:

    • Bly me ...这个项目很老了??它在graddle-wrapper.properties 中使用Gradle 0.8.++gradle-1.10,这显然与Android Studio 1.5(稳定版)不兼容。我尝试使用所需的版本1.5.0,但我根本无法编译...这是我得到的错误:Error:(11, 0) Gradle DSL method not found: 'android()' Possible causes:<ul><li>The project 'android-stackblur' may be using a version of Gradle that does not contain the method.
    猜你喜欢
    • 1970-01-01
    • 2018-03-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多