ionic 打包时所遇问题记录
问题1
----------------------- Error occurred during initialization of VM Could not reserve enough space for 2097152KB object heap * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.
解决方案:
修改为
args.push('-Dorg.gradle.jvmargs=-Xmx256m');
Could not get unknown property 'ANDROID_SUPPORT_V4_VERSION'
ionic打包报错:
解决方法:
修改
为
cordova.system.library.2=com.android.support:support-v4:
具体后面的数字是多少得看项目中api支持什么版本的。输错版本会有提示的,根据提示来选择
Could not get unknown property 'ANDROID_SUPPORT_V4_VERSION'
解决方法:
修改
platforms\android\project.properties
下的cordova.system.library.2=com.android.support:support-v4:$ANDROID_SUPPORT_V4_VERSION为
cordova.system.library.2=com.android.support:support-v4:
25.+
具体后面的数字是多少得看项目中api支持什么版本的。输错版本会有提示的,根据提示来选择
参考链接:https://www.jianshu.com/p/26df1a1fccf2