react-native-amap-geolocation icon indicating copy to clipboard operation
react-native-amap-geolocation copied to clipboard

程序包android.support.annotation不存在

Open lrxiang222 opened this issue 6 years ago • 14 comments

\geolocation\AMapGeolocationModule.java:3: 错误: 程序包android.support.annotation不存在

React-Native版本:0.59.10 react-native-amap-geolocation版本:1.0.4

lrxiang222 avatar Sep 25 '19 09:09 lrxiang222

请问怎么解决?谢谢!

1442916418 avatar Sep 26 '19 00:09 1442916418

同样的问题

cw0925 avatar Sep 26 '19 08:09 cw0925

暂未解决,请问有好的办法吗?

------------------ 原始邮件 ------------------ 发件人: "cw0925"[email protected]; 发送时间: 2019年9月26日(星期四) 下午4:36 收件人: "qiuxiang/react-native-amap-geolocation"[email protected]; 抄送: "余水生"[email protected];"Comment"[email protected]; 主题: Re: [qiuxiang/react-native-amap-geolocation] 程序包android.support.annotation不存在 (#99)

同样的问题

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

1442916418 avatar Sep 26 '19 08:09 1442916418

屏幕快照 2019-09-30 上午10 10 27 我是把那两句注释解决的,可以参考一下

cw0925 avatar Sep 30 '19 02:09 cw0925

我也是注释。。不知道有没有影响。但没有报错了

cricketsbrother avatar Sep 30 '19 03:09 cricketsbrother

这个是由于使用了Rn升级或者安装新的包,导致使用了androidx 集成而导致的问题,需要查一下是哪个包影响的,改下版本不使用androidx,还有就是要注意一下react-native-amap-geolocation的版本

lrxiang222 avatar Oct 10 '19 03:10 lrxiang222

好的,我再试试,谢谢回复!

------------------ 原始邮件 ------------------ 发件人: "lrxiang"[email protected]; 发送时间: 2019年10月10日(星期四) 中午11:01 收件人: "qiuxiang/react-native-amap-geolocation"[email protected]; 抄送: "余水生"[email protected];"Comment"[email protected]; 主题: Re: [qiuxiang/react-native-amap-geolocation] 程序包android.support.annotation不存在 (#99)

这个是由于使用了Rn升级或者安装新的包,导致使用了androidx 集成而导致的问题,需要查一下是哪个包影响的,改下版本不使用androidx,还有就是要注意一下react-native-amap-geolocation的版本

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

1442916418 avatar Oct 10 '19 03:10 1442916418

这个是由于使用了Rn升级或者安装新的包,导致使用了androidx 集成而导致的问题,需要查一下是哪个包影响的,改下版本不使用androidx,还有就是要注意一下react-native-amap-geolocation的版本

image 请问"react-native": "0.61.1",下哪个react-native-amap-geolocation的版本 我的版本是v1.0.4 也存在这个问题

xif3681 avatar Oct 10 '19 04:10 xif3681

好的,我再试试,谢谢回复! ------------------ 原始邮件 ------------------ 发件人: "lrxiang"[email protected]; 发送时间: 2019年10月10日(星期四) 中午11:01 收件人: "qiuxiang/react-native-amap-geolocation"[email protected]; 抄送: "余水生"[email protected];"Comment"[email protected]; 主题: Re: [qiuxiang/react-native-amap-geolocation] 程序包android.support.annotation不存在 (#99) 这个是由于使用了Rn升级或者安装新的包,导致使用了androidx 集成而导致的问题,需要查一下是哪个包影响的,改下版本不使用androidx,还有就是要注意一下react-native-amap-geolocation的版本 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

解决了吗?【关注】

xif3681 avatar Oct 10 '19 04:10 xif3681

未解决,我已放弃这个版本,重新拉取版本操作!

------------------ 原始邮件 ------------------ 发件人: "Shuqi Luo"[email protected]; 发送时间: 2019年10月10日(星期四) 中午12:32 收件人: "qiuxiang/react-native-amap-geolocation"[email protected]; 抄送: "余水生"[email protected];"Comment"[email protected]; 主题: Re: [qiuxiang/react-native-amap-geolocation] 程序包android.support.annotation不存在 (#99)

好的,我再试试,谢谢回复! … ------------------ 原始邮件 ------------------ 发件人: "lrxiang"[email protected]; 发送时间: 2019年10月10日(星期四) 中午11:01 收件人: "qiuxiang/react-native-amap-geolocation"[email protected]; 抄送: "余水生"[email protected];"Comment"[email protected]; 主题: Re: [qiuxiang/react-native-amap-geolocation] 程序包android.support.annotation不存在 (#99) 这个是由于使用了Rn升级或者安装新的包,导致使用了androidx 集成而导致的问题,需要查一下是哪个包影响的,改下版本不使用androidx,还有就是要注意一下react-native-amap-geolocation的版本 — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

解决了吗?【关注】

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

1442916418 avatar Oct 10 '19 05:10 1442916418

https://www.jianshu.com/p/41de8689615d 这个可能对你们有所帮助,我使用的是 RN0.59.10的版本,很多的应用目前开始有部分兼容Androidx可以进行版本迁移,但是有的版本是不支持androix。目前这个应用,好像还没有完成androidx的迁移,所以你们可以问下作者或者更新下来,自行修改使之能够兼容到androidx

lrxiang222 avatar Oct 11 '19 02:10 lrxiang222

试试将其自行修改到androidx

yuanbolin avatar Oct 21 '19 05:10 yuanbolin

android.support.annotation改成 androidx.annotation

Surile avatar Jul 15 '20 10:07 Surile

谢谢回复

---原始邮件--- 发件人: "夜雨"<[email protected]> 发送时间: 2020年7月15日(周三) 晚上6:02 收件人: "qiuxiang/react-native-amap-geolocation"<[email protected]>; 抄送: "1442916418"<[email protected]>;"Comment"<[email protected]>; 主题: Re: [qiuxiang/react-native-amap-geolocation] 程序包android.support.annotation不存在 (#99)

将android.support.annotation改成 androidx.annotation

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

1442916418 avatar Jul 15 '20 10:07 1442916418