Code Monkey home page Code Monkey logo

Comments (20)

jiawulu avatar jiawulu commented on May 19, 2024

add --stacktrace

异常堆栈贴下

from atlas.

Whg8908 avatar Whg8908 commented on May 19, 2024

Information:Gradle tasks [clean, :generateDebugSources, :mockableAndroidJar, :prepareDebugUnitTestDependencies, :generateDebugAndroidTestSources]
Error:Execution failed for task ':bundleDebug'.

java.lang.NullPointerException (no error message)

from atlas.

jiawulu avatar jiawulu commented on May 19, 2024

你的构建命令是什么?

是./gradlew assembleDebug --stacktrace 吗?

from atlas.

Whg8908 avatar Whg8908 commented on May 19, 2024

就是直接导入项目就报这个错啊

from atlas.

jiawulu avatar jiawulu commented on May 19, 2024

操作系统?win / mac / linux
命令行直接构建是否报错?
jdk 版本 ? android studio 版本?

from atlas.

Whg8908 avatar Whg8908 commented on May 19, 2024

mac jdk 1.8.0_74 android studio 2.3

from atlas.

401885064 avatar 401885064 commented on May 19, 2024

同问 jdk1.8.101 Android studio2.3 win7 运行一直在building。。。。 我编译其他项目都是正常的,应该不是网络问题

from atlas.

jiawulu avatar jiawulu commented on May 19, 2024

@401885064 命令行构建可以吗? 感觉是卡在下载 gradle 了 :

gradle/wrapper/gradle-wrapper.properties ,
distributionUrl=http://services.gradle.org/distributions/gradle-2.14.1-all.zip 用的是官方的下载地址,国内比较慢

from atlas.

401885064 avatar 401885064 commented on May 19, 2024

@jiawulu gradle用的是本地gradle3.3版本

from atlas.

jiawulu avatar jiawulu commented on May 19, 2024

@401885064 我们的插件暂时还不支持 gradle3.3 。。 gradle3.3 是 android builder 2.3.0 才开始支持的,这个还在开发适配中。 请用 gradle wrapper 吧

image
image

from atlas.

Whg8908 avatar Whg8908 commented on May 19, 2024

2017-03-14 12 01 26
2017-03-14 12 01 42
2017-03-14 12 01 51
2017-03-14 12 02 30
用命令我不知道怎么构建,但是我gradle都是配置本地的2.14.1的,还是一直报那个错

from atlas.

a3349384 avatar a3349384 commented on May 19, 2024

同遇到这个问题。本想使用./gradlew assembleDebug --stacktrace查看异常堆栈的,没想到用这个命令之后build居然成功了

另外还碰到这个问题:Error:Task with name 'publish' not found in root project 'FirstBundle'.
我加了个空task问题就解决了:
task publish <<{

}

from atlas.

317764920 avatar 317764920 commented on May 19, 2024

@ @a3349384 能不能把你的工程发来参考参考

from atlas.

a3349384 avatar a3349384 commented on May 19, 2024

@317764920 就是github上那两个demo工程

from atlas.

jiawulu avatar jiawulu commented on May 19, 2024

FirstBunle 里的 publish 任务是执行不了的, 这里的代码需要手工修改下

publishing {
    publications {
        maven(MavenPublication) {
            artifact "${project.buildDir}/outputs/awb/${project.name}-release.awb"
            artifact sourcesJar
        }
    }
    repositories {
        mavenLocal()
//        maven {
//            url "url"
//            credentials {
//                username = "xxx"
//                password = "xxx"
//            }
//        }
    }
}

./gradlew clean assembleRelease publishMavenPublicationToMavenLocal

from atlas.

mpeng5120 avatar mpeng5120 commented on May 19, 2024

$ ./gradlew clean assembleRelease publishMavenPublicationToMavenLocal

FAILURE: Build failed with an exception.

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

Could not resolve all dependencies for configuration ':classpath'.
Could not find dom4j:dom4j:2.0.
Searched in the following locations:
file:/C:/Users/Administrator/.m2/repository/dom4j/dom4j/2.0/dom4j-2.0.pom
file:/C:/Users/Administrator/.m2/repository/dom4j/dom4j/2.0/dom4j-2.0.jar
https://jcenter.bintray.com/dom4j/dom4j/2.0/dom4j-2.0.pom
https://jcenter.bintray.com/dom4j/dom4j/2.0/dom4j-2.0.jar
Required by:
:FirstBundle:unspecified > com.taobao.android:atlasplugin:1.0.0
Could not find com.taobao.android:DexPatch:1.0.4-SNAPSHOT.
Searched in the following locations:
file:/C:/Users/Administrator/.m2/repository/com/taobao/android/DexPatch/1.0.4-SNAPSHOT/maven-metadata.xml
file:/C:/Users/Administrator/.m2/repository/com/taobao/android/DexPatch/1.0.4-SNAPSHOT/DexPatch-1.0.4-SNAPSHOT.pom
file:/C:/Users/Administrator/.m2/repository/com/taobao/android/DexPatch/1.0.4-SNAPSHOT/DexPatch-1.0.4-SNAPSHOT.jar
https://jcenter.bintray.com/com/taobao/android/DexPatch/1.0.4-SNAPSHOT/maven-metadata.xml
https://jcenter.bintray.com/com/taobao/android/DexPatch/1.0.4-SNAPSHOT/DexPatch-1.0.4-SNAPSHOT.pom
https://jcenter.bintray.com/com/taobao/android/DexPatch/1.0.4-SNAPSHOT/DexPatch-1.0.4-SNAPSHOT.jar
Required by:
:FirstBundle:unspecified > com.taobao.android:atlasplugin:1.0.0

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 11.555 secs

照上面修改后用这个命令编译这是什么错?

from atlas.

jiawulu avatar jiawulu commented on May 19, 2024

@mpeng5120

更新下代码 , git pull

from atlas.

mpeng5120 avatar mpeng5120 commented on May 19, 2024

好的,多谢

from atlas.

jiawulu avatar jiawulu commented on May 19, 2024

jdk版本过低了

from atlas.

JellyHell avatar JellyHell commented on May 19, 2024

@jiawulu ok 了

from atlas.

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.