dpa99c / cordova-diagnostic-plugin

Cordova/Phonegap plugin to manage device settings
534 stars 354 forks source link

Android build Error #498

Closed nomori7010 closed 11 months ago

nomori7010 commented 11 months ago

Bug report

CHECKLIST

Current behavior:

I received the following error.

[16:17:25] /tmp/download/platforms/android/app/src/main/java/cordova/plugins/Diagnostic_External_Storage.java:139: error: cannot find symbol
[16:17:25] if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
[16:17:25] ^
[16:17:25] symbol: variable TIRAMISU
[16:17:25] location: class VERSION_CODES

When I built the same app two days ago, this error did not occur, and the build was successful.

Environment information

Android build issue:

khurshid444 commented 11 months ago

Change the target SDk Version to 33 and build and check . it might work .

nomori7010 commented 11 months ago

By using 7.1.2, I was able to avoid the problem for now.