Android Development: How to compile with build.gradle
Dear all
I face on compile error "com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536", I search in google the problem is my project reached a limit of method. I following from MultIDex instruction. I need to add build.gradle project, when I build it the error still exist. Now my question is that is IntelliJ IDEA need to setup for execute build.gradle? Because I feel the build.gradle never to execute.
And professional can help me
请先登录再写评论。
If your project is Gradle based, you just import the build.gradle file in IDEA and it generates and builds the project automatically.
Hi Serge,
I don't my project is Gradle based or not. How can I check?
Well, if you have build.gradle file and the project builds with Gradle, it's Gradle based =)
The build.gradle is my darg and drop into the project. So is the build.gradle will be executed?
If you have converted your Android project to Gradle Android project by writing build.gradle file, you should import this file in IDEA as a new project, in this case Gradle will be used to build the project.
I never convert the project to Gradle Android project, how can I do?
See http://tools.android.com/tech-docs/new-build-system/migrating-from-intellij-projects
Hi, Serge!
My project is not a Gradle based. It is a simple project including couple library projects and a lot of jar-libraries. Is there some way to overcome this 65K DEX restriction?
I am using Intellij IDEA 14.1.5 and I would not want to use Gradle or something else...
Check https://youtrack.jetbrains.com/issue/IDEA-127703 .
As I understood from your link there is no way to overcome 65K limit for now without Gradle or Maven in Intellij IDEA? Am I right?