Cordova-plugin-firebasex: μ•ˆλ“œλ‘œμ΄λ“œ λΉŒλ“œ 였λ₯˜

에 λ§Œλ“  2020λ…„ 04μ›” 08일  Β·  5μ½”λ©˜νŠΈ  Β·  좜처: dpa99c/cordova-plugin-firebasex

μ€‘μš”: 읽어 μ£Όμ‹­μ‹œμ˜€. κ²½κ³ : μ•„λž˜μ˜ 문제 ν…œν”Œλ¦Ώ 지침을 λ”°λ₯΄μ§€ μ•ŠμœΌλ©΄ λ¬Έμ œκ°€ μ¦‰μ‹œ μ’…λ£Œλ©λ‹ˆλ‹€. μ—¬κΈ°μ—μ„œλŠ” 버그 λ³΄κ³ μ„œλ§Œ μ—΄μ–΄μ•Ό ν•©λ‹ˆλ‹€. 문제λ₯Ό μ—΄κΈ° 전에 λ‹€μŒμ„ μˆ˜ν–‰ν•˜μ‹­μ‹œμ˜€. - 이 ν”ŒλŸ¬κ·ΈμΈμ— λŒ€ν•΄ μœ μ‚¬ν•œ λ¬Έμ œκ°€ 아직 μ—΄λ € μžˆμ§€ μ•Šμ€(λ˜λŠ” λ‹«ν˜€ μžˆμ§€ μ•Šμ€μ§€) ν™•μΈν•˜μ‹­μ‹œμ˜€. - 쀑볡 λ˜λŠ” 쀑볡에 κ°€κΉŒμš΄ 건은 μ¦‰μ‹œ νμ‡„λ©λ‹ˆλ‹€. - 예제 ν”„λ‘œμ νŠΈλ₯Ό μ‚¬μš©ν•˜μ—¬ 문제λ₯Ό μž¬ν˜„ν•΄ λ΄…λ‹ˆλ‹€. - λΆˆκ°€λŠ₯ν•  경우 κ³΅μœ ν•  수 μžˆλŠ” 격리된 ν…ŒμŠ€νŠΈ ν”„λ‘œμ νŠΈλ₯Ό μ‚¬μš©ν•©λ‹ˆλ‹€. - μ΄λ ‡κ²Œ ν•˜λ©΄ μ½”λ“œμ˜ λ²„κ·Έλ‚˜ 문제의 κ°€λŠ₯ν•œ 원인인 λ‹€λ₯Έ μ½”λ“œμ™€μ˜ 좩돌이 μ œκ±°λ©λ‹ˆλ‹€. - λͺ¨λ“  문제 Ionic Native λž˜νΌμ— μ˜ν•΄ λ°œμƒν•˜λŠ” κ²ƒμœΌλ‘œ μ˜μ‹¬λ˜λŠ” 경우 [Ionic Native에 λŒ€ν•΄ 보고](https://github.com/ionic-team/ionic-native/issues/new) - Ionic Native Typescript λž˜νΌλŠ” Ionic에 μ˜ν•΄ μœ μ§€ κ΄€λ¦¬λ©λ‹ˆλ‹€. νŒ€ - λ¬Έμ œκ°€ 이 ν”ŒλŸ¬κ·ΈμΈ λ˜λŠ” ν•΄λ‹Ή Typescript 래퍼둜 인해 λ°œμƒν•˜λŠ”μ§€ ν™•μΈν•˜λ €λ©΄ Ionic Native 래퍼 없이 κΈ°λ³Έ Javascript ν”ŒλŸ¬κ·ΈμΈ μΈν„°νŽ˜μ΄μŠ€λ₯Ό μ‚¬μš©ν•˜μ—¬ λ‹€μ‹œ ν…ŒμŠ€νŠΈν•˜μ„Έμš”. - λΆ„λͺ…νžˆ Ionic Typescript 래퍼 문제인 μ—¬κΈ°μ—μ„œ μ—΄λ¦° λͺ¨λ“  λ¬Έμ œλŠ” μ¦‰μ‹œ λ‹«νž™λ‹ˆλ‹€. μ•„λž˜μ˜ κ΄€λ ¨ μ„Ήμ…˜μ„ μž‘μ„±ν•˜κ³  κ΄€λ ¨ μ—†λŠ” μ„Ήμ…˜μ„ μ‚­μ œν•˜μ‹­μ‹œμ˜€.

버그 μ‹ κ³ 

ν˜„μž¬ 행동:


Androidμ—μ„œ λΉŒλ“œν•˜λ©΄ λΉŒλ“œκ°€ μ‹€νŒ¨ν•˜λŠ” 컴파일 였λ₯˜κ°€ λ°œμƒν•©λ‹ˆλ‹€.


9.0.1μ—μ„œ 8.0.1둜 되돌린 ν›„ λΉŒλ“œλŠ” λ‹€μ‹œ μ •μƒμž…λ‹ˆλ‹€.

ν™˜κ²½μ •λ³΄

  • μ½”λ₯΄λ„λ°” CLI 버전
  • Cordova ν”Œλž«νΌ 버전

    • Installed platforms: android 8.1.0

  • ν”„λ‘œμ νŠΈμ— μ„€μΉ˜λœ ν”ŒλŸ¬κ·ΈμΈ 및 버전(이 ν”ŒλŸ¬κ·ΈμΈ 포함)

    • cordova-custom-config 5.1.0 "cordova-custom-config" cordova-plugin-actionsheet 2.3.3 "ActionSheet" cordova-plugin-androidx 1.0.2 "cordova-plugin-androidx" cordova-plugin-androidx-adapter 1.1.0 "cordova-plugin-androidx-adapter" cordova-plugin-app-update 2.0.2 "AppUpdate" cordova-plugin-appversion 1.0.0 "App Version" cordova-plugin-camera 4.1.0 "Camera" cordova-plugin-device 2.0.3 "Device" cordova-plugin-dialogs 2.0.2 "Notification" cordova-plugin-email-composer 0.9.2 "EmailComposer" cordova-plugin-file 6.0.2 "File" cordova-plugin-file-opener2 2.2.1 "File Opener2" cordova-plugin-firebasex 9.0.1 "Google Firebase Plugin" cordova-plugin-geolocation 4.0.2 "Geolocation" cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard" cordova-plugin-ionic-webview 4.1.3 "cordova-plugin-ionic-webview" cordova-plugin-ios-disableshaketoedit 1.0.0 "iOS Disable Shake to Edit" cordova-plugin-network-information 2.0.2 "Network Information" cordova-plugin-screen-orientation 3.0.2 "Screen Orientation" cordova-plugin-splashscreen 5.0.3 "Splashscreen" cordova-plugin-statusbar 2.4.3 "StatusBar" cordova-plugin-whitelist 1.3.4 "Whitelist" cordova-sqlite-storage 3.4.1 "Cordova sqlite storage plugin - cordova-sqlite-storage plugin version" es6-promise-plugin 4.2.2 "Promise" uk.co.workingedge.phonegap.plugin.launchnavigator 5.0.4 "Launch Navigator"

  • 개발 λ¨Έμ‹  OS 및 버전, 예

    • μœˆλ„μš° 10



      • win 10 v 1903



_Android λΉŒλ“œ 문제:_

  • λ…Έλ“œ JS 버전

    • v10.16.0

  • Gradle 버전

    • 4.10.3 5.5 buildOutputCleanup vcs-1

μ½˜μ†” 좜λ ₯


μ½˜μ†” 좜λ ₯

> Task :app:processReleaseResources
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:84: error: cannot find symbol
                FirebasePlugin.applicationContext = this.getApplicationContext();
                                                        ^
  symbol: method getApplicationContext()
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:196: error: no suitable constructor found for Intent(FirebasePluginMessagingService,Class<OnNotificationOpenReceiver>)
            Intent intent = new Intent(this, OnNotificationOpenReceiver.class);
                            ^
    constructor Intent.Intent(String,Uri) is not applicable
      (argument mismatch; FirebasePluginMessagingService cannot be converted to String)
    constructor Intent.Intent(Context,Class<?>) is not applicable
      (argument mismatch; FirebasePluginMessagingService cannot be converted to Context)
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:198: error: incompatible types: FirebasePluginMessagingService cannot be converted to Context 
            PendingIntent pendingIntent = PendingIntent.getBroadcast(this, id.hashCode(), intent, PendingIntent.FLAG_UPDATE_CURRENT);
                                                                     ^
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:208: error: incompatible types: FirebasePluginMessagingService cannot be converted to Context 
            NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, channelId);
                                                                                            ^
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:225: error: cannot find symbol
                    Uri soundPath = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + getPackageName() + "/raw/" + sound);
                                                                                                ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:265: error: cannot find symbol
            int defaultSmallIconResID = getResources().getIdentifier(defaultSmallIconName, "drawable", getPackageName());
                                                                                                       ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:265: error: cannot find symbol
            int defaultSmallIconResID = getResources().getIdentifier(defaultSmallIconName, "drawable", getPackageName());
                                        ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:268: error: cannot find symbol
                customSmallIconResID = getResources().getIdentifier(icon, "drawable", getPackageName());
                                                                                      ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:268: error: cannot find symbol
                customSmallIconResID = getResources().getIdentifier(icon, "drawable", getPackageName());
                                       ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:279: error: cannot find symbol
                notificationBuilder.setSmallIcon(getApplicationInfo().icon);
                                                 ^
  symbol:   method getApplicationInfo()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:283: error: cannot find symbol
                int defaultLargeIconResID = getResources().getIdentifier(defaultLargeIconName, "drawable", getPackageName());
                                                                                                           ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:283: error: cannot find symbol
                int defaultLargeIconResID = getResources().getIdentifier(defaultLargeIconName, "drawable", getPackageName());
                                            ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:286: error: cannot find symbol
                    customLargeIconResID = getResources().getIdentifier(icon+"_large", "drawable", getPackageName());
                                                                                                   ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:286: error: cannot find symbol
                    customLargeIconResID = getResources().getIdentifier(icon+"_large", "drawable", getPackageName());
                                           ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:298: error: cannot find symbol
                    largeIconResID = getApplicationInfo().icon;
                                     ^
  symbol:   method getApplicationInfo()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:300: error: cannot find symbol
                notificationBuilder.setLargeIcon(BitmapFactory.decodeResource(getApplicationContext().getResources(), largeIconResID));
                                                                              ^
  symbol:   method getApplicationContext()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:305: error: cannot find symbol
                int defaultColor = getResources().getColor(getResources().getIdentifier("accent", "color", getPackageName()), null);
                                                                                                           ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:305: error: cannot find symbol
                int defaultColor = getResources().getColor(getResources().getIdentifier("accent", "color", getPackageName()), null);
                                                           ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:305: error: cannot find symbol
                int defaultColor = getResources().getColor(getResources().getIdentifier("accent", "color", getPackageName()), null);
                                   ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:336: error: cannot find symbol
            NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
                                                                            ^
  symbol:   method getSystemService(String)
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:341: error: cannot find symbol
        FirebasePlugin.sendMessage(bundle, this.getApplicationContext());
                                               ^
  symbol: method getApplicationContext()
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\file\AssetFilesystem.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
21 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 53s

> Task :app:compileReleaseJavaWithJavac

> Task :app:compileReleaseJavaWithJavac FAILED
33 actionable tasks: 33 executed
C:\Users\Simon\Development\core\mobile-app\platforms\android\gradlew: Command failed with exit code 1 Error output:
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:84: error: cannot find symbol
                FirebasePlugin.applicationContext = this.getApplicationContext();
                                                        ^
  symbol: method getApplicationContext()
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:196: error: no suitable constructor found for Intent(FirebasePluginMessagingService,Class<OnNotificationOpenReceiver>)
            Intent intent = new Intent(this, OnNotificationOpenReceiver.class);
                            ^
    constructor Intent.Intent(String,Uri) is not applicable
      (argument mismatch; FirebasePluginMessagingService cannot be converted to String)
    constructor Intent.Intent(Context,Class<?>) is not applicable
      (argument mismatch; FirebasePluginMessagingService cannot be converted to Context)
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:198: error: incompatible types: FirebasePluginMessagingService cannot be converted to Context 
            PendingIntent pendingIntent = PendingIntent.getBroadcast(this, id.hashCode(), intent, PendingIntent.FLAG_UPDATE_CURRENT);
                                                                     ^
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:208: error: incompatible types: FirebasePluginMessagingService cannot be converted to Context 
            NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this, channelId);
                                                                                            ^
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:225: error: cannot find symbol
                    Uri soundPath = Uri.parse(ContentResolver.SCHEME_ANDROID_RESOURCE + "://" + getPackageName() + "/raw/" + sound);
                                                                                                ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:265: error: cannot find symbol
            int defaultSmallIconResID = getResources().getIdentifier(defaultSmallIconName, "drawable", getPackageName());
                                                                                                       ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:265: error: cannot find symbol
            int defaultSmallIconResID = getResources().getIdentifier(defaultSmallIconName, "drawable", getPackageName());
                                        ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:268: error: cannot find symbol
                customSmallIconResID = getResources().getIdentifier(icon, "drawable", getPackageName());
                                                                                      ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:268: error: cannot find symbol
                customSmallIconResID = getResources().getIdentifier(icon, "drawable", getPackageName());
                                       ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:279: error: cannot find symbol
                notificationBuilder.setSmallIcon(getApplicationInfo().icon);
                                                 ^
  symbol:   method getApplicationInfo()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:283: error: cannot find symbol
                int defaultLargeIconResID = getResources().getIdentifier(defaultLargeIconName, "drawable", getPackageName());
                                                                                                           ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:283: error: cannot find symbol
                int defaultLargeIconResID = getResources().getIdentifier(defaultLargeIconName, "drawable", getPackageName());
                                            ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:286: error: cannot find symbol
                    customLargeIconResID = getResources().getIdentifier(icon+"_large", "drawable", getPackageName());
                                                                                                   ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:286: error: cannot find symbol
                    customLargeIconResID = getResources().getIdentifier(icon+"_large", "drawable", getPackageName());
                                           ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:298: error: cannot find symbol
                    largeIconResID = getApplicationInfo().icon;
                                     ^
  symbol:   method getApplicationInfo()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:300: error: cannot find symbol
                notificationBuilder.setLargeIcon(BitmapFactory.decodeResource(getApplicationContext().getResources(), largeIconResID));
                                                                              ^
  symbol:   method getApplicationContext()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:305: error: cannot find symbol
                int defaultColor = getResources().getColor(getResources().getIdentifier("accent", "color", getPackageName()), null);
                                                                                                           ^
  symbol:   method getPackageName()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:305: error: cannot find symbol
                int defaultColor = getResources().getColor(getResources().getIdentifier("accent", "color", getPackageName()), null);
                                                           ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:305: error: cannot find symbol
                int defaultColor = getResources().getColor(getResources().getIdentifier("accent", "color", getPackageName()), null);
                                   ^
  symbol:   method getResources()
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:336: error: cannot find symbol
            NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
                                                                            ^
  symbol:   method getSystemService(String)
  location: class FirebasePluginMessagingService
C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\firebase\FirebasePluginMessagingService.java:341: error: cannot find symbol
        FirebasePlugin.sendMessage(bundle, this.getApplicationContext());
                                               ^
  symbol: method getApplicationContext()
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\Simon\Development\core\mobile-app\platforms\android\app\src\main\java\org\apache\cordova\file\AssetFilesystem.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
21 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at https://help.gradle.org

BUILD FAILED in 53s
[ERROR] An error occurred while running subprocess cordova.

        cordova.cmd build android --release --buildConfig C:\Users\Simon\Development\cor... exited with exit code 1.

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




android build issue support

κ°€μž₯ μœ μš©ν•œ λŒ“κΈ€

졜근 Cordova λ²„μ „μ—μ„œλŠ” 이제 package.json μ•„λ‹Œ config.xml package.json μ—μ„œλ§Œ ν”ŒλŸ¬κ·ΈμΈμ„ μ •μ˜ν•΄μ•Ό ν•©λ‹ˆλ‹€.

λͺ¨λ“  5 λŒ“κΈ€

ν”ŒλŸ¬κ·ΈμΈμ΄ μ œλŒ€λ‘œ μ„€μΉ˜λ˜μ§€ μ•Šμ•˜κ±°λ‚˜ ν”„λ‘œμ νŠΈμ˜ λ‹€λ₯Έ ν”ŒλŸ¬κ·ΈμΈκ³Ό μΆ©λŒν•˜λŠ” 것 κ°™μŠ΅λ‹ˆλ‹€.

예제 ν”„λ‘œμ νŠΈ λ₯Ό λΉŒλ“œν•˜μ—¬ λΉŒλ“œ ν™˜κ²½μ„ ν™•μΈν•˜κ³  ν”ŒλŸ¬κ·ΈμΈ 좩돌과 같은 ν”„λ‘œμ νŠΈ 고유의 κ°€λŠ₯ν•œ 원인을 λ°°μ œν•˜μ‹­μ‹œμ˜€.

예제 ν”„λ‘œμ νŠΈλŠ” μ˜ˆμƒλŒ€λ‘œ μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€.
예제 ν”„λ‘œμ νŠΈμ— λͺ¨λ“  ν”ŒλŸ¬κ·ΈμΈμ„ μΆ”κ°€ν–ˆλŠ”λ° λΉŒλ“œκ°€ μ—¬μ „νžˆ μž‘λ™ν•©λ‹ˆλ‹€.

λ‚΄ ν”„λ‘œλ•μ…˜ 앱에 λͺ¨λ“  것을 κΉ¨λ—ν•˜κ²Œ μ„€μΉ˜ν–ˆμ§€λ§Œ 운이 μ—†μ—ˆμŠ΅λ‹ˆλ‹€. λΉŒλ“œ 였λ₯˜κ°€ 남아 μžˆμŠ΅λ‹ˆλ‹€.
#326κ³Ό μœ μ‚¬ν•œ Androidμ—μ„œ thorugh cli/ionic을 λΉŒλ“œν•˜λŠ” 데 μ•Œλ €μ§„ 였λ₯˜κ°€ μžˆμŠ΅λ‹ˆκΉŒ?

#326κ³Ό μœ μ‚¬ν•œ Androidμ—μ„œ thorugh cli/ionic을 λΉŒλ“œν•˜λŠ” 데 μ•Œλ €μ§„ 였λ₯˜κ°€ μžˆμŠ΅λ‹ˆκΉŒ?

μ•„λ‹ˆμš”, iOSμ—λ§Œ ν•΄λ‹Ήλ©λ‹ˆλ‹€.

λΉŒλ“œκ°€ λ™μΌν•œ ν”ŒλŸ¬κ·ΈμΈμ„ μ‚¬μš©ν•˜λŠ” 예제 ν”„λ‘œμ νŠΈμ—μ„œ μž‘λ™ν•˜λŠ” 경우 ν”„λ‘œμ νŠΈμ— νŠΉμ •ν•œ λ¬Έμ œκ°€ μžˆμŒμ„ μ‹œμ‚¬ν•©λ‹ˆλ‹€. platforms/ , node_modules/ 및 plugins/ λ₯Ό μ§€μš°κ³  ν”„λ‘œμ νŠΈλ₯Ό μ²˜μŒλΆ€ν„° λ‹€μ‹œ λΉŒλ“œν•΄μ•Ό ν•©λ‹ˆλ‹€.

그것은 λ„μ›€μ΄λ˜μ§€ μ•Šμ•˜μ§€λ§Œ 문제λ₯Ό λ°œκ²¬ν–ˆμŠ΅λ‹ˆλ‹€.

config.xml μ •μ˜λœ <plugin name="cordova-plugin-firebasex" spec="~6.1.0" /> λ‹€μŒμ΄ μžˆλŠ” κ²ƒμœΌλ‘œ λ‚˜νƒ€λ‚¬μŠ΅λ‹ˆλ‹€.

κ·Έ 쀄을 μ œκ±°ν•˜κ³  λͺ¨λ“  것을 λ‹€μ‹œ λΉŒλ“œν•˜λ©΄ (거의) μž‘λ™ν–ˆμŠ΅λ‹ˆλ‹€. λ‚˜λŠ” 64k μ œν•œμ— λΆ€λ”ͺμ³€μ§€λ§Œ cordova-plugin-enable-multidex μ„€μΉ˜ ν›„ λͺ¨λ“  것이 이제 μž‘λ™ν•©λ‹ˆλ‹€!

λ‚˜λŠ” μ–΄λ–€ ν”ŒλŸ¬κ·ΈμΈ μ •μ˜ μ•ˆ μΆ”μΈ‘ config.xml 더 이상 λ§Œμ— μ €μž₯ package.json . μ•„λ‹ˆλ©΄ λ‚˜μœ μŠ΅κ΄€μž…λ‹ˆκΉŒ?

졜근 Cordova λ²„μ „μ—μ„œλŠ” 이제 package.json μ•„λ‹Œ config.xml package.json μ—μ„œλ§Œ ν”ŒλŸ¬κ·ΈμΈμ„ μ •μ˜ν•΄μ•Ό ν•©λ‹ˆλ‹€.

이 νŽ˜μ΄μ§€κ°€ 도움이 λ˜μ—ˆλ‚˜μš”?
0 / 5 - 0 λ“±κΈ‰