μ€λͺ
:
3.4.0μμ react-native-onesignal
3.6.3μ μ
λ°μ΄νΈνκ³ μ§μΉ¨μ λ°λμ§λ§ react-native run-android
μ€ννλ©΄ λ€μ μ€λ₯μ ν¨κ» μ€ν¨ν©λλ€.
FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependencies of task ':react-native-onesignal:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':react-native-onesignal:debugCompileClasspath'.
> Could not find com.google.android.gms:play-services-ads-identifier:12.0.1.
Required by:
project :react-native-onesignal > com.onesignal:OneSignal:3.12.5
νκ²½
κΈ°ν:
λΉμ·ν λ¬Έμ κ° μμ΅λλ€. https://github.com/OneSignal/react-native-onesignal/issues/938 νμ§λ§ λμμ΄ λμ§ μμ΅λλ€.
@HristoEftimov μΌλ°μ μΌλ‘ μ΄μ κ°μ λ¬Έμ λ₯Ό ν΄κ²°νλ―λ‘ OneSignal Gradle νλ¬κ·ΈμΈμ μ¬λ°λ₯΄κ² μΆκ°νλμ§ λ€μ νμΈνμμμ€.
https://documentation.onesignal.com/docs/react-native-sdk-setup#section -adding-the-gradle-plugin
κ·Έλ μ§ μμ κ²½μ° λ€μμ μ€ννμ¬ νΉμ λ²μ μ μ νν κ²°κ³Όλ₯Ό νμΈν μ μμ΅λλ€.
./gradlew app:dependencies --info
μμ λ°©λ²μ΄ λμμ΄ λμ§ μμΌλ©΄ λ¬Έμ λ λ€λ₯Έ νλ¬κ·ΈμΈμ΄ μ΄μ λ²μ μ μ ννμ κ°λ₯μ±μ΄ ν½λλ€. λν νλ‘μ νΈ λλ node_modulesμ λͺ¨λ μμΉμμ resolutionStrategy
λ₯Ό νμΈνμμμ€. μ΄λ μ΄μ λ²μ μ κ°μ ν μ μκΈ° λλ¬Έμ
λλ€.
@jkasten2 λ΅λ³ μ λ§ κ°μ¬ν©λλ€. ./gradlew app:dependencies --info
λ μ΄ 12.0.1 λ²μ μ΄ νμν μ’
μμ±μ μ°Ύλ λ° λ§μ λμμ΄ λμμ΅λλ€. π
λλ μΌλ°μ μΌλ‘μ΄ λͺ λ Ήμ μ¬μ©νμ¬ gradleμ λ¬Έμ λ₯Ό νμΈν©λλ€.
./gradlew test
κ°μ₯ μ μ©ν λκΈ
@HristoEftimov μΌλ°μ μΌλ‘ μ΄μ κ°μ λ¬Έμ λ₯Ό ν΄κ²°νλ―λ‘ OneSignal Gradle νλ¬κ·ΈμΈμ μ¬λ°λ₯΄κ² μΆκ°νλμ§ λ€μ νμΈνμμμ€.
https://documentation.onesignal.com/docs/react-native-sdk-setup#section -adding-the-gradle-plugin
κ·Έλ μ§ μμ κ²½μ° λ€μμ μ€ννμ¬ νΉμ λ²μ μ μ νν κ²°κ³Όλ₯Ό νμΈν μ μμ΅λλ€.
./gradlew app:dependencies --info
μμ λ°©λ²μ΄ λμμ΄ λμ§ μμΌλ©΄ λ¬Έμ λ λ€λ₯Έ νλ¬κ·ΈμΈμ΄ μ΄μ λ²μ μ μ ννμ κ°λ₯μ±μ΄ ν½λλ€. λν νλ‘μ νΈ λλ node_modulesμ λͺ¨λ μμΉμμ
resolutionStrategy
λ₯Ό νμΈνμμμ€. μ΄λ μ΄μ λ²μ μ κ°μ ν μ μκΈ° λλ¬Έμ λλ€.