justdice / react-native-advertising-id Goto Github PK
View Code? Open in Web Editor NEWReact Native bridge for fetching advertising info on iOS and Android
License: MIT License
React Native bridge for fetching advertising info on iOS and Android
License: MIT License
react-native version latest 0.60.5 version I got this issue
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
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
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.
Don't work with ExpoKit...
componentWillMount () {
RNAdvertisingId.getAdvertisingId()
}
The podspec needs to be moved out of ios
folder, and maybe some more changes need to be done
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
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?
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
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.
Thank you for your demo apps. It helped resolve my issues on Android because your Android demo app worked.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.