当我运行ionic build android时,出现以下问题。
解决这个问题如下:
- 查找和替换 com.android.support:support-v4: com.android.support:support-v4:27.1.0 在platform/android目录里。
将下面代码添加到platforms/android/app/build.gradle 和 platforms/android/build.gradle 文件里。
configurations.all { resolutionStrategy { force 'com.android.support:support-v4:27.1.0' }}
Edited to answer “Where is this com.android.support:support-v4:+ setting ?” …
The setting will probably(in this case) be in one of your plugin’s .gradle file in the platform/android/ directory, for example in my case it was the starter-barcodescanner plugin so just go through all your plugins .gradle files :