![](/img/trans.png)
[英]Execution failed for task ':app:compileDebugJavaWithJavac'. React Native application for Android
[英]I am unable to open React native android app , android build is getting failed (app:compileDebugJavaWithJavac)
卸載 tipsi-stripe 和安裝 @stripe/stripe-react-native 庫后,我無法打開 React native android 應用程序,android 構建失敗並顯示以下錯誤。
錯誤-1:import com.reactnativestripesdk.StripeSdkPackage; ^ E:\mom\share-app\android\app\src\main\java\com\mom\Reminder.java:38: error: cannot find symbol.setSmallIcon(R.drawable.stp_card_form_back) ^ 符號:變量 stp_card_form_back
錯誤-2:
List.java:125: error: cannot find symbol new StripeSdkPackage(), ^ symbol: class StripeSdkPackage location: class PackageList 注意:一些輸入文件使用或覆蓋已棄用的 API。注意:使用 -Xlint:deprecation 重新編譯。
錯誤-3:
出了什么問題:任務 ':app:compileDebugJavaWithJavac' 執行失敗。
編譯失敗; 有關詳細信息,請參閱編譯器錯誤 output。
嘗試將compileSdkVersion
和targetSdkVersion
更新為
compileSdkVersion 33
targetSdkVersion 33
作為react-native-stripe
最低要求是
來源: https://www.npmjs.com/package/@stripe/stripe-react-native
您不能用react-native-stripe
替換tipsi-stripe
stripe 並期望一切正常。 您應該查看以前tipsi-stripe
用戶的遷移指南,看看需要什么。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.