Comments (20)
add --stacktrace
异常堆栈贴下
from atlas.
Information:Gradle tasks [clean, :generateDebugSources, :mockableAndroidJar, :prepareDebugUnitTestDependencies, :generateDebugAndroidTestSources]
Error:Execution failed for task ':bundleDebug'.
java.lang.NullPointerException (no error message)
from atlas.
你的构建命令是什么?
是./gradlew assembleDebug --stacktrace 吗?
from atlas.
就是直接导入项目就报这个错啊
from atlas.
操作系统?win / mac / linux
命令行直接构建是否报错?
jdk 版本 ? android studio 版本?
from atlas.
mac jdk 1.8.0_74 android studio 2.3
from atlas.
同问 jdk1.8.101 Android studio2.3 win7 运行一直在building。。。。 我编译其他项目都是正常的,应该不是网络问题
from atlas.
@401885064 命令行构建可以吗? 感觉是卡在下载 gradle 了 :
gradle/wrapper/gradle-wrapper.properties ,
distributionUrl=http://services.gradle.org/distributions/gradle-2.14.1-all.zip 用的是官方的下载地址,国内比较慢
from atlas.
@jiawulu gradle用的是本地gradle3.3版本
from atlas.
@401885064 我们的插件暂时还不支持 gradle3.3 。。 gradle3.3 是 android builder 2.3.0 才开始支持的,这个还在开发适配中。 请用 gradle wrapper 吧
from atlas.
用命令我不知道怎么构建,但是我gradle都是配置本地的2.14.1的,还是一直报那个错
from atlas.
同遇到这个问题。本想使用./gradlew assembleDebug --stacktrace查看异常堆栈的,没想到用这个命令之后build居然成功了
另外还碰到这个问题:Error:Task with name 'publish' not found in root project 'FirstBundle'.
我加了个空task问题就解决了:
task publish <<{
}
from atlas.
@ @a3349384 能不能把你的工程发来参考参考
from atlas.
@317764920 就是github上那两个demo工程
from atlas.
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.
$ ./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.
更新下代码 , git pull
from atlas.
好的,多谢
from atlas.
jdk版本过低了
from atlas.
@jiawulu ok 了
from atlas.
Related Issues (20)
- 在编译AtlasDemo时候的错误
- app-debug.ap无效
- 生成patch文件时的异常
- [demo]:编译debug apk,执行` gradlew assembleDebug`出现异常.
- [demo]:gradlew clean assembleDebug publish 命令失败 HOT 1
- [demo]:宿主apk无法加载patch文件 cache file failed CRC check
- [demo]: 加载远程bundle异常 HOT 1
- [demo]:Atlas单模块部署 异常
- 升级Mac 10.15后,编译失败,aapt报错 HOT 2
- [demo]:运行时remotebundle的RemoteBundleActivity无法打开,报ClassNotFoundException HOT 1
- Demo: build/output/tpatch-debug 目录下文件未生成
- [demo]: 动态部署 Atlas.getInstance().installOrUpdate 未找到这个方法
- [demo]: 动态部署 java.lang.reflect.InvocationTargetException
- MAC编译 .Ap文件创建失败怎么回事呢 求解答 HOT 1
- 可以适配android gradle plugin 3.6.+ 吗
- AtlasDemo 无法正常运行
- Keyframe containsProgress error HOT 1
- 有armv8a 的 libdalvikpatch.so 吗
- 请问该项目还维护吗? HOT 3
- 钉钉群二维码已过期,请问是否有其它官方群
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from atlas.