Home > Mobile >  Help solve some problems about the aar is generated
Help solve some problems about the aar is generated

Time:04-21


A project contains
Following structure
The Test
App
The core

Namely the core used to generate the aar, then use the app to refer to aar test


If is to use the
In the app
Dependencies {
Implementation project (path: 'core')
}
This app can identify the core code, but found that the core is not generated aar


But in the following way to reference the binary aar complains
Dependencies {
Implementation (name: 'core', ext: 'the aar)
}

But here will find no core. The aar and compiling failure (the chicken or the egg came first? Online teaching is manually copy, but if you want to automatically to how to write?

Problem a:
Implementation project (path: 'core') at the same time can be automatically generated aar? How do you write?

Problem two:
Gradlew can only perform a task in a batch? I wanted to record since no insertion order, then I use one task to perform assembly? But the test

Gradlew core: makeAAR
Gradlew assembleRelease
Then assembleRelease at this moment the second command, but does not perform is what? Don't have to execute a command?




  • Related