簡體   English   中英

任務:app:compileDebugJavaWithJavac FAILED FAILURE:構建失敗並出現異常

[英]Task :app:compileDebugJavaWithJavac FAILED FAILURE: Build failed with an exception

我正在嘗試使用 angular 為我的離子應用程序實現后台地理定位。 我正在使用離子原生插件作為后台位置,一切都完成后,應用程序編譯正常,但無法使用cordova為android構建。 多次嘗試后,我將插件從 @ionic-native/background-geolocation 更改為 @mauron85/cordova-plugin-background-geolocation 但還有另一個錯誤是https://github.com/mauron85/cordova-plugin -background-geolocation/issues/766 ,我嘗試過但沒有運氣,現在我正在嘗試解決這兩個問題! 這是帶有本機插件的完整日志;

C:\Users\Admin\backgroundLocation\platforms\android\app\src\main\java\de\appplant\cordova\plugin\notification\Options.java:311: error: cannot find symbol
        return NotificationCompat.COLOR_DEFAULT;
               ^

符號:變量 NotificationCompat 位置:類 de.appplant.cordova.plugin.notification.Options 注意:一些輸入文件使用或覆蓋已棄用的 API。 注意:使用 -Xlint:deprecation 重新編譯以獲取詳細信息。 注意:某些輸入文件使用未經檢查或不安全的操作。 注意:使用 -Xlint:unchecked 重新編譯以獲取詳細信息。 100 個錯誤

任務 :app:compileDebugJavaWithJavac 失敗

FAILURE:構建失敗並出現異常。

  • 出了什么問題:任務“:app:compileDebugJavaWithJavac”執行失敗。

編譯失敗; 有關詳細信息,請參閱編譯器錯誤輸出。

  • 嘗試:使用 --stacktrace 選項運行以獲取堆棧跟蹤。 使用 --info 或 --debug 選項運行以獲得更多日志輸出。 運行 --scan 以獲得完整的見解。

  • https://help.gradle.org獲得更多幫助

此構建中使用了已棄用的 Gradle 功能,使其與 Gradle 8.0 不兼容。

您可以使用“--warning-mode all”來顯示各個棄用警告並確定它們是否來自您自己的腳本或插件。

https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec:command_line_warnings

在 2m 31s 內構建失敗 36 個可操作任務:3 個已執行,33 個最新命令失敗,退出代碼為 1:C:\Users\Admin\backgroundLocation\platforms\android\gradlew cdvBuildDebug -b C:\Users\Admin\backgroundLocation \platforms\android\build.gradle [ERROR] 運行子進程cordova 時出錯。

    cordova.cmd build android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM