Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

编译插件报错> Failed to notify project evaluation listener. > com/android/build/gradle/internal/tasks/PrepareLibraryTask #601

Open
1 task done
Merry-August opened this issue Mar 12, 2019 · 1 comment

Comments

@Merry-August
Copy link

  • 我已阅读并理解 贡献指南,严格遵循其约定。

错误报告

Task :small

Compile-time

  gradle-small plugin : 1.5.0-beta2 (maven)
            small aar : 1.5.0-beta2 (maven)
          gradle core : 4.6
       android plugin : 3.2.1
                   OS : Windows 10 10.0 (amd64)

Bundles

type name PP sdk aapt support file size
host app 28 28.0.3
app app.main 0x77 28 28.0.3

BUILD SUCCESSFUL in 1s
1 actionable task: 1 executed
D:\Android Project\IMySmall>gradlew buildLib -q

FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':app'.

Failed to notify project evaluation listener.
com/android/build/gradle/internal/tasks/PrepareLibraryTask

  • 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

你做了什么?

在 Terminal 面板,编译公共库报错

你期望的结果是什么?

实际结果是什么?

Small环境

Compile-time

  gradle-small plugin : 1.0.0-alpha2 (project)
            small aar : 1.1.0-beta5 (project)
          gradle core : 2.10
       android plugin : 2.0.0
                   OS : Mac OS X 10.12 (x86_64)

Bundles

type name PP file size
host app
app app.main 0x77 *_main.so (x86) 10.9 KB
app app.mine 0x16 *_mine.so (x86) 35.5 KB
app app.detail 0x67 *_detail.so (x86) 6.6 KB
app app.home 0x70 *_home.so (x86) 10.4 KB
lib lib.afterutils 0x45 *_afterutils.so (x86) 21.2 KB
lib lib.analytics 0x76 *_analytics.so (x86) 125.7 KB
lib lib.utils 0x73 *_utils.so (x86) 46 KB
lib lib.style 0x79 *_style.so (x86) 44.9 KB
web web.about *_about.so (x86) 24.3 KB

Runtime

  Device : Samsung Nexus S
     SDK : Android 7.0
     ABI : armeabi-v7a
@Merry-August
Copy link
Author

问题已解决。在build.gradle中改为使用Small 1.5.0-beta2版本,并且将gradle tool版本改为2.3.0
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
classpath 'net.wequick.tools.build:gradle-small:1.5.0-beta2'

    // NOTE: Do not place your application dependencies here; they belong
    // in the individual module build.gradle files
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant