關於ionic4導入android studio的注意事項

最近看IT營的視頻的時候,發現視頻講解的打包真是輕鬆的不得了,可是當本身導入打包的時候,你就會發現,沒有最坑,只有更坑,按照教程來打包,估計你這輩子很難還原成功的,下面就來講一下關於android

gradle與gradle pulgin之間的關係,作一記錄,gradle的版本實在太多了,並且當用ionic去添加平臺後,再導入android studio進行打包的時候,仍是會遇到各類各樣的問題須要解決的,關點幾個鼠標是遠遠不夠的。app

http://tools.android.com/tech-docs/new-build-system/version-compatibilityionic

Version Compatibility

Post 1.0 Compatibility

Starting with Android Studio 1.0 and the Gradle plugin for Android 1.0, compatibility is a critical requirement.

While we are still looking at finalizing our policy you should at least expect:
 
Android Studio and the Android Gradle Plugin
Studio  1.* or  2.* works with Gradle Plugin  1.*, and  2.*
Newer versions of the Gradle plugin may require newer versions of Studio to enable the new features in the IDE, but the project should open in older versions of Studio, and build from there (since Gradle does the build). We will be very careful about this.
We will determine later our compatibility story between Studio 2.x and Gradle Plugin 1.x and between Studio 1.x and Gradle Plugin 2.x
We will make every effort to keep compatibility where possible, and to provide good Quick Assist to help with migration where applicable.
The Android Gradle Plugin and Gradle
 Android Gradle Plugin Requires Gradle
 1.0.0 - 1.1.3  2.2.1 - 2.3
 1.2.0 - 1.3.1  2.2.1 - 2.9
 1.5.0  2.2.1+
 2.0.0-2.1.2  2.10 - 2.13
 2.1.3+  2.14.1+

 

We recommend using the latest Gradle possible for your project for performance reasons.

Post 1.0 DSL compatibilityide

The DSL changed a lot before 1.0, but it should be stable now.gradle

If/When we need to change things we will have long deprecation periods, likely longer than 6 months, possibly 12 months.ui

Preview Compatibilitythis

This table indicate compatibility for pre-1.0 components.
 
All this breaking changes happened because we tweaked the model exchanged between the IDE and Gradle a lot. All this work was to ensure stability after 1.0. 

 Android Studio  Android Gradle Plugin  Gradle
 1.0.0+ 1.0.0+  2.2, 2.2.1, 2.0+
 
 
 
這裏看到  針對 gradle plugin 與 gradle是有版本支持限制的。
相關文章
相關標籤/搜索