Giter Site home page Giter Site logo

编译到手机出错 about photonoter HOT 6 CLOSED

yydcdut avatar yydcdut commented on May 4, 2024
编译到手机出错

from photonoter.

Comments (6)

yydcdut avatar yydcdut commented on May 4, 2024 1

@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.

woitaylor avatar woitaylor commented on May 4, 2024

下下来的已经是注释掉了,还是报这个错误!怎么把dex分包打开!牵扯了dex分包有哪些文件能说下嘛?谢谢!!你这还有个plugin_app的moudle是采用了插件化开发吗?

from photonoter.

jiangyongandy avatar jiangyongandy commented on May 4, 2024

@yydcdut @woitaylor that's ok thanks(run success!). 嗯的确是注释掉了,但是原因似乎是这个,尝试
debug {
// storeFile file("debug.keystore")
}
注释掉,run success!

from photonoter.

woitaylor avatar woitaylor commented on May 4, 2024

@jiangyongandy 改了哪里,还是不行,报的同样的错误,我是window平台,as2.1.2版本。
工程的gradle里面这个版本要跟as的版本一样就不会报错了。
dependencies {
classpath 'com.android.tools.build:gradle:2.1.2'

from photonoter.

jiangyongandy avatar jiangyongandy commented on May 4, 2024

@woitaylor yes,you are right.Maybe my question is that.

from photonoter.

yydcdut avatar yydcdut commented on May 4, 2024

@woitaylor

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)

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.