集成ping++支付宝微信支付功能遇到的坑

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/jian11058/article/details/86009384

1、导入官方项目时,不能像常规那样导入项目时,删掉一些文件夹,更改文件中版本,什么都不改,直接打开即

可。错误时,android studio会报错:android studio error: style attribute ‘@android:attr/windowEnterAnimation’

n,什么都不改就可以了。

2、android studio CreateProcess error=2, 系统找不到指定的文件。

解决方法:打开 local.properties,将ndk目录的目录加上后缀 .cmd, 即:ndk.dir=E\:\\android\\sdk\\ndk-bundle.cmd,  重新build就
可以正常编译了,没有出现的,那也是可以的

如图:在这里插入图片描述

3、Program type already present: android.support.v4.app.BackStackState$1

	这个问题是因为我自己操作错误,我是一边把:pingpp,pingpp_ui文件夹导入项目中,又一边加依赖:
	compile 'com.pingxx:pingpp-core:2.1.17' // (Ping++ 标准版 SDK) 必须添加
	compile 'com.pingxx:pingpp-ui:2.1.17' // (Ping++ UI 控件) 使用 Ping++ UI 时添加
	
	如果有过文件夹导入的过程,就重新写个demo,这个时候别加入pingpp,pingpp_ui文件夹,直接添加依赖即可:
	compile 'com.pingxx:pingpp-core:2.1.17' // (Ping++ 标准版 SDK) 必须添加
	compile 'com.pingxx:pingpp-ui:2.1.17' // (Ping++ UI 控件) 使用 Ping++ UI 时添加

这几个坑,够我吃的了。大家小心。

猜你喜欢

转载自blog.csdn.net/jian11058/article/details/86009384
今日推荐