Comments (7)
Hi @vitorreis thanks for reporting - we're aiming to have a solution ready within a day or two
from braze-react-native-sdk.
Hi @shaoliangzhong, thanks for the clear instructions - we were able to repro. The issue here is that our RN android module build.gradle
specifies a very old version (0.19.+
) for its react native dependency. See https://github.com/Appboy/appboy-react-sdk/blob/master/android/build.gradle#L17 for the dependency declaration. The older version of react native built into our module's test APK
is conflicting with the more modern version of RN included in the app project.
This doesn't occur when running assembleDebug
because assembleDebug
pulls in our module's output aar
, which don't contain dependencies.
To confirm this on your end, you can run ./gradlew :react-native-appboy-sdk:dependencies
(a gradle command to list dependencies for our module) and check the version of com.facebook.react:react-native
being pulled in for debug configurations, e.g. _debugAndroidTestCompile
.
If you edit the react native dependency in our module to to compile 'com.facebook.react:react-native:+'
and clear the build folder, the test APK will be compiled with a modern version of RN and everything will compile successfully.
We'll also make this change in our next release.
from braze-react-native-sdk.
Hi @vitorreis, when you ran react-native run-android
, did you specify an Android build variant using --variant=<ProductFlavour><BuildType>
?
We followed the repro steps provided to create an appboyBug
repro app and were able to get it to run successfully using react-native run-android --variant=devDebug
Note that once you add a flavor, there's no longer a build variant called debug
, which is what react-native run-android
tries to build by default.
from braze-react-native-sdk.
Hello @Bucimis thanks for having a look on this so quickly.
While double checking here I can confirm that this error only happens if you omit the --variant=devDebug
flag.
Closing this
from braze-react-native-sdk.
Hi, I also see this error when building my project for e2e tests. Passing assembleAndroidTest
to gradlew
will cause the build to fail.
I can also reproduce this in the appboy demo project. Running ./gradlew assembleDebug
from the android
directory will succeed, but running ./gradlew assembleAndroidTest
will fail with the above error.
from braze-react-native-sdk.
Hey @shaoliangzhong,
We weren't able to reproduce build failure running ./gradlew assembleAndroidTest
after naively updating to 0.57 and running that command on AppboyProject. Did you make any other modifications to AppboyProject prior to reproducing the issue (e.g. adding a new flavor)?
If you could send us a zipped up sample project that reproduces the issue, that may be the fastest way for us to get on the same page.
from braze-react-native-sdk.
Hi @Bucimis , thanks for the timely reply. I didn't update to 0.57, I simply did the following:
git clone https://github.com/Appboy/appboy-react-sdk.git
cd appboy-react-sdk/AppboyProject
npm install
cd android
./gradlew assembleDebug
(succeeded)./gradlew assembleAndroidTest
(failed)
UPDATE:
The error was actually different:
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat;
I only saw the same error as described in this issue when I was building a testing app of my own project.
from braze-react-native-sdk.
Related Issues (20)
- [Feature]: Background push handler for silent push notifications HOT 2
- [Bug]: iOS 13 crashes after receiving In-App Message HOT 6
- [Feature]: Update Braze for React Native 0.73 Support HOT 12
- [Bug]: Redefinition of 'NativeBrazeReactModuleSpecJSI' on new arch HOT 2
- [Bug]: Jest issue HOT 4
- [Bug]: 1 duplicate symbol for architecture arm64 HOT 2
- [Bug]: Could not connect to the server Braze HOT 2
- [Bug]: React Native defaulting In App Message trigger to 1s HOT 2
- [Bug]: unable to build using new architecture HOT 3
- [Bug]: 'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead. HOT 3
- [Feature]: New architecture and bridgeless support HOT 4
- [Bug]: NoClassDefFoundError com.braze.support.ReflectionUtils$g HOT 2
- [Bug]: BrazeReactBridge.setCustomUserAttributeObject NullPointerException HOT 3
- [Bug]: Build error while upgrading to 0.9.x HOT 2
- [Feature]: Add a method to read user's push notification subscription type HOT 4
- [Bug]: In-App Notification Timing Issues in React Native Expo App HOT 1
- [Bug]: Sending push notification to wrong user HOT 7
- [Bug]: Braze Authentication Error when app is on the background HOT 1
- [Bug]: launchContentCards feed does not dismiss on deep link HOT 2
- [Bug]: Custom attributes only reflecting 15 seconds later HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from braze-react-native-sdk.