Code Monkey home page Code Monkey logo

react-native-advertising-id's People

Contributors

akread avatar florianapplike avatar florianbergmann avatar santiph avatar yyohanes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

react-native-advertising-id's Issues

Need Help with iOS demo app

Hi again. I have been trying to get this your demo code to work on Android and iOS devices. The Android demo worked, but I cannot make progress with the iOS demo app. I have not used XCode in a while so I may be missing something.

I am using OS X 10.14.6
XCode 11.3.1
Node 11
react-native 4.4.0

Errors shown in XCode:
/Users/klemm/Sites/react_native/react-native-advertising-id/demo/node_modules/react-native-advertising-id/ios/RNAdvertisingId-Bridging-Header.h:1:9: 'React/RCTBridgeModule.h' file not found

failed to emit precompiled header '/Users/klemm/Library/Developer/Xcode/DerivedData/demo-fdvybqppbmpffsfydatjyizmizdk/Build/Intermediates.noindex/PrecompiledHeaders/RNAdvertisingId-Bridging-Header-swift_28Y52FXFNEZV-clang_KLU4EDN5EN1U.pch' for bridging header '/Users/klemm/Sites/react_native/react-native-advertising-id/demo/node_modules/react-native-advertising-id/ios/RNAdvertisingId-Bridging-Header.h'

It is not clear to me if I need to do something with the pod file.
I am not seeing any files in XCode as red.
Any ideas what I am missing?

Thanks

Screen Shot 2020-03-27 at 6 37 45 PM

Build Failure( 'com.google.android.gms:play-services-measurement-base' has different version for the compile (16.0.3) and runtime (16.3.0))

Need help, I got error like this, how to solve this?

I use package:
"react-native": "0.57.5",
"react-native-firebase": "5.2.5",
......

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:preDevDebugBuild'.

Android dependency 'com.google.android.gms:play-services-measurement-base' has different version for the compile (16.0.3) and runtime (16.3.0) classpath. You should manually set the same version via DependencyResolution

  • 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 2s
38 actionable tasks: 38 executed

Doesn't work with iOS

Package: 1.0.11
RN: 0.61.5

When I use automatic: react-native link react-native-advertising-id and pod install it has errors that swift version is not specified in podspec.

When I follow manual instructions I've got these errors:
/testapp/node_modules/react-native-advertising-id/ios/RNAdvertisingId-Bridging-Header.h:1:9: 'React/RCTBridgeModule.h' file not found.

I've googled this error and tried to disable Parallelized build. It didn't help.

Quick help is very appreciated and can be financially rewarded. Automatic link is the best option.

@types missing, problems using lib with TS

After installation always have an error

TS7016: Could not find a declaration file for module 'react-native-advertising-id'. 'E:/Projects/application/node_modules/react-native-advertising-id/index.js' implicitly has an 'any' type.   Try npm install @types/react-native-advertising-id if it exists or add a new declaration (.d.ts) file containing declare module 'react-native-advertising-id';

Already tried creating new externals.d.ts with module declaration, some configurations in tscofing. Nothing helped.

Any suggestions?

RN: 0.59.5 with Redux and TS

Build Failure - RNGaidPackage.java:26: error

Hey mates, getting the following error when trying to react-native run-android;
..\node_modules\react-native-gaid\android\src\main\java\com\mobvantage\react\gaid\RNGaidPackage.java:26: error: method does not override or implement a method from a supertype
@OverRide
^
1 error

Pretty new to React Native, any ideas on how to go about fixing this error?

Could not resolve all artifacts for configuration ':react-native-advertising-id:classpath'.

I installed the package and link it to the project but when i want to run-android, build got failed with the error below.

react-native 0.60.5
gradle 5.4.1

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':react-native-advertising-id'.
> Could not resolve all artifacts for configuration ':react-native-advertising-id:classpath'.
   > Could not find gradle.jar (com.android.tools.build:gradle:3.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/3.3.1/gradle-3.3.1.jar
   > Could not find builder.jar (com.android.tools.build:builder:3.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/builder/3.3.1/builder-3.3.1.jar
   > Could not find tracker.jar (com.android.tools.analytics-library:tracker:26.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/tracker/26.3.1/tracker-26.3.1.jar
   > Could not find shared.jar (com.android.tools.analytics-library:shared:26.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/shared/26.3.1/shared-26.3.1.jar
   > Could not find crash.jar (com.android.tools.analytics-library:crash:26.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/crash/26.3.1/crash-26.3.1.jar
   > Could not find lint-gradle-api.jar (com.android.tools.lint:lint-gradle-api:26.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/lint/lint-gradle-api/26.3.1/lint-gradle-api-26.3.1.jar
   > Could not find gradle-api.jar (com.android.tools.build:gradle-api:3.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle-api/3.3.1/gradle-api-3.3.1.jar
   > Could not find databinding-compiler-common.jar (androidx.databinding:databinding-compiler-common:3.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/androidx/databinding/databinding-compiler-common/3.3.1/databinding-compiler-common-3.3.1.jar
   > Could not find manifest-merger.jar (com.android.tools.build:manifest-merger:26.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/manifest-merger/26.3.1/manifest-merger-26.3.1.jar
   > Could not find sdk-common.jar (com.android.tools:sdk-common:26.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/sdk-common/26.3.1/sdk-common-26.3.1.jar
   > Could not find builder-test-api.jar (com.android.tools.build:builder-test-api:3.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/builder-test-api/3.3.1/builder-test-api-3.3.1.jar
   > Could not find ddmlib.jar (com.android.tools.ddms:ddmlib:26.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/ddms/ddmlib/26.3.1/ddmlib-26.3.1.jar
   > Could not find sdklib.jar (com.android.tools:sdklib:26.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/sdklib/26.3.1/sdklib-26.3.1.jar
   > Could not find layoutlib-api.jar (com.android.tools.layoutlib:layoutlib-api:26.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/layoutlib/layoutlib-api/26.3.1/layoutlib-api-26.3.1.jar
   > Could not find dvlib.jar (com.android.tools:dvlib:26.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/dvlib/26.3.1/dvlib-26.3.1.jar
   > Could not find repository.jar (com.android.tools:repository:26.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/repository/26.3.1/repository-26.3.1.jar
   > Could not find common.jar (com.android.tools:common:26.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/common/26.3.1/common-26.3.1.jar
   > Could not find jetifier-processor.jar (com.android.tools.build.jetifier:jetifier-processor:1.0.0-beta02).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/jetifier/jetifier-processor/1.0.0-beta02/jetifier-processor-1.0.0-beta02.jar
   > Could not find bundletool.jar (com.android.tools.build:bundletool:0.6.0).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/bundletool/0.6.0/bundletool-0.6.0.jar
   > Could not find jetifier-core.jar (com.android.tools.build.jetifier:jetifier-core:1.0.0-beta02).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/jetifier/jetifier-core/1.0.0-beta02/jetifier-core-1.0.0-beta02.jar
   > Could not find builder-model.jar (com.android.tools.build:builder-model:3.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/builder-model/3.3.1/builder-model-3.3.1.jar
   > Could not find protos.jar (com.android.tools.analytics-library:protos:26.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/analytics-library/protos/26.3.1/protos-26.3.1.jar
   > Could not find apkzlib.jar (com.android.tools.build:apkzlib:3.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/apkzlib/3.3.1/apkzlib-3.3.1.jar
   > Could not find apksig.jar (com.android.tools.build:apksig:3.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/build/apksig/3.3.1/apksig-3.3.1.jar
   > Could not find annotations.jar (com.android.tools:annotations:26.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/tools/annotations/26.3.1/annotations-26.3.1.jar
   > Could not find databinding-common.jar (androidx.databinding:databinding-common:3.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/androidx/databinding/databinding-common/3.3.1/databinding-common-3.3.1.jar
   > Could not find baseLibrary.jar (com.android.databinding:baseLibrary:3.3.1).
     Searched in the following locations:
         https://dl.google.com/dl/android/maven2/com/android/databinding/baseLibrary/3.3.1/baseLibrary-3.3.1.jar

* 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 3s

Merge submitted PRs to avoid mistakes in ReadMe

Hi folks. Thanks for creating this module. I wasted a lot of time getting this to work on Android because of mistakes in the ReadMe that have been submitted via Pull Requests. I assume others are experiencing such issues as well.

#15 , #16 , #17

Thank you for your demo apps. It helped resolve my issues on Android because your Android demo app worked.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.