Comments (6)
@jiangyongandy
开发环境是MAC,在处理的时候没有处理兼容WINDOWS
可以先将gradle的
tasks.whenTaskAdded { task ->
// if (task.name.startsWith("create") && task.name.endsWith("MainDexClassList")) {
if (task.name.startsWith("transformClassesWithMultidexlistFor")) {
task.doLast {
// def flavorAndBuildType = task.name.substring("create".length(), task.name.length() - "MainDexClassList".length())
def flavorAndBuildType = task.name.substring("transformClassesWithMultidexlistFor".length(), task.name.length())
autoSplitDex.configure {
description = flavorAndBuildType
}
autoSplitDex.execute()
}
}
}tasks.whenTaskAdded { task ->
// if (task.name.startsWith("create") && task.name.endsWith("MainDexClassList")) {
if (task.name.startsWith("transformClassesWithMultidexlistFor")) {
task.doLast {
// def flavorAndBuildType = task.name.substring("create".length(), task.name.length() - "MainDexClassList".length())
def flavorAndBuildType = task.name.substring("transformClassesWithMultidexlistFor".length(), task.name.length())
autoSplitDex.configure {
description = flavorAndBuildType
}
autoSplitDex.execute()
}
}
}
注释掉
from photonoter.
下下来的已经是注释掉了,还是报这个错误!怎么把dex分包打开!牵扯了dex分包有哪些文件能说下嘛?谢谢!!你这还有个plugin_app的moudle是采用了插件化开发吗?
from photonoter.
@yydcdut @woitaylor that's ok thanks(run success!). 嗯的确是注释掉了,但是原因似乎是这个,尝试
debug {
// storeFile file("debug.keystore")
}
注释掉,run success!
from photonoter.
@jiangyongandy 改了哪里,还是不行,报的同样的错误,我是window平台,as2.1.2版本。
工程的gradle里面这个版本要跟as的版本一样就不会报错了。
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'
from photonoter.
@woitaylor yes,you are right.Maybe my question is that.
from photonoter.
tasks.whenTaskAdded { task ->
// if (task.name.startsWith("create") && task.name.endsWith("MainDexClassList")) {
if (task.name.startsWith("transformClassesWithMultidexlistFor")) {
task.doLast {
// def flavorAndBuildType = task.name.substring("create".length(), task.name.length() - "MainDexClassList".length())
def flavorAndBuildType = task.name.substring("transformClassesWithMultidexlistFor".length(), task.name.length())
autoSplitDex.configure {
description = flavorAndBuildType
}
autoSplitDex.execute()
}
}
}
把这段代码全部注释掉试试呢,应该是这里的错,没有处理WINDOW的正则,只处理了MAC的,有时间我改过来
from photonoter.
Related Issues (19)
- bug HOT 1
- debug下没有找到对应的allclasses.jar HOT 2
- 没有找到dex 这个task HOT 5
- 请问将gradle1.3.0、dex分包脚本均注释掉。使用gradle2.1.0是何解? HOT 3
- 分包貌似没起作用啊? HOT 16
- 崩溃 HOT 3
- 关于在gradle插件2.1.0后怎么通过gradle查找直接依赖问题? HOT 1
- plugin_app 的作用是? HOT 1
- 大神,编译时出错了 HOT 1
- http://yydcdut.com/note 404 HOT 1
- crash in android M HOT 4
- 让主dex的大小小一些,这样在第一次启动的时候速度快一些? HOT 1
- 你怎么分包的,给出可具体的操作说明可好? HOT 3
- 拉下项目点击运行时报错 HOT 3
- 动画错位 HOT 1
- 代码中没有com.yydcdut.note.injector.component.DaggerActivityComponent HOT 1
- 印象笔记不能同步,怎么回事 HOT 6
- 照片拍照 不能生成照片
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 photonoter.