react-native-community / rnnewarchitectureapp Goto Github PK
View Code? Open in Web Editor NEWA collection of sample React Native Apps that will show you how to use the New Architecture (Fabric & TurboModules) step-by-step.
License: MIT License
A collection of sample React Native Apps that will show you how to use the New Architecture (Fabric & TurboModules) step-by-step.
License: MIT License
CMake Error at lib/InternalBytecode/CMakeLists.txt:23 (include):
include could not find load file:
E:/workspace_rn/example/RNNewArchitectureApp-run-from-0.67-to-0.70/AwesomeApp/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes/ImportHermesc.cmake
How to solve this compilation problem?
I am trying to create a Fabric
component. I have got it working for the most part. The only issue I am facing is I am not able to get click listener to work for a fabric
component.
I created a spec file
import type {HostComponent, ViewProps} from 'react-native';
import type {DirectEventHandler} from 'react-native/Libraries/Types/CodegenTypes';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
type Event = Readonly<{
value: string;
}>;
interface NativeProps extends ViewProps {
text: string;
onClickHandler?: DirectEventHandler<Event>; ////Event name should start with on
}
export default codegenNativeComponent<NativeProps>(
'MyButtonView',
) as HostComponent<NativeProps>;
For android
my fabric
component looks like as follows
public class MyButtonView extends androidx.appcompat.widget.AppCompatButton {
public MyButtonView(Context context) {
super(context);
configureViews();
}
private void configureViews(){
setBackgroundColor(Color.YELLOW);
setOnClickListener(view -> {
onReceiveNativeEvent();
});
}
public void onReceiveNativeEvent() {
WritableMap event = Arguments.createMap();
event.putString("message", "MyMessage");
ReactContext reactContext = (ReactContext)getContext();
reactContext.getJSModule(RCTModernEventEmitter.class)
.receiveEvent(getId(),getId(),"topChange",true,0,event,1);
}
}
Not sure what to pass targetTag
, canCoalesceEvent
, customCoalesceKey
and category
in receiveEvent
For android
the app crashes and the reason being onReceiveNativeEvent()
is not setup properly, if I remove onReceiveNativeEvent()
it works fine without the click listener
In ViewManager
I did add following code as well
public Map getExportedCustomBubblingEventTypeConstants() {
return MapBuilder.builder().put(
"topChange",
MapBuilder.of(
"phasedRegistrationNames",
MapBuilder.of("bubbled", "onClickHandler")
)
).build();
}
I am following https://reactnative.dev/docs/native-components-android but it was for the old architecture and I think is not applicable for fabric components
Same for iOS https://reactnative.dev/docs/native-components-ios, the doc is not very helpful for the new architecture
For iOS, I created the header and objective-c++ file
Typically if we want to add property we do this
RCT_EXPORT_VIEW_PROPERTY(text, NSString)
Not sure how to do it for event handler
Complete source code is here https://github.com/PritishSawant/ReactNativeFabricEventListenerExample
Following are the steps which I followed to create a Fabric
module in my android app. I am using React native v0.69
Enabled hermes
and newArch
project.ext.react = [
enableHermes: true, // clean and rebuild if changing
]
newArchEnabled=true
In MainApplication.java
I added the following code
@Nullable
@Override
protected JSIModulePackage getJSIModulePackage() {
return (reactApplicationContext, jsContext) -> {
final List<JSIModuleSpec> specs = new ArrayList<>();
specs.add(new JSIModuleSpec() {
@Override
public JSIModuleType getJSIModuleType() {
return JSIModuleType.UIManager;
}
@Override
public JSIModuleProvider<UIManager> getJSIModuleProvider() {
final ComponentFactory componentFactory = new ComponentFactory();
CoreComponentsRegistry.register(componentFactory);
MainComponentsRegistry.register(componentFactory);
final ReactInstanceManager reactInstanceManager = getReactInstanceManager();
ViewManagerRegistry viewManagerRegistry =
new ViewManagerRegistry(
reactInstanceManager.getOrCreateViewManagers(
reactApplicationContext));
return new FabricJSIModuleProvider(
reactApplicationContext,
componentFactory,
ReactNativeConfig.DEFAULT_CONFIG,
viewManagerRegistry);
}
});
return specs;
};
}
@Override
protected List<ReactPackage> getPackages() {
@SuppressWarnings("UnnecessaryLocalVariable")
List<ReactPackage> packages = new PackageList(this).getPackages();
// Packages that cannot be autolinked yet can be added manually here, for example:
// packages.add(new MyReactNativePackage());
packages.add(new ReactPackage() {
@NonNull
@Override
public List<NativeModule> createNativeModules(@NonNull ReactApplicationContext reactContext) {
return Collections.emptyList();
}
@Override
public List<ViewManager> createViewManagers(ReactApplicationContext reactContext) {
List<ViewManager> viewManagers = new ArrayList<>();
viewManagers.add(new ColoredViewManager(reactContext));
return viewManagers;
}
});
return packages;
}
Created a js
folder in root view of the project and created ColoredViewNativeComponent.js
file
// @flow
import type {ViewProps} from 'react-native/Libraries/Components/View/ViewPropTypes';
import type {HostComponent} from 'react-native';
import {ViewStyle} from 'react-native';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
type NativeProps = $ReadOnly<{|
...ViewProps,
color: string,
|}>;
export default (codegenNativeComponent<NativeProps>(
'ColoredView',
): HostComponent<NativeProps>);
In app/build.gradle
apply plugin: "com.facebook.react"
react {
reactRoot = rootProject.file("../node_modules/react-native/")
codegenDir = rootProject.file("../node_modules/react-native-codegen/")
jsRootDir = rootProject.file("../js/")
libraryName = "coloredview"
codegenJavaPackageName = "com.androidfabric.codegen"
}
Created ColoredView.java
and ColoredViewManager.java
in components folder
public class ColoredView extends View {
public ColoredView(Context context) {
super(context);
}
public ColoredView(Context context, @Nullable AttributeSet attrs) {
super(context, attrs);
}
public ColoredView(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
super(context, attrs, defStyleAttr);
}
}
public class ColoredViewManager extends SimpleViewManager<ColoredView> {
public static final String NAME = "ColoredView";
ReactApplicationContext mCallerContext;
public ColoredViewManager(ReactApplicationContext reactContext) {
mCallerContext = reactContext;
}
@Override
public String getName() {
return NAME;
}
@Override
public ColoredView createViewInstance(ThemedReactContext context) {
return new ColoredView(context);
}
@ReactProp(name = "color")
public void setColor(ColoredView view, String color) {
view.setBackgroundColor(Color.parseColor(color));
}
}
In MainComponentsRegistry.cpp
, this is where the issue is, check below error log and screenshot for more details
Added the import
#include <react/renderer/components/coloredview/ComponentDescriptors.h>
std::shared_ptr<ComponentDescriptorProviderRegistry const>
MainComponentsRegistry::sharedProviderRegistry() {
auto providerRegistry = CoreComponentsRegistry::sharedProviderRegistry();
// Custom Fabric Components go here. You can register custom
// components coming from your App or from 3rd party libraries here.
//
providerRegistry->add(concreteComponentDescriptorProvider<
ColoredViewComponentDescriptor>());
return providerRegistry;
}
In App.js
import ColoredView from './js/ColoredViewNativeComponent';
<ColoredView
style={{margin: 20, width: 100, height: 100}}
color={'FFAA77'}
/>
Complete error log
yarn run v1.22.10
$ react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1107 file(s) to forward-jetify. Using 8 workers...
info Starting JS server...
info Launching emulator...
info Successfully launched emulator.
info Installing the app...
> Task :react-native-gradle-plugin:compileKotlin
'compileJava' task (current target is 1.8) and 'compileKotlin' task (current target is 11) jvm target compatibility should be set to the same Java version.
w: /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (10, 37): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (119, 30): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (135, 26): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (157, 32): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (163, 31): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (171, 36): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactPlugin.kt: (100, 48): 'reactRoot: DirectoryProperty' is deprecated. reactRoot was confusing and has been replace with root to point to your root project and reactNativeDir to point to the folder of the react-native NPM package
w: /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (10, 37): 'ApplicationVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (11, 37): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (12, 37): 'LibraryVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (27, 51): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (130, 12): 'ApplicationVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (131, 12): 'LibraryVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (251, 14): 'BaseVariant' is deprecated. Deprecated in Java
> Task :react-native-gradle-plugin:compileJava
> Task :ReactAndroid:downloadBoost UP-TO-DATE
Download https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz
> Task :ReactAndroid:downloadDoubleConversion UP-TO-DATE
Download https://github.com/google/double-conversion/archive/v1.1.6.tar.gz
> Task :ReactAndroid:downloadFmt UP-TO-DATE
Download https://github.com/fmtlib/fmt/archive/6.2.1.tar.gz
> Task :ReactAndroid:downloadFolly UP-TO-DATE
Download https://github.com/facebook/folly/archive/v2021.06.28.00.tar.gz
> Task :ReactAndroid:downloadGlog UP-TO-DATE
Download https://github.com/google/glog/archive/v0.3.5.tar.gz
> Task :ReactAndroid:prepareGlog
Encountered duplicate path "config.h" during copy operation configured with DuplicatesStrategy.WARN
> Task :ReactAndroid:downloadLibevent UP-TO-DATE
Download https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
> Task :ReactAndroid:hermes-engine:downloadHermes UP-TO-DATE
Download https://github.com/facebook/hermes/tarball/hermes-2022-05-20-RNv0.69.0-ee8941b8874132b8f83e4486b63ed5c19fc3f111
> Task :ReactAndroid:hermes-engine:configureBuildForHermes
-- Threads enabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Found ld64 - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Could NOT find Python module yaml
-- CMAKE_HOST_SYSTEM_NAME = Darwin
-- CMAKE_SYSTEM_NAME = Darwin
-- HERMES_APPLE_TARGET_PLATFORM =
-- CMAKE_CROSSCOMPILING = FALSE
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/react-native/ReactAndroid/hermes-engine/build/herme
> Task :ReactAndroid:hermes-engine:buildHermes
[ 0%] Built target LLVHDemangle
[ 3%] Built target zip
[ 6%] Built target dtoa
[ 32%] Built target LLVHSupport
[ 32%] Built target hermesFrontEndDefs
[ 35%] Built target hermesPlatformUnicode
[ 48%] Built target hermesOptimizer
[ 51%] Built target hermesRegex
[ 61%] Built target hermesSupport
[ 61%] Built target hermesInst
[ 61%] Built target hermesADT
[ 61%] Built target hermesFlowParser
[ 64%] Built target hermesAST
[ 67%] Built target hermesAST2JS
[ 70%] Built target hermesParser
[ 74%] Built target hermesSourceMap
[ 83%] Built target hermesFrontend
[ 87%] Built target hermesBackend
[100%] Built target hermesHBCBackend
[100%] Built target hermesCompilerDriver
[100%] Built target hermesc
> Task :app:generateCodegenArtifactsFromSchema
> Task :app:buildNdkBuildDebug[arm64-v8a][androidfabric_appmodules] FAILED
C/C++: /Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/src/main/jni/MainComponentsRegistry.cpp:7:10: fatal error: 'react/renderer/components/coloredview/ComponentDescriptors.h' file not found
C/C++: #include <react/renderer/components/coloredview/ComponentDescriptors.h>
C/C++: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
C/C++: 1 error generated.
C/C++: make: *** [/Users/transformhub/Library/Android/sdk/ndk/21.4.7075529/build/core/build-binary.mk:478: /Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/build/intermediates/cxx/Debug/5z1l1z1m/obj/local/arm64-v8a/objs-debug/androidfabric_appmodules//Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/src/main/jni/MainComponentsRegistry.o] Error 1
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
110 actionable tasks: 48 executed, 62 up-to-date
Note: /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/react-native-gradle-plugin/src/main/java/com/facebook/react/codegen/generator/SchemaJsonParser.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
********************************************************************************
The `reactRoot` property is deprecated and will be removed in
future versions of React Native. The property is currently ignored.
You should instead use either:
- [root] to point to your root project (where the package.json lives)
- [reactNativeDir] to point to the NPM package of react native.
You should be fine by just removing the `reactRoot` line entirely from
your build.gradle file. Otherwise a valid configuration would look like:
react {
root = rootProject.file('..')
reactNativeDir = rootProject.file('../node_modules/react-native')
}
********************************************************************************
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:buildNdkBuildDebug[arm64-v8a][androidfabric_appmodules]'.
> Build command failed.
Error while executing process /Users/transformhub/Library/Android/sdk/ndk/21.4.7075529/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/src/main/jni/Android.mk APP_ABI=arm64-v8a NDK_ALL_ABIS=arm64-v8a NDK_DEBUG=1 NDK_OUT=/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/build/intermediates/cxx/Debug/5z1l1z1m/obj NDK_LIBS_OUT=/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/build/intermediates/cxx/Debug/5z1l1z1m/lib APP_CFLAGS+=-Wall APP_CFLAGS+=-Werror APP_CFLAGS+=-fexceptions APP_CFLAGS+=-frtti APP_CFLAGS+=-DWITH_INSPECTOR=1 APP_CPPFLAGS+=-std=c++17 APP_PLATFORM=android-21 APP_STL=c++_shared NDK_TOOLCHAIN_VERSION=clang GENERATED_SRC_DIR=/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/build/generated/source PROJECT_BUILD_DIR=/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/build REACT_ANDROID_DIR=/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/../node_modules/react-native/ReactAndroid REACT_ANDROID_BUILD_DIR=/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/../node_modules/react-native/ReactAndroid/build NODE_MODULES_DIR=/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/../node_modules androidfabric_appmodules}
[arm64-v8a] Compile++ : androidfabric_appmodules <= OnLoad.cpp
[arm64-v8a] Compile++ : androidfabric_appmodules <= MainComponentsRegistry.cpp
/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/src/main/jni/MainComponentsRegistry.cpp:7:10: fatal error: 'react/renderer/components/coloredview/ComponentDescriptors.h' file not found
#include <react/renderer/components/coloredview/ComponentDescriptors.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [/Users/transformhub/Library/Android/sdk/ndk/21.4.7075529/build/core/build-binary.mk:478: /Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/build/intermediates/cxx/Debug/5z1l1z1m/obj/local/arm64-v8a/objs-debug/androidfabric_appmodules//Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/src/main/jni/MainComponentsRegistry.o] Error 1
* 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 9m 26s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Note: /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/react-native-gradle-plugin/src/main/java/com/facebook/react/codegen/generator/SchemaJsonParser.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
********************************************************************************
The `reactRoot` property is deprecated and will be removed in
future versions of React Native. The property is currently ignored.
You should instead use either:
- [root] to point to your root project (where the package.json lives)
- [reactNativeDir] to point to the NPM package of react native.
You should be fine by just removing the `reactRoot` line entirely from
your build.gradle file. Otherwise a valid configuration would look like:
react {
root = rootProject.file('..')
reactNativeDir = rootProject.file('../node_modules/react-native')
}
********************************************************************************
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:buildNdkBuildDebug[arm64-v8a][androidfabric_appmodules]'.
> Build command failed.
Error while executing process /Users/transformhub/Library/Android/sdk/ndk/21.4.7075529/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/src/main/jni/Android.mk APP_ABI=arm64-v8a NDK_ALL_ABIS=arm64-v8a NDK_DEBUG=1 NDK_OUT=/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/build/intermediates/cxx/Debug/5z1l1z1m/obj NDK_LIBS_OUT=/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/build/intermediates/cxx/Debug/5z1l1z1m/lib APP_CFLAGS+=-Wall APP_CFLAGS+=-Werror APP_CFLAGS+=-fexceptions APP_CFLAGS+=-frtti APP_CFLAGS+=-DWITH_INSPECTOR=1 APP_CPPFLAGS+=-std=c++17 APP_PLATFORM=android-21 APP_STL=c++_shared NDK_TOOLCHAIN_VERSION=clang GENERATED_SRC_DIR=/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/build/generated/source PROJECT_BUILD_DIR=/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/build REACT_ANDROID_DIR=/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/../node_modules/react-native/ReactAndroid REACT_ANDROID_BUILD_DIR=/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/../node_modules/react-native/ReactAndroid/build NODE_MODULES_DIR=/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/../node_modules androidfabric_appmodules}
[arm64-v8a] Compile++ : androidfabric_appmodules <= OnLoad.cpp
[arm64-v8a] Compile++ : androidfabric_appmodules <= MainComponentsRegistry.cpp
/Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/src/main/jni/MainComponentsRegistry.cpp:7:10: fatal error: 'react/renderer/components/coloredview/ComponentDescriptors.h' file not found
#include <react/renderer/components/coloredview/ComponentDescriptors.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make: *** [/Users/transformhub/Library/Android/sdk/ndk/21.4.7075529/build/core/build-binary.mk:478: /Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/build/intermediates/cxx/Debug/5z1l1z1m/obj/local/arm64-v8a/objs-debug/androidfabric_appmodules//Users/transformhub/Desktop/NewArchitecture/androidfabric/android/app/src/main/jni/MainComponentsRegistry.o] Error 1
* 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 9m 26s
at makeError (/Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/execa/index.js:174:9)
at /Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
at async Command.handleAction (/Users/transformhub/Desktop/NewArchitecture/androidfabric/node_modules/@react-native-community/cli/build/index.js:192:9)
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
I do see in my android codeine the appropriate file
but importing it causes error
Complete code can be found here https://github.com/PritishSawant/reactnativefabricv2
I am trying to learn fabric. I got it working for most part.
This is my spec file
import type {HostComponent, ViewProps} from 'react-native';
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
interface NativeProps extends ViewProps {
btnText: string;
}
export default codegenNativeComponent<NativeProps>(
'SensiView',
) as HostComponent<NativeProps>;
It works as expected. I have create a native component on iOS as well. Now I want to assign a clickListener property to my above spec so I did something like below
interface NativeProps extends ViewProps {
btnText: string;
clickHandler: () => void;
}
As soon as I run RCT_NEW_ARCH_ENABLED=1 pod install
I get below error
[!] Invalid `Podfile` file: [!] /usr/local/bin/node ./../node_modules/react-native/scripts/generate-artifacts.js -p /Users/transformhub/Desktop/NewArchitecture/CapgBtn/ios/.. -o /Users/transformhub/Desktop/NewArchitecture/CapgBtn/ios -e true -c
[Codegen] Processing react-native core libraries
[Codegen] Found react-native
[Codegen] >>>>> Searching for codegen-enabled libraries in /Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules
[Codegen] >>>>> Searching for codegen-enabled libraries in the app
[Codegen] Found capgbtn
[Codegen] >>>>> Processing FBReactNativeSpec
[Codegen] Generated schema: /var/folders/vc/8_1km20d5d3gmxf2w5m8w1180000gn/T/FBReactNativeSpecg51W17/schema.json
[Codegen] Generated artifacts: /Users/transformhub/Desktop/NewArchitecture/CapgBtn/ios/build/generated/ios/FBReactNativeSpec
[Codegen] >>>>> Processing rncore
[Codegen] Generated schema: /var/folders/vc/8_1km20d5d3gmxf2w5m8w1180000gn/T/rncoreX6aoUY/schema.json
[Codegen] Generated artifacts: /Users/transformhub/Desktop/NewArchitecture/CapgBtn/ios/build/generated/ios/react/renderer/components/rncore
[Codegen] >>>>> Processing RNSensiViewSpec
[Codegen] Done.
/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/parsers/typescript/components/props.js:505
throw new Error(`Unknown prop type for "${name}": "${type}"`);
^
Error: Unknown prop type for "clickHandler": "TSFunctionType"
at getTypeAnnotation (/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/parsers/typescript/components/props.js:505:13)
at buildPropSchema (/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/parsers/typescript/components/props.js:628:21)
at /Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/parsers/typescript/components/props.js:682:14
at Array.map (<anonymous>)
at getProps (/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/parsers/typescript/components/props.js:681:6)
at buildComponentSchema (/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/parsers/typescript/components/index.js:253:17)
at buildSchema (/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/parsers/typescript/index.js:164:34)
at Object.parseFile (/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/parsers/typescript/index.js:210:10)
at files.reduce.modules (/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema.js:83:30)
at Array.reduce (<anonymous>)
Error: Command failed: node /Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema-cli.js /var/folders/vc/8_1km20d5d3gmxf2w5m8w1180000gn/T/RNSensiViewSpecxw8Vk7/schema.json /Users/transformhub/Desktop/NewArchitecture/CapgBtn/js
/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/parsers/typescript/components/props.js:505
throw new Error(`Unknown prop type for "${name}": "${type}"`);
^
Error: Unknown prop type for "clickHandler": "TSFunctionType"
at getTypeAnnotation (/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/parsers/typescript/components/props.js:505:13)
at buildPropSchema (/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/parsers/typescript/components/props.js:628:21)
at /Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/parsers/typescript/components/props.js:682:14
at Array.map (<anonymous>)
at getProps (/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/parsers/typescript/components/props.js:681:6)
at buildComponentSchema (/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/parsers/typescript/components/index.js:253:17)
at buildSchema (/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/parsers/typescript/index.js:164:34)
at Object.parseFile (/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/parsers/typescript/index.js:210:10)
at files.reduce.modules (/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native-codegen/lib/cli/combine/combine-js-to-schema.js:83:30)
at Array.reduce (<anonymous>)
at checkExecSyncError (node:child_process:826:11)
at execSync (node:child_process:900:15)
at executeNodeScript (/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native/scripts/generate-artifacts.js:81:3)
at /Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native/scripts/generate-artifacts.js:247:7
at Array.forEach (<anonymous>)
at main (/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native/scripts/generate-artifacts.js:221:15)
at Object.<anonymous> (/Users/transformhub/Desktop/NewArchitecture/CapgBtn/node_modules/react-native/scripts/generate-artifacts.js:318:1)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32) {
status: 1,
signal: null,
output: [
null,
<Buffer >,
<Buffer 2f 55 73 65 72 73 2f 74 72 61 6e 73 66 6f 72 6d 68 75 62 2f 44 65 73 6b 74 6f 70 2f 4e 65 77 41 72 63 68 69 74 65 63 74 75 72 65 2f 43 61 70 67 42 74 ... 1533 more bytes>
],
pid: 9170,
stdout: <Buffer >,
stderr: <Buffer 2f 55 73 65 72 73 2f 74 72 61 6e 73 66 6f 72 6d 68 75 62 2f 44 65 73 6b 74 6f 70 2f 4e 65 77 41 72 63 68 69 74 65 63 74 75 72 65 2f 43 61 70 67 42 74 ... 1533 more bytes>
}
.
# from /Users/transformhub/Desktop/NewArchitecture/CapgBtn/ios/Podfile:13
# -------------------------------------------
#
> use_react_native!(
# :path => config[:reactNativePath],
# -------------------------------------------
[!] Do not use "pod install" from inside Rosetta2 (x86_64 emulation on arm64).
[!] - Emulated x86_64 is slower than native arm64
[!] - May result in mixed architectures in rubygems (eg: ffi_c.bundle files may be x86_64 with an arm64 interpreter)
[!] Run "env /usr/bin/arch -arm64 /bin/bash --login" then try again.
[!] [Codegen] warn: using experimental new codegen integration
Super repo!
However, getting veeery high ms on IOS simulator.
Ex: 7922722 ms for 1500 Views, however I can see it is rendering the first elements in 1-2sec ish.
Do you know why this is happening?:)
Hi! I tried to follow all the steps in this repo, because I wanted to try codegen with typescript (which is supported since react-native-codegen 0.0.13). I managed to get the app compiling, but now when it starts it just immediately crashes.
The only difference so far I could spot is the react-native version, on this repo it is pointing to a nightly that I could not find and I had to replace with 0.0.0-20220309-2009-538636440
(instead of 20220309-2009-538636440
).
Here is a repo with all my work so far:
https://github.com/ospfranco/awesome_turbo_module
Any idea what might be wrong?
I am trying to implement TurboModules in android. I keep getting error in the screenshot. Here is my repo https://github.com/PritishSawant/reactnativeandroidturbomodules/tree/android-turbomodules-v3
Hello, I have a question about turbomodules migration on iOS:
I followed the migration guide and in the linked step, the example differs from the rn docs.
specifically, the rn docs use this code:
@interface MyAwesomeModule () <StringGetterSpec>
@end
meaning the MyAwesomeModule
needs to conform to StringGetterSpec
.
The example does not enforce this, and so it effectively evades using codegen. Is that intended?
Thank you
I have a specification for Fabric and TurboModule in my project. It works for separate project. If I try to write both of them in the same project , it generates a bunch of undefined symbols. I think the issue is in package.json file where we write the codegen code
"codegenConfig": {
"libraries": [
{
"name": "CustomLib",
"type": "modules",
"jsSrcsDir": "./js"
},
{
"name": "CustomUILib",
"type": "components",
"jsSrcsDir": "./js"
}
]
}
I tried this but it doesn't seem to work and throws a bunch of undefined symbols error
For example, in https://github.com/react-native-community/RNNewArchitectureApp/blob/run/pure-cxx-module/tm/NativeSampleModule.ts if CustomType
has methods, how to declare them?
I am using branch android-0.68.0-rc3 and modify react-native version to 0.68 stable only. When I try yarn run android
, it return an error log like this.
Task :ReactAndroid:buildNdkBuildDebug
C/C++: make: *** Deleting file 'C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\3o3l4z5f/obj/local/armeabi-v7a/libboost.a'
C/C++: C:/Users/Fengying/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ar: C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\3o3l4z5f/obj/local/armeabi-v7a/objs-debug/boost/C_/Users/Fengying/Desktop/RNNewArchitectureApp-run-android-0.68.0-rc3/node_modules/react-native/ReactAndroid/build/third-party-ndk/boost/asm/arm/ontop_arm_aapcs_elf_gas.o: No such file or directory
C/C++: make: *** [C:/Users/Fengying/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../build/core/build-binary.mk:600: C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\3o3l4z5f/obj/local/armeabi-v7a/libboost.a] Error 1
C/C++: make: *** Waiting for unfinished jobs....
Task :ReactAndroid:buildNdkBuildDebug FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
25 actionable tasks: 15 executed, 10 up-to-date
FAILURE: Build failed with an exception.
Build command failed.
Error while executing process C:\Users\Fengying\AppData\Local\Android\Sdk\ndk\21.4.7075529\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid\src\main\jni\react\jni\Android.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\3o3l4z5f/obj NDK_LIBS_OUT=C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\3o3l4z5f/lib NDK_APPLICATION_MK=C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid/src/main/jni/Application.mk THIRD_PARTY_NDK_DIR=C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid\build\third-party-ndk REACT_COMMON_DIR=C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid/../ReactCommon REACT_GENERATED_SRC_DIR=C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid\build/generated/source REACT_SRC_DIR=C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid/src/main/java/com/facebook/react -j8 butter fabricjni fb folly_futures folly_json glog glog_init hermes-executor-debug hermes-executor-release jscexecutor jsi jsijniprofiler jsinspector logger mapbufferjni react_codegen_rncore react_config react_debug react_nativemodule_core react_render_animations react_render_attributedstring react_render_componentregistry react_render_core react_render_debug react_render_graphics react_render_imagemanager react_render_leakchecker react_render_mapbuffer react_render_mounting react_render_runtimescheduler react_render_scheduler react_render_telemetry react_render_templateprocessor react_render_textlayoutmanager react_render_uimanager react_utils reactnativeblob reactnativejni reactnativeutilsjni reactperfloggerjni rrc_image rrc_root rrc_text rrc_unimplementedview rrc_view runtimeexecutor turbomodulejsijni yoga}
[armeabi-v7a] Prebuilt : libc++_shared.so <= /sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/
[armeabi-v7a] Prebuilt : libfbjni.so <= C:/Users/Fengying/Desktop/RNNewArchitectureApp-run-android-0.68.0-rc3/node_modules/react-native/ReactAndroid/src/main/jni/first-party/fbjni/jni/armeabi-v7a/
[armeabi-v7a] Compile++ thumb: folly_json <= Assume.cpp
[armeabi-v7a] StaticLibrary : libcallinvoker.a
[armeabi-v7a] Compile++ thumb: folly_json <= ToAscii.cpp
[armeabi-v7a] SharedLibrary : libruntimeexecutor.so
[armeabi-v7a] Prebuilt : libhermes.so <= C:/Users/Fengying/Desktop/RNNewArchitectureApp-run-android-0.68.0-rc3/node_modules/react-native/ReactAndroid/build/third-party-ndk/hermes/jni/armeabi-v7a/
make: Nothing to be done for 'runtimeexecutor'.
[armeabi-v7a] Prebuilt : libjsc.so <= C:/Users/Fengying/Desktop/RNNewArchitectureApp-run-android-0.68.0-rc3/node_modules/react-native/ReactAndroid/build/third-party-ndk/jsc/jni/armeabi-v7a/
[armeabi-v7a] Compile++ thumb: folly_json <= ScopeGuard.cpp
[armeabi-v7a] Compile++ thumb: glog <= raw_logging.cc
[armeabi-v7a] Compile++ thumb: glog <= symbolize.cc
[armeabi-v7a] Compile++ thumb: glog <= signalhandler.cc
[armeabi-v7a] Compile++ thumb: glog <= utilities.cc
[armeabi-v7a] Compile++ thumb: glog <= vlog_is_on.cc
[armeabi-v7a] Compile++ thumb: glog <= demangle.cc
[armeabi-v7a] Compile++ thumb: glog <= logging.cc
[armeabi-v7a] Compile++ thumb: fabricjni <= ReactNativeConfigHolder.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= AsyncEventBeatV2.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= ComponentFactory.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= SurfaceHandlerBinding.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= JBackgroundExecutor.cpp
[armeabi-v7a] Compile++ thumb: fb <= assert.cpp
[armeabi-v7a] Compile++ thumb: fb <= log.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= FabricMountingManager.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= EventBeatManager.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= FabricMountItem.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= Binding.cpp
[armeabi-v7a] Compile++ thumb: mapbufferjni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ExceptionWrapper.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ExceptionString.cpp
[armeabi-v7a] Compile++ thumb: mapbufferjni <= ReadableMapBuffer.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= EventEmitterWrapper.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= StateWrapperImpl.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Executor.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= AsyncTrace.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Try.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= SharedMutex.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= AtFork.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Futex.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= MemoryIdler.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= StaticSingletonManager.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ThreadLocalDetail.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= SingletonStackTrace.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= CacheLocality.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Singleton.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Baton.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Fiber.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= GuardPageAllocator.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ExecutorWithPriority.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= InlineExecutor.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Core.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= FiberManager.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Future.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= QueuedImmediateExecutor.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= AsyncTimeout.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= EventBaseBackendBase.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= TimedDrivableExecutor.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ThreadWheelTimekeeper.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= EventBase.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= EventBaseLocal.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= EventHandler.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Exception.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= TimeoutManager.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= HHWheelTimer.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= SysMembarrier.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= WaitOptions.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= AsymmetricMemoryBarrier.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ParkingLot.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= VirtualEventBase.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ThreadId.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= MallctlHelper.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Sleeper.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Request.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Hazptr.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Pid.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ThreadName.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= MallocImpl.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= Unicode.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= Demangle.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= CoreComponentsRegistry.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= Conv.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= FileUtil.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= NetOps.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= CString.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= SpookyHashV2.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= String.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= SafeAssert.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= json_pointer.cpp
[armeabi-v7a] Compile thumb : boost <= ontop_arm_aapcs_elf_gas.S
[armeabi-v7a] Compile++ thumb: folly_json <= Format.cpp
[armeabi-v7a] Compile thumb : boost <= jump_arm_aapcs_elf_gas.S
[armeabi-v7a] Compile++ thumb: folly_json <= UniqueInstance.cpp
[armeabi-v7a] Compile thumb : boost <= make_arm_aapcs_elf_gas.S
[armeabi-v7a] Compile++ thumb: folly_json <= SysUio.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= F14Table.cpp
[armeabi-v7a] Compile++ thumb: double-conversion <= bignum.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= cached-powers.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= bignum-dtoa.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= diy-fp.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= double-conversion.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= fast-dtoa.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= fixed-dtoa.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= strtod.cc
[armeabi-v7a] Compile++ thumb: folly_json <= json.cpp
[armeabi-v7a] Compile thumb : event <= bufferevent_filter.c
[armeabi-v7a] Compile thumb : event <= bufferevent_pair.c
[armeabi-v7a] Compile thumb : event <= bufferevent.c
[armeabi-v7a] Compile++ thumb: folly_json <= dynamic.cpp
[armeabi-v7a] Compile thumb : event <= epoll.c
[armeabi-v7a] Compile thumb : event <= bufferevent_sock.c
[armeabi-v7a] Compile thumb : event <= bufferevent_ratelim.c
[armeabi-v7a] Compile thumb : event <= evmap.c
[armeabi-v7a] Compile thumb : event <= evthread.c
[armeabi-v7a] Compile thumb : event <= buffer.c
[armeabi-v7a] Compile thumb : event <= evthread_pthread.c
[armeabi-v7a] Compile thumb : event <= evutil_rand.c
[armeabi-v7a] Compile thumb : event <= event.c
[armeabi-v7a] Compile thumb : event <= evutil_time.c
[armeabi-v7a] Compile thumb : event <= listener.c
[armeabi-v7a] Compile thumb : event <= log.c
[armeabi-v7a] Compile thumb : event <= poll.c
[armeabi-v7a] Compile thumb : event <= strlcpy.c
[armeabi-v7a] Compile thumb : event <= evutil.c
[armeabi-v7a] Compile thumb : event <= signal.c
[armeabi-v7a] Compile thumb : event <= select.c
[armeabi-v7a] Compile++ thumb: react_debug <= react_native_assert.cpp
[armeabi-v7a] Compile++ thumb: yoga <= yogajni.cpp
[armeabi-v7a] Compile++ thumb: fmt <= format.cc
[armeabi-v7a] Compile++ thumb: react_utils <= RunLoopObserver.cpp
[armeabi-v7a] Compile++ thumb: react_config <= ReactNativeConfig.cpp
[armeabi-v7a] Compile++ thumb: yoga <= common.cpp
[armeabi-v7a] Compile++ thumb: glog_init <= glog_init.cpp
[armeabi-v7a] Compile++ thumb: yoga <= YogaJniException.cpp
[armeabi-v7a] Compile++ thumb: react_render_mapbuffer <= MapBuffer.cpp
[armeabi-v7a] Compile++ thumb: react_render_mapbuffer <= MapBufferBuilder.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGNodePrint.cpp
[armeabi-v7a] Compile++ thumb: yoga <= corefunctions.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGEnums.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGValue.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGStyle.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= log.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= Utils.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGConfig.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= event.cpp
[armeabi-v7a] Compile++ thumb: yoga <= YGJNIVanilla.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGLayout.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= experiments.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGNode.cpp
[armeabi-v7a] Compile++ thumb: jsi <= jsilib-windows.cpp
[armeabi-v7a] Compile++ thumb: jsi <= jsilib-posix.cpp
[armeabi-v7a] Compile++ thumb: react_render_componentregistry <= componentNameByReactViewName.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= Yoga.cpp
[armeabi-v7a] Compile++ thumb: jsi <= jsi.cpp
[armeabi-v7a] Compile++ thumb: react_render_animations <= utils.cpp
[armeabi-v7a] Compile++ thumb: react_render_animations <= LayoutAnimationDriver.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= LayoutMetrics.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ShadowNodeFamilyFragment.cpp
[armeabi-v7a] Compile++ thumb: jsi <= JSIDynamic.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventDispatcher.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawPropsParser.cpp
[armeabi-v7a] Compile++ thumb: react_render_componentregistry <= ComponentDescriptorRegistry.cpp
[armeabi-v7a] Compile++ thumb: react_render_componentregistry <= ComponentDescriptorProviderRegistry.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ShadowNodeTraits.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventTarget.cpp
[armeabi-v7a] Compile++ thumb: react_render_animations <= LayoutAnimationKeyFrameManager.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= Sealable.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= DynamicPropsUtilities.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= UnbatchedEventQueue.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= StateUpdate.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawPropsKeyMap.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawPropsKey.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ShadowNode.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawProps.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ShadowNodeFragment.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ShadowNodeFamily.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= State.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawEvent.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= LayoutConstraints.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= Props.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventBeat.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawValue.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= LayoutableShadowNode.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ComponentDescriptor.cpp
[armeabi-v7a] Compile++ thumb: react_render_debug <= DebugStringConvertibleItem.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventQueueProcessor.cpp
[armeabi-v7a] Compile++ thumb: react_render_graphics <= Color.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventEmitter.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventQueue.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= BatchedEventQueue.cpp
[armeabi-v7a] Compile++ thumb: react_render_debug <= DebugStringConvertible.cpp
[armeabi-v7a] Compile++ thumb: react_render_graphics <= Transform.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= ShadowTreeRevision.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= MountingTransaction.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= Differentiator.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= MountingTransactionMetadata.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= stubs.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= MountingCoordinator.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= ShadowTreeRegistry.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= StubView.cpp
[armeabi-v7a] Compile++ thumb: react_render_telemetry <= TransactionTelemetry.cpp
[armeabi-v7a] Compile++ thumb: react_render_telemetry <= SurfaceTelemetry.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= ShadowViewMutation.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= ShadowView.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= StubViewTree.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= TelemetryController.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= TouchEvent.cpp
[armeabi-v7a] Compile++ thumb: rrc_root <= RootProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_root <= RootShadowNode.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= ShadowTree.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= Touch.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= YogaStylableProps.cpp
[armeabi-v7a] Compile++ thumb: logger <= react_native_log.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= YogaLayoutableShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= AccessibilityProps.cpp
[armeabi-v7a] Compile++ thumb: react_render_uimanager <= bindingUtils.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= ViewEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= ViewShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= TouchEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= ViewProps.cpp
[armeabi-v7a] Compile++ thumb: react_render_runtimescheduler <= RuntimeSchedulerCallInvoker.cpp
[armeabi-v7a] Compile++ thumb: react_render_runtimescheduler <= RuntimeScheduler.cpp
[armeabi-v7a] Compile++ thumb: react_render_uimanager <= SurfaceRegistryBinding.cpp
[armeabi-v7a] Compile++ thumb: react_render_leakchecker <= WeakFamilyRegistry.cpp
[armeabi-v7a] Compile++ thumb: react_render_leakchecker <= LeakChecker.cpp
[armeabi-v7a] Compile++ thumb: react_render_runtimescheduler <= Task.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= SynchronousEventBeat.cpp
[armeabi-v7a] Compile++ thumb: react_render_uimanager <= UIManager.cpp
[armeabi-v7a] Compile++ thumb: react_render_runtimescheduler <= RuntimeSchedulerBinding.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= SchedulerToolbox.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= AsynchronousEventBeat.cpp
[armeabi-v7a] Compile++ thumb: react_render_uimanager <= UIManagerBinding.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= SurfaceHandler.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= SurfaceManager.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JSLogging.cpp
[armeabi-v7a] Compile++ thumb: rrc_unimplementedview <= UnimplementedViewShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_unimplementedview <= UnimplementedViewProps.cpp
[armeabi-v7a] Compile++ thumb: react_render_templateprocessor <= UITemplateProcessor.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JSLoader.cpp
[armeabi-v7a] Compile++ thumb: rrc_unimplementedview <= UnimplementedViewComponentDescriptor.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= Scheduler.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JReactMarker.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JInspector.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= MethodInvoker.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= NativeArray.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JMessageQueueThread.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= WritableNativeArray.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= NativeTime.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JavaModuleWrapper.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JRuntimeScheduler.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= WritableNativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JRuntimeExecutor.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= NativeCommon.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JReactSoftExceptionLogger.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JReactCxxErrorHandler.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JniJSModulesUnbundle.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= CxxModuleWrapper.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= ReadableNativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= ReadableNativeArray.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= ModuleRegistryBuilder.cpp
[armeabi-v7a] Compile++ thumb: reactperflogger <= BridgeNativeModulePerfLogger.cpp
[armeabi-v7a] Compile++ thumb: reactperfloggerjni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: jsinspector <= InspectorInterfaces.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= ReactMarker.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= NativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= JSBigString.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= JSBundleType.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= ProxyExecutor.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= JSIndexedRAMBundle.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= MethodCall.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= RAMBundleRegistry.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= Instance.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= ModuleRegistry.cpp
[armeabi-v7a] Compile++ thumb: callinvokerholder <= CallInvokerHolder.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= CatalystInstanceImpl.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= JSExecutor.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= NativeToJsBridge.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboModulePerfLogger.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboModuleUtils.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= CxxNativeModule.cpp
[armeabi-v7a] Compile++ thumb: react_codegen_rncore <= ShadowNodes.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboModuleBinding.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboModule.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= LongLivedObject.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JSLogging.cpp
[armeabi-v7a] Compile++ thumb: react_codegen_rncore <= EventEmitters.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= SampleCxxModule.cpp
[armeabi-v7a] Compile++ thumb: react_codegen_rncore <= Props.cpp
[armeabi-v7a] Compile++ thumb: react_codegen_rncore <= rncore-generated.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JSLoader.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboCxxModule.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= WritableNativeArray.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= NativeArray.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JInspector.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JReactMarker.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= MethodInvoker.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= JavaTurboModule.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JMessageQueueThread.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= NativeTime.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JavaModuleWrapper.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JRuntimeScheduler.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= NativeCommon.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JRuntimeExecutor.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= WritableNativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= ModuleRegistryBuilder.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JReactSoftExceptionLogger.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= ReadableNativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= CxxModuleWrapper.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= ReadableNativeArray.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JniJSModulesUnbundle.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JReactCxxErrorHandler.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= NativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= ProxyExecutor.cpp
[armeabi-v7a] Compile++ thumb: turbomodulejsijni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: react_render_attributedstring <= AttributedStringBox.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: react_render_attributedstring <= TextAttributes.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageResponse.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageResponseObserverCoordinator.cpp
[armeabi-v7a] Compile++ thumb: react_render_attributedstring <= ParagraphAttributes.cpp
[armeabi-v7a] Compile++ thumb: turbomodulejsijni <= TurboModuleManager.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageTelemetry.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= CatalystInstanceImpl.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageRequest.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageManager.cpp
[armeabi-v7a] Compile++ thumb: react_render_attributedstring <= AttributedString.cpp
[armeabi-v7a] Compile++ thumb: react_render_textlayoutmanager <= TextMeasureCache.cpp
[armeabi-v7a] Compile++ thumb: rrc_image <= ImageState.cpp
[armeabi-v7a] Compile++ thumb: rrc_image <= ImageEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: rrc_image <= ImageProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_image <= ImageShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= TextShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= BaseTextProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= ParagraphState.cpp
[armeabi-v7a] Compile++ thumb: react_render_textlayoutmanager <= TextLayoutManager.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= ParagraphProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= RawTextShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= TextProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= BaseTextShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= ParagraphShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= RawTextProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_slider <= SliderState.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= ParagraphEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: rrc_slider <= SliderMeasurementsManager.cpp
[armeabi-v7a] Compile++ thumb: rrc_slider <= SliderShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_progressbar <= AndroidProgressBarShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_modal <= ModalHostViewState.cpp
[armeabi-v7a] Compile++ thumb: rrc_switch <= AndroidSwitchShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_switch <= AndroidSwitchMeasurementsManager.cpp
[armeabi-v7a] Compile++ thumb: rrc_progressbar <= AndroidProgressBarMeasurementsManager.cpp
[armeabi-v7a] Compile++ thumb: rrc_modal <= ModalHostViewShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_scrollview <= ScrollViewEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: rrc_scrollview <= ScrollViewState.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-common-debug <= JSITracing.cpp
[armeabi-v7a] Compile++ thumb: rrc_scrollview <= ScrollViewProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_scrollview <= ScrollViewShadowNode.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-common-debug <= HermesExecutorFactory.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-debug <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputState.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= RuntimeAdapter.cpp
[armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputShadowNode.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= CallbackOStream.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= SerialExecutor.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Thread.cpp
[armeabi-v7a] Compile++ thumb: jsireact <= JSINativeModules.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Registration.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= ConnectionDemux.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= InspectorState.cpp
[armeabi-v7a] Compile++ thumb: jsireact <= JSIExecutor.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= RemoteObjectsTable.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-common-release <= JSITracing.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= AutoAttachUtils.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= MessageConverters.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-common-release <= HermesExecutorFactory.cpp
[armeabi-v7a] Compile++ thumb: jscruntime <= JSCRuntime.cpp
[armeabi-v7a] Compile++ thumb: jsijniprofiler <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-release <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= MessageTypes.cpp
[armeabi-v7a] SharedLibrary : libglog.so
[armeabi-v7a] SharedLibrary : libfb.so
[armeabi-v7a] StaticLibrary : libboost.a
[armeabi-v7a] StaticLibrary : libfmt.a
[armeabi-v7a] Compile++ thumb: jscexecutor <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: jsijniprofiler <= HermesSamplingProfiler.cpp
[armeabi-v7a] Compile++ thumb: reactnativeblob <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: reactnativeblob <= BlobCollector.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Inspector.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Connection.cpp
make: *** Deleting file 'C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\3o3l4z5f/obj/local/armeabi-v7a/libboost.a'
C:/Users/Fengying/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../toolchains/llvm/prebuilt/windows-x86_64/bin/arm-linux-androideabi-ar: C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\3o3l4z5f/obj/local/armeabi-v7a/objs-debug/boost/C_/Users/Fengying/Desktop/RNNewArchitectureApp-run-android-0.68.0-rc3/node_modules/react-native/ReactAndroid/build/third-party-ndk/boost/asm/arm/ontop_arm_aapcs_elf_gas.o: No such file or directory
make: *** [C:/Users/Fengying/AppData/Local/Android/Sdk/ndk/21.4.7075529/build//../build/core/build-binary.mk:600: C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\3o3l4z5f/obj/local/armeabi-v7a/libboost.a] Error 1
make: *** Waiting for unfinished jobs....
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.
BUILD FAILED in 4m 54s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
Build command failed.
Error while executing process C:\Users\Fengying\AppData\Local\Android\Sdk\ndk\21.4.7075529\ndk-build.cmd with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid\src\main\jni\react\jni\Android.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 APP_PLATFORM=android-21 NDK_OUT=C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\3o3l4z5f/obj NDK_LIBS_OUT=C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid\build\intermediates\cxx\Debug\3o3l4z5f/lib NDK_APPLICATION_MK=C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid/src/main/jni/Application.mk THIRD_PARTY_NDK_DIR=C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid\build\third-party-ndk REACT_COMMON_DIR=C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid/../ReactCommon REACT_GENERATED_SRC_DIR=C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid\build/generated/source REACT_SRC_DIR=C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\react-native\ReactAndroid/src/main/java/com/facebook/react -j8 butter fabricjni fb folly_futures folly_json glog glog_init hermes-executor-debug hermes-executor-release jscexecutor jsi jsijniprofiler jsinspector logger mapbufferjni react_codegen_rncore react_config react_debug react_nativemodule_core react_render_animations react_render_attributedstring react_render_componentregistry react_render_core react_render_debug react_render_graphics react_render_imagemanager react_render_leakchecker react_render_mapbuffer react_render_mounting react_render_runtimescheduler react_render_scheduler react_render_telemetry react_render_templateprocessor react_render_textlayoutmanager react_render_uimanager react_utils reactnativeblob reactnativejni reactnativeutilsjni reactperfloggerjni rrc_image rrc_root rrc_text rrc_unimplementedview rrc_view runtimeexecutor turbomodulejsijni yoga}
[armeabi-v7a] Prebuilt : libc++_shared.so <= /sources/cxx-stl/llvm-libc++/libs/armeabi-v7a/
[armeabi-v7a] Prebuilt : libfbjni.so <= C:/Users/Fengying/Desktop/RNNewArchitectureApp-run-android-0.68.0-rc3/node_modules/react-native/ReactAndroid/src/main/jni/first-party/fbjni/jni/armeabi-v7a/
[armeabi-v7a] Compile++ thumb: folly_json <= Assume.cpp
[armeabi-v7a] StaticLibrary : libcallinvoker.a
[armeabi-v7a] Compile++ thumb: folly_json <= ToAscii.cpp
[armeabi-v7a] SharedLibrary : libruntimeexecutor.so
[armeabi-v7a] Prebuilt : libhermes.so <= C:/Users/Fengying/Desktop/RNNewArchitectureApp-run-android-0.68.0-rc3/node_modules/react-native/ReactAndroid/build/third-party-ndk/hermes/jni/armeabi-v7a/
make: Nothing to be done for 'runtimeexecutor'.
[armeabi-v7a] Prebuilt : libjsc.so <= C:/Users/Fengying/Desktop/RNNewArchitectureApp-run-android-0.68.0-rc3/node_modules/react-native/ReactAndroid/build/third-party-ndk/jsc/jni/armeabi-v7a/
[armeabi-v7a] Compile++ thumb: folly_json <= ScopeGuard.cpp
[armeabi-v7a] Compile++ thumb: glog <= raw_logging.cc
[armeabi-v7a] Compile++ thumb: glog <= symbolize.cc
[armeabi-v7a] Compile++ thumb: glog <= signalhandler.cc
[armeabi-v7a] Compile++ thumb: glog <= utilities.cc
[armeabi-v7a] Compile++ thumb: glog <= vlog_is_on.cc
[armeabi-v7a] Compile++ thumb: glog <= demangle.cc
[armeabi-v7a] Compile++ thumb: glog <= logging.cc
[armeabi-v7a] Compile++ thumb: fabricjni <= ReactNativeConfigHolder.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= AsyncEventBeatV2.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= ComponentFactory.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= SurfaceHandlerBinding.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= JBackgroundExecutor.cpp
[armeabi-v7a] Compile++ thumb: fb <= assert.cpp
[armeabi-v7a] Compile++ thumb: fb <= log.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= FabricMountingManager.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= EventBeatManager.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= FabricMountItem.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= Binding.cpp
[armeabi-v7a] Compile++ thumb: mapbufferjni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ExceptionWrapper.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ExceptionString.cpp
[armeabi-v7a] Compile++ thumb: mapbufferjni <= ReadableMapBuffer.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= EventEmitterWrapper.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= StateWrapperImpl.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Executor.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= AsyncTrace.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Try.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= SharedMutex.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= AtFork.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Futex.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= MemoryIdler.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= StaticSingletonManager.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ThreadLocalDetail.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= SingletonStackTrace.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= CacheLocality.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Singleton.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Baton.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Fiber.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= GuardPageAllocator.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ExecutorWithPriority.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= InlineExecutor.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Core.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= FiberManager.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Future.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= QueuedImmediateExecutor.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= AsyncTimeout.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= EventBaseBackendBase.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= TimedDrivableExecutor.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ThreadWheelTimekeeper.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= EventBase.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= EventBaseLocal.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= EventHandler.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Exception.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= TimeoutManager.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= HHWheelTimer.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= SysMembarrier.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= WaitOptions.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= AsymmetricMemoryBarrier.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ParkingLot.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= VirtualEventBase.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ThreadId.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= MallctlHelper.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Sleeper.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Request.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Hazptr.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= Pid.cpp
[armeabi-v7a] Compile++ thumb: folly_futures <= ThreadName.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= MallocImpl.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= Unicode.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= Demangle.cpp
[armeabi-v7a] Compile++ thumb: fabricjni <= CoreComponentsRegistry.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= Conv.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= FileUtil.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= NetOps.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= CString.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= SpookyHashV2.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= String.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= SafeAssert.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= json_pointer.cpp
[armeabi-v7a] Compile thumb : boost <= ontop_arm_aapcs_elf_gas.S
[armeabi-v7a] Compile++ thumb: folly_json <= Format.cpp
[armeabi-v7a] Compile thumb : boost <= jump_arm_aapcs_elf_gas.S
[armeabi-v7a] Compile++ thumb: folly_json <= UniqueInstance.cpp
[armeabi-v7a] Compile thumb : boost <= make_arm_aapcs_elf_gas.S
[armeabi-v7a] Compile++ thumb: folly_json <= SysUio.cpp
[armeabi-v7a] Compile++ thumb: folly_json <= F14Table.cpp
[armeabi-v7a] Compile++ thumb: double-conversion <= bignum.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= cached-powers.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= bignum-dtoa.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= diy-fp.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= double-conversion.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= fast-dtoa.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= fixed-dtoa.cc
[armeabi-v7a] Compile++ thumb: double-conversion <= strtod.cc
[armeabi-v7a] Compile++ thumb: folly_json <= json.cpp
[armeabi-v7a] Compile thumb : event <= bufferevent_filter.c
[armeabi-v7a] Compile thumb : event <= bufferevent_pair.c
[armeabi-v7a] Compile thumb : event <= bufferevent.c
[armeabi-v7a] Compile++ thumb: folly_json <= dynamic.cpp
[armeabi-v7a] Compile thumb : event <= epoll.c
[armeabi-v7a] Compile thumb : event <= bufferevent_sock.c
[armeabi-v7a] Compile thumb : event <= bufferevent_ratelim.c
[armeabi-v7a] Compile thumb : event <= evmap.c
[armeabi-v7a] Compile thumb : event <= evthread.c
[armeabi-v7a] Compile thumb : event <= buffer.c
[armeabi-v7a] Compile thumb : event <= evthread_pthread.c
[armeabi-v7a] Compile thumb : event <= evutil_rand.c
[armeabi-v7a] Compile thumb : event <= event.c
[armeabi-v7a] Compile thumb : event <= evutil_time.c
[armeabi-v7a] Compile thumb : event <= listener.c
[armeabi-v7a] Compile thumb : event <= log.c
[armeabi-v7a] Compile thumb : event <= poll.c
[armeabi-v7a] Compile thumb : event <= strlcpy.c
[armeabi-v7a] Compile thumb : event <= evutil.c
[armeabi-v7a] Compile thumb : event <= signal.c
[armeabi-v7a] Compile thumb : event <= select.c
[armeabi-v7a] Compile++ thumb: react_debug <= react_native_assert.cpp
[armeabi-v7a] Compile++ thumb: yoga <= yogajni.cpp
[armeabi-v7a] Compile++ thumb: fmt <= format.cc
[armeabi-v7a] Compile++ thumb: react_utils <= RunLoopObserver.cpp
[armeabi-v7a] Compile++ thumb: react_config <= ReactNativeConfig.cpp
[armeabi-v7a] Compile++ thumb: yoga <= common.cpp
[armeabi-v7a] Compile++ thumb: glog_init <= glog_init.cpp
[armeabi-v7a] Compile++ thumb: yoga <= YogaJniException.cpp
[armeabi-v7a] Compile++ thumb: react_render_mapbuffer <= MapBuffer.cpp
[armeabi-v7a] Compile++ thumb: react_render_mapbuffer <= MapBufferBuilder.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGNodePrint.cpp
[armeabi-v7a] Compile++ thumb: yoga <= corefunctions.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGEnums.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGValue.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGStyle.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= log.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= Utils.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGConfig.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= event.cpp
[armeabi-v7a] Compile++ thumb: yoga <= YGJNIVanilla.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGLayout.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= experiments.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= YGNode.cpp
[armeabi-v7a] Compile++ thumb: jsi <= jsilib-windows.cpp
[armeabi-v7a] Compile++ thumb: jsi <= jsilib-posix.cpp
[armeabi-v7a] Compile++ thumb: react_render_componentregistry <= componentNameByReactViewName.cpp
[armeabi-v7a] Compile++ thumb: yogacore <= Yoga.cpp
[armeabi-v7a] Compile++ thumb: jsi <= jsi.cpp
[armeabi-v7a] Compile++ thumb: react_render_animations <= utils.cpp
[armeabi-v7a] Compile++ thumb: react_render_animations <= LayoutAnimationDriver.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= LayoutMetrics.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ShadowNodeFamilyFragment.cpp
[armeabi-v7a] Compile++ thumb: jsi <= JSIDynamic.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventDispatcher.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawPropsParser.cpp
[armeabi-v7a] Compile++ thumb: react_render_componentregistry <= ComponentDescriptorRegistry.cpp
[armeabi-v7a] Compile++ thumb: react_render_componentregistry <= ComponentDescriptorProviderRegistry.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ShadowNodeTraits.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventTarget.cpp
[armeabi-v7a] Compile++ thumb: react_render_animations <= LayoutAnimationKeyFrameManager.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= Sealable.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= DynamicPropsUtilities.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= UnbatchedEventQueue.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= StateUpdate.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawPropsKeyMap.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawPropsKey.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ShadowNode.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawProps.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ShadowNodeFragment.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ShadowNodeFamily.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= State.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawEvent.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= LayoutConstraints.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= Props.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventBeat.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= RawValue.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= LayoutableShadowNode.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= ComponentDescriptor.cpp
[armeabi-v7a] Compile++ thumb: react_render_debug <= DebugStringConvertibleItem.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventQueueProcessor.cpp
[armeabi-v7a] Compile++ thumb: react_render_graphics <= Color.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventEmitter.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= EventQueue.cpp
[armeabi-v7a] Compile++ thumb: react_render_core <= BatchedEventQueue.cpp
[armeabi-v7a] Compile++ thumb: react_render_debug <= DebugStringConvertible.cpp
[armeabi-v7a] Compile++ thumb: react_render_graphics <= Transform.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= ShadowTreeRevision.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= MountingTransaction.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= Differentiator.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= MountingTransactionMetadata.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= stubs.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= MountingCoordinator.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= ShadowTreeRegistry.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= StubView.cpp
[armeabi-v7a] Compile++ thumb: react_render_telemetry <= TransactionTelemetry.cpp
[armeabi-v7a] Compile++ thumb: react_render_telemetry <= SurfaceTelemetry.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= ShadowViewMutation.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= ShadowView.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= StubViewTree.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= TelemetryController.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= TouchEvent.cpp
[armeabi-v7a] Compile++ thumb: rrc_root <= RootProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_root <= RootShadowNode.cpp
[armeabi-v7a] Compile++ thumb: react_render_mounting <= ShadowTree.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= Touch.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= YogaStylableProps.cpp
[armeabi-v7a] Compile++ thumb: logger <= react_native_log.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= YogaLayoutableShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= AccessibilityProps.cpp
[armeabi-v7a] Compile++ thumb: react_render_uimanager <= bindingUtils.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= ViewEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= ViewShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= TouchEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: rrc_view <= ViewProps.cpp
[armeabi-v7a] Compile++ thumb: react_render_runtimescheduler <= RuntimeSchedulerCallInvoker.cpp
[armeabi-v7a] Compile++ thumb: react_render_runtimescheduler <= RuntimeScheduler.cpp
[armeabi-v7a] Compile++ thumb: react_render_uimanager <= SurfaceRegistryBinding.cpp
[armeabi-v7a] Compile++ thumb: react_render_leakchecker <= WeakFamilyRegistry.cpp
[armeabi-v7a] Compile++ thumb: react_render_leakchecker <= LeakChecker.cpp
[armeabi-v7a] Compile++ thumb: react_render_runtimescheduler <= Task.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= SynchronousEventBeat.cpp
[armeabi-v7a] Compile++ thumb: react_render_uimanager <= UIManager.cpp
[armeabi-v7a] Compile++ thumb: react_render_runtimescheduler <= RuntimeSchedulerBinding.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= SchedulerToolbox.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= AsynchronousEventBeat.cpp
[armeabi-v7a] Compile++ thumb: react_render_uimanager <= UIManagerBinding.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= SurfaceHandler.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= SurfaceManager.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JSLogging.cpp
[armeabi-v7a] Compile++ thumb: rrc_unimplementedview <= UnimplementedViewShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_unimplementedview <= UnimplementedViewProps.cpp
[armeabi-v7a] Compile++ thumb: react_render_templateprocessor <= UITemplateProcessor.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JSLoader.cpp
[armeabi-v7a] Compile++ thumb: rrc_unimplementedview <= UnimplementedViewComponentDescriptor.cpp
[armeabi-v7a] Compile++ thumb: react_render_scheduler <= Scheduler.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JReactMarker.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JInspector.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= MethodInvoker.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= NativeArray.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JMessageQueueThread.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= WritableNativeArray.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= NativeTime.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JavaModuleWrapper.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JRuntimeScheduler.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= WritableNativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JRuntimeExecutor.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= NativeCommon.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JReactSoftExceptionLogger.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JReactCxxErrorHandler.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= JniJSModulesUnbundle.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= CxxModuleWrapper.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= ReadableNativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= ReadableNativeArray.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= ModuleRegistryBuilder.cpp
[armeabi-v7a] Compile++ thumb: reactperflogger <= BridgeNativeModulePerfLogger.cpp
[armeabi-v7a] Compile++ thumb: reactperfloggerjni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: jsinspector <= InspectorInterfaces.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= ReactMarker.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= NativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= JSBigString.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= JSBundleType.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= ProxyExecutor.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= JSIndexedRAMBundle.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= MethodCall.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= RAMBundleRegistry.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= Instance.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= ModuleRegistry.cpp
[armeabi-v7a] Compile++ thumb: callinvokerholder <= CallInvokerHolder.cpp
[armeabi-v7a] Compile++ thumb: reactnativeutilsjni <= CatalystInstanceImpl.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= JSExecutor.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= NativeToJsBridge.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboModulePerfLogger.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboModuleUtils.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= CxxNativeModule.cpp
[armeabi-v7a] Compile++ thumb: react_codegen_rncore <= ShadowNodes.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboModuleBinding.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboModule.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= LongLivedObject.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JSLogging.cpp
[armeabi-v7a] Compile++ thumb: react_codegen_rncore <= EventEmitters.cpp
[armeabi-v7a] Compile++ thumb: reactnative <= SampleCxxModule.cpp
[armeabi-v7a] Compile++ thumb: react_codegen_rncore <= Props.cpp
[armeabi-v7a] Compile++ thumb: react_codegen_rncore <= rncore-generated.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JSLoader.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= TurboCxxModule.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= WritableNativeArray.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= NativeArray.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JInspector.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JReactMarker.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= MethodInvoker.cpp
[armeabi-v7a] Compile++ thumb: react_nativemodule_core <= JavaTurboModule.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JMessageQueueThread.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= NativeTime.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JavaModuleWrapper.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JRuntimeScheduler.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= NativeCommon.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JRuntimeExecutor.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= WritableNativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= ModuleRegistryBuilder.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JReactSoftExceptionLogger.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= ReadableNativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= CxxModuleWrapper.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= ReadableNativeArray.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JniJSModulesUnbundle.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= JReactCxxErrorHandler.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= NativeMap.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= ProxyExecutor.cpp
[armeabi-v7a] Compile++ thumb: turbomodulejsijni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: react_render_attributedstring <= AttributedStringBox.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: react_render_attributedstring <= TextAttributes.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageResponse.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageResponseObserverCoordinator.cpp
[armeabi-v7a] Compile++ thumb: react_render_attributedstring <= ParagraphAttributes.cpp
[armeabi-v7a] Compile++ thumb: turbomodulejsijni <= TurboModuleManager.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageTelemetry.cpp
[armeabi-v7a] Compile++ thumb: reactnativejni <= CatalystInstanceImpl.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageRequest.cpp
[armeabi-v7a] Compile++ thumb: react_render_imagemanager <= ImageManager.cpp
[armeabi-v7a] Compile++ thumb: react_render_attributedstring <= AttributedString.cpp
[armeabi-v7a] Compile++ thumb: react_render_textlayoutmanager <= TextMeasureCache.cpp
[armeabi-v7a] Compile++ thumb: rrc_image <= ImageState.cpp
[armeabi-v7a] Compile++ thumb: rrc_image <= ImageEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: rrc_image <= ImageProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_image <= ImageShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= TextShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= BaseTextProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= ParagraphState.cpp
[armeabi-v7a] Compile++ thumb: react_render_textlayoutmanager <= TextLayoutManager.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= ParagraphProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= RawTextShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= TextProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= BaseTextShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= ParagraphShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= RawTextProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_slider <= SliderState.cpp
[armeabi-v7a] Compile++ thumb: rrc_text <= ParagraphEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: rrc_slider <= SliderMeasurementsManager.cpp
[armeabi-v7a] Compile++ thumb: rrc_slider <= SliderShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_progressbar <= AndroidProgressBarShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_modal <= ModalHostViewState.cpp
[armeabi-v7a] Compile++ thumb: rrc_switch <= AndroidSwitchShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_switch <= AndroidSwitchMeasurementsManager.cpp
[armeabi-v7a] Compile++ thumb: rrc_progressbar <= AndroidProgressBarMeasurementsManager.cpp
[armeabi-v7a] Compile++ thumb: rrc_modal <= ModalHostViewShadowNode.cpp
[armeabi-v7a] Compile++ thumb: rrc_scrollview <= ScrollViewEventEmitter.cpp
[armeabi-v7a] Compile++ thumb: rrc_scrollview <= ScrollViewState.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-common-debug <= JSITracing.cpp
[armeabi-v7a] Compile++ thumb: rrc_scrollview <= ScrollViewProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_scrollview <= ScrollViewShadowNode.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-common-debug <= HermesExecutorFactory.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-debug <= OnLoad.cpp
[armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputProps.cpp
[armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputState.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= RuntimeAdapter.cpp
[armeabi-v7a] Compile++ thumb: rrc_textinput <= AndroidTextInputShadowNode.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= CallbackOStream.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= SerialExecutor.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Thread.cpp
[armeabi-v7a] Compile++ thumb: jsireact <= JSINativeModules.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= Registration.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= ConnectionDemux.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= InspectorState.cpp
[armeabi-v7a] Compile++ thumb: jsireact <= JSIExecutor.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= RemoteObjectsTable.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-common-release <= JSITracing.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= AutoAttachUtils.cpp
[armeabi-v7a] Compile++ thumb: hermes-inspector <= MessageConverters.cpp
[armeabi-v7a] Compile++ thumb: hermes-executor-common-release <= HermesExecutorFactory.cpp
[armeabi-v7a] Compile++ thumb: jscruntime <= JSCRuntime.cpp
BUILD FAILED in 4m 54s
at makeError (C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\execa\index.js:174:9)
at C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\execa\index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\@react-native-community\cli-platform-android\build\commands\runAndroid\runOnAllDevices.js:109:5)
at async Command.handleAction (C:\Users\Fengying\Desktop\RNNewArchitectureApp-run-android-0.68.0-rc3\node_modules\@react-native-community\cli\build\index.js:192:9)
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
To generate codegen for iOS I ran
RCT_NEW_ARCH_ENABLED=1 pod install
Now when I need to write Native code in objective-c++
I have to include the header file from build => generated => iOS => CustomLib => CustomLib-generated.mm and CustomLib.h
As I need to include CustomLib.h
in my header file while implementing Native modules I have to manually add this files to my iOS project by choosing "Add files to MyProjectName" but how to do this on CI/CD?
Is there someway around of manually adding this codegen files to iOS project as other developers also have to manually add it otherwise we get error saying CustomLib.h not found
I am trying to create a TurboModule
for android with ReactNative v0.69
Following are the steps which I followed for creating TurboModules
I enabled Hermes
and newArchEnabled
project.ext.react = [
enableHermes: true
]
In gradle.properties
newArchEnabled=true
I created a js
folder in root of the project and create NativeCalculator.js
// @flow
import type {TurboModule} from 'react-native/Libraries/TurboModule/RCTExport';
import {TurboModuleRegistry} from 'react-native';
export interface Spec extends TurboModule {
// your module methods go here, for example:
add(a: number, b: number): Promise<number>;
}
export default (TurboModuleRegistry.get<Spec>('Calculator'): ?Spec);
In app/build.gradle
apply plugin: "com.facebook.react"
react {
reactRoot = rootProject.file("../node_modules/react-native/")
codegenDir = rootProject.file("../node_modules/react-native-codegen/")
jsRootDir = rootProject.file("../js/")
libraryName = "calculator"
codegenJavaPackageName = "com.firstapp.codegen"
}
In java/com/firstapp/newarchitecture/modules
Created CalculatorModule.java
, file
public class CalculatorModule extends NativeCalculatorSpec {
public static final String NAME = "Calculator";
public CalculatorModule(ReactApplicationContext context) {
super(context);
}
@Override
public String getName() {
return NAME;
}
@ReactMethod
public void add(double a, double b, Promise promise) {
Log.i("here123","Values are"+a+" "+b);
promise.resolve(a + b);
}
}
In MainApplication.java
In getPackages
method added following code
packages.add(new TurboReactPackage() {
@Nullable
@Override
public NativeModule getModule(String name, ReactApplicationContext reactContext) {
if (name.equals(CalculatorModule.NAME)) {
return new CalculatorModule(reactContext);
} else {
return null;
}
}
@Override
public ReactModuleInfoProvider getReactModuleInfoProvider() {
return () -> {
final Map<String, ReactModuleInfo> moduleInfos = new HashMap<>();
moduleInfos.put(
CalculatorModule.NAME,
new ReactModuleInfo(
CalculatorModule.NAME,
CalculatorModule.NAME,
false, // canOverrideExistingModule
false, // needsEagerInit
true, // hasConstants
false, // isCxxModule
true // isTurboModule
)
);
return moduleInfos;
};
}
});
@NonNull
@Override
protected ReactPackageTurboModuleManagerDelegate.Builder getReactPackageTurboModuleManagerDelegateBuilder() {
return new MainApplicationTurboModuleManagerDelegate.Builder();
}
@Nullable
@Override
protected JSIModulePackage getJSIModulePackage() {
return new JSIModulePackage() {
@Override
public List<JSIModuleSpec> getJSIModules(
final ReactApplicationContext reactApplicationContext,
final JavaScriptContextHolder jsContext) {
final List<JSIModuleSpec> specs = new ArrayList<>();
specs.add(new JSIModuleSpec() {
@Override
public JSIModuleType getJSIModuleType() {
return JSIModuleType.UIManager;
}
@Override
public JSIModuleProvider<UIManager> getJSIModuleProvider() {
final ComponentFactory componentFactory = new ComponentFactory();
CoreComponentsRegistry.register(componentFactory);
final ReactInstanceManager reactInstanceManager = getReactInstanceManager();
ViewManagerRegistry viewManagerRegistry =
new ViewManagerRegistry(
reactInstanceManager.getOrCreateViewManagers(
reactApplicationContext));
return new FabricJSIModuleProvider(
reactApplicationContext,
componentFactory,
new EmptyReactNativeConfig(),
viewManagerRegistry);
}
});
return specs;
}
};
}
In main/jni/Android.mk
include $(GENERATED_SRC_DIR)/codegen/jni/Android.mk
LOCAL_C_INCLUDES += $(GENERATED_SRC_DIR)/codegen/jni
LOCAL_SRC_FILES += $(wildcard $(GENERATED_SRC_DIR)/codegen/jni/*.cpp)
LOCAL_EXPORT_C_INCLUDES += $(GENERATED_SRC_DIR)/codegen/jni
LOCAL_SHARED_LIBRARIES := \
.....
libreact_codegen_calculator \
.....
In MainApplicationModuleProvider.cpp
#include <calculator.h>
std::shared_ptr<TurboModule> MainApplicationModuleProvider(
const std::string moduleName,
const JavaTurboModule::InitParams ¶ms) {
// Here you can provide your own module provider for TurboModules coming from
// either your application or from external libraries. The approach to follow
// is similar to the following (for a library called `samplelibrary`:
//
auto module = calculator_ModuleProvider(moduleName, params);
if (module != nullptr) {
return module;
}
// return rncore_ModuleProvider(moduleName, params);
return rncore_ModuleProvider(moduleName, params);
}
In App.js
import NativeCalculator from './js/NativeCalculator';
on Button press I have following code
const onPress = async () => {
console.log(NativeCalculator);
const theAnswer = await NativeCalculator?.add(4, 5);
Alert.alert('Answer', 'The answer is ' + theAnswer);
};
I tried console logging NativeCalculator
but I get null
The entire source code is available here https://github.com/PritishSawant/reactnativeandroidturbomoduleV2
I have create a TurboModule for my project
Below is the complete code in Java and it works fine
https://github.com/PritishSawant/ReactNativeTurboModulev5
I created a separate branch for my kotlin
code.
https://github.com/PritishSawant/ReactNativeTurboModulev5/tree/android-kotlin
I just converted one file to kotlin
which is Bike.kt
and i get the following error
yarn run v1.22.10
$ react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1089 file(s) to forward-jetify. Using 8 workers...
info Starting JS server...
info Launching emulator...
info Successfully launched emulator.
info Installing the app...
> Task :react-native-gradle-plugin:compileKotlin
'compileJava' task (current target is 1.8) and 'compileKotlin' task (current target is 11) jvm target compatibility should be set to the same Java version.
w: /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (10, 37): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (119, 30): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (135, 26): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (157, 32): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (163, 31): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactExtension.kt: (171, 36): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/ReactPlugin.kt: (100, 48): 'reactRoot: DirectoryProperty' is deprecated. reactRoot was confusing and has been replace with root to point to your root project and reactNativeDir to point to the folder of the react-native NPM package
w: /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (10, 37): 'ApplicationVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (11, 37): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (12, 37): 'LibraryVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (27, 51): 'BaseVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (130, 12): 'ApplicationVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (131, 12): 'LibraryVariant' is deprecated. Deprecated in Java
w: /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native-gradle-plugin/src/main/kotlin/com/facebook/react/TaskConfiguration.kt: (251, 14): 'BaseVariant' is deprecated. Deprecated in Java
12:25:53 E/DeviceMonitor: Adb connection Error:EOF
12:25:53 D/DeviceMonitor: Opening adb connection
12:25:53 D/DeviceMonitor: Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
12:25:53 E/DeviceMonitor: Cannot reach ADB server, attempting to reconnect.
12:25:54 D/DeviceMonitor: Opening adb connection
12:25:54 D/DeviceMonitor: Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
12:25:55 D/DeviceMonitor: Opening adb connection
12:25:55 D/DeviceMonitor: Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
12:25:56 D/DeviceMonitor: Opening adb connection
12:25:56 D/DeviceMonitor: Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
12:25:57 D/DeviceMonitor: Opening adb connection
12:25:57 D/DeviceMonitor: Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
> Task :react-native-gradle-plugin:compileJava
12:25:58 D/DeviceMonitor: Opening adb connection
12:25:58 D/DeviceMonitor: Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
12:25:59 D/DeviceMonitor: Opening adb connection
12:25:59 D/DeviceMonitor: Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
12:26:00 D/DeviceMonitor: Opening adb connection
12:26:00 D/DeviceMonitor: Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
12:26:01 D/DeviceMonitor: Opening adb connection
12:26:01 D/DeviceMonitor: Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
12:26:02 D/DeviceMonitor: Opening adb connection
12:26:02 D/DeviceMonitor: Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
12:26:03 D/DeviceMonitor: Opening adb connection
12:26:03 D/DeviceMonitor: Unable to open connection to ADB server: java.io.IOException: Can't find adb server on port 5037, IPv4 attempt: Connection refused, IPv6 attempt: Connection refused
12:26:03 D/ddms: Launching '/Users/transformhub/Library/Android/sdk/platform-tools/adb start-server' to ensure ADB is running.
12:26:04 E/adb: * daemon not running; starting now at tcp:5037
12:26:04 E/adb: * daemon started successfully
12:26:04 D/ddms: '/Users/transformhub/Library/Android/sdk/platform-tools/adb start-server' succeeded
12:26:04 I/DeviceMonitor: adb restarted
12:26:05 D/DeviceMonitor: Opening adb connection
12:26:05 I/DeviceMonitor: ADB connection re-established after 12 seconds.
12:26:05 V/EmulatorConsole: Creating emulator console for 5554
12:26:05 V/EmulatorConsole: Removing emulator console for 5554
12:26:05 V/ddms: execute: running getprop
12:26:05 V/ddms: execute 'getprop' on 'emulator-5554' : EOF hit. Read: -1
12:26:05 V/ddms: execute: returning
> Task :ReactAndroid:downloadBoost UP-TO-DATE
Download https://boostorg.jfrog.io/artifactory/main/release/1.76.0/source/boost_1_76_0.tar.gz
> Task :ReactAndroid:downloadDoubleConversion UP-TO-DATE
Download https://github.com/google/double-conversion/archive/v1.1.6.tar.gz
> Task :ReactAndroid:downloadFmt UP-TO-DATE
Download https://github.com/fmtlib/fmt/archive/6.2.1.tar.gz
> Task :ReactAndroid:downloadFolly UP-TO-DATE
Download https://github.com/facebook/folly/archive/v2021.06.28.00.tar.gz
> Task :ReactAndroid:downloadGlog UP-TO-DATE
Download https://github.com/google/glog/archive/v0.3.5.tar.gz
> Task :ReactAndroid:prepareGlog
Encountered duplicate path "config.h" during copy operation configured with DuplicatesStrategy.WARN
> Task :ReactAndroid:downloadLibevent UP-TO-DATE
Download https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
> Task :ReactAndroid:hermes-engine:downloadHermes UP-TO-DATE
Download https://github.com/facebook/hermes/tarball/hermes-2022-05-20-RNv0.69.0-ee8941b8874132b8f83e4486b63ed5c19fc3f111
> Task :ReactAndroid:hermes-engine:configureBuildForHermes
-- Threads enabled.
-- Doxygen disabled.
-- Go bindings disabled.
-- Found ld64 - /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
-- Could NOT find Python module pygments
-- Could NOT find Python module pygments.lexers.c_cpp
-- Could NOT find Python module yaml
-- CMAKE_HOST_SYSTEM_NAME = Darwin
-- CMAKE_SYSTEM_NAME = Darwin
-- HERMES_APPLE_TARGET_PLATFORM =
-- CMAKE_CROSSCOMPILING = FALSE
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native/ReactAndroid/hermes-engine/build/hermes
> Task :ReactAndroid:hermes-engine:buildHermes
[ 0%] Built target LLVHDemangle
[ 6%] Built target dtoa
[ 6%] Built target zip
[ 32%] Built target LLVHSupport
[ 32%] Built target hermesFrontEndDefs
[ 35%] Built target hermesPlatformUnicode
[ 48%] Built target hermesOptimizer
[ 51%] Built target hermesRegex
[ 61%] Built target hermesSupport
[ 61%] Built target hermesInst
[ 61%] Built target hermesFlowParser
[ 64%] Built target hermesAST
[ 64%] Built target hermesADT
[ 67%] Built target hermesAST2JS
[ 70%] Built target hermesParser
[ 74%] Built target hermesSourceMap
[ 83%] Built target hermesFrontend
[ 87%] Built target hermesBackend
[100%] Built target hermesHBCBackend
[100%] Built target hermesCompilerDriver
[100%] Built target hermesc
> Task :app:compileDebugJavaWithJavac FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
121 actionable tasks: 54 executed, 67 up-to-date
Note: /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native-gradle-plugin/src/main/java/com/facebook/react/codegen/generator/SchemaJsonParser.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/android/app/src/main/java/com/androidturbomodules/newarchitecture/MainApplicationReactNativeHost.java:6: error: cannot find symbol
import com.androidturbomodules.newarchitecture.modules.Bike;
^
symbol: class Bike
location: package com.androidturbomodules.newarchitecture.modules
/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/android/app/src/main/java/com/androidturbomodules/newarchitecture/MainApplicationReactNativeHost.java:65: error: cannot find symbol
if (name.equals(Bike.name)) {
^
symbol: variable Bike
/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/android/app/src/main/java/com/androidturbomodules/newarchitecture/MainApplicationReactNativeHost.java:66: error: cannot find symbol
return new Bike(reactContext);
^
symbol: class Bike
/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/android/app/src/main/java/com/androidturbomodules/newarchitecture/MainApplicationReactNativeHost.java:77: error: cannot find symbol
Bike.name,
^
symbol: variable Bike
/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/android/app/src/main/java/com/androidturbomodules/newarchitecture/MainApplicationReactNativeHost.java:79: error: cannot find symbol
Bike.name,
^
symbol: variable Bike
/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/android/app/src/main/java/com/androidturbomodules/newarchitecture/MainApplicationReactNativeHost.java:80: error: cannot find symbol
Bike.name,
^
symbol: variable Bike
6 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> 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 9m 10s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Note: /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native-gradle-plugin/src/main/java/com/facebook/react/codegen/generator/SchemaJsonParser.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
CMake Deprecation Warning at CMakeLists.txt:42 (cmake_policy):
The OLD behavior for policy CMP0026 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/android/app/src/main/java/com/androidturbomodules/newarchitecture/MainApplicationReactNativeHost.java:6: error: cannot find symbol
import com.androidturbomodules.newarchitecture.modules.Bike;
^
symbol: class Bike
location: package com.androidturbomodules.newarchitecture.modules
/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/android/app/src/main/java/com/androidturbomodules/newarchitecture/MainApplicationReactNativeHost.java:65: error: cannot find symbol
if (name.equals(Bike.name)) {
^
symbol: variable Bike
/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/android/app/src/main/java/com/androidturbomodules/newarchitecture/MainApplicationReactNativeHost.java:66: error: cannot find symbol
return new Bike(reactContext);
^
symbol: class Bike
/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/android/app/src/main/java/com/androidturbomodules/newarchitecture/MainApplicationReactNativeHost.java:77: error: cannot find symbol
Bike.name,
^
symbol: variable Bike
/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/android/app/src/main/java/com/androidturbomodules/newarchitecture/MainApplicationReactNativeHost.java:79: error: cannot find symbol
Bike.name,
^
symbol: variable Bike
/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/android/app/src/main/java/com/androidturbomodules/newarchitecture/MainApplicationReactNativeHost.java:80: error: cannot find symbol
Bike.name,
^
symbol: variable Bike
6 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
> 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 9m 10s
at makeError (/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/execa/index.js:174:9)
at /Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/execa/index.js:278:16
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async runOnAllDevices (/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/runOnAllDevices.js:109:5)
at async Command.handleAction (/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/@react-native-community/cli/build/index.js:192:9)
info Run CLI with --verbose flag for more details.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Also i noticed that we don't have to explicitly add kotlin
in our react native project from v0.69 so i removed it from my repo
If i explicitly add kotlin in our android project
In app/build.gradle
apply plugin: 'kotlin-android'
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.6.10"
In root build.gradle
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
I get error saying
Build file '/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/node_modules/react-native/ReactAndroid/build.gradle' line: 11
Error resolving plugin [id: 'org.jetbrains.kotlin.android', version: '1.6.10']
> Plugin request for plugin already on the classpath must not include a version
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Exception is:
org.gradle.api.GradleException: Error resolving plugin [id: 'org.jetbrains.kotlin.android', version: '1.6.10']
at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.resolveToFoundResult(DefaultPluginRequestApplicator.java:215)
at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.lambda$resolvePluginRequests$3(DefaultPluginRequestApplicator.java:147)
at org.gradle.util.internal.CollectionUtils.collect(CollectionUtils.java:207)
at org.gradle.util.internal.CollectionUtils.collect(CollectionUtils.java:201)
at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.resolvePluginRequests(DefaultPluginRequestApplicator.java:145)
at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.applyPlugins(DefaultPluginRequestApplicator.java:88)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:117)
at org.gradle.configuration.BuildOperationScriptPlugin$1.run(BuildOperationScriptPlugin.java:65)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
at org.gradle.configuration.BuildOperationScriptPlugin.lambda$apply$0(BuildOperationScriptPlugin.java:62)
at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:44)
at org.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:62)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$applyToMutableState$0(DefaultProjectStateRegistry.java:366)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.fromMutableState(DefaultProjectStateRegistry.java:393)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.applyToMutableState(DefaultProjectStateRegistry.java:365)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:42)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:35)
at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.lambda$run$0(LifecycleProjectEvaluator.java:100)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$applyToMutableState$0(DefaultProjectStateRegistry.java:366)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$withProjectLock$3(DefaultProjectStateRegistry.java:426)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:211)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withProjectLock(DefaultProjectStateRegistry.java:426)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.fromMutableState(DefaultProjectStateRegistry.java:407)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.applyToMutableState(DefaultProjectStateRegistry.java:365)
at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.run(LifecycleProjectEvaluator.java:91)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:63)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:751)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:151)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.ensureConfigured(DefaultProjectStateRegistry.java:339)
at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:41)
at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:57)
at org.gradle.configuration.DefaultProjectsPreparer.prepareProjects(DefaultProjectsPreparer.java:48)
at org.gradle.configuration.BuildTreePreparingProjectsPreparer.prepareProjects(BuildTreePreparingProjectsPreparer.java:64)
at org.gradle.configuration.BuildOperationFiringProjectsPreparer$ConfigureBuild.run(BuildOperationFiringProjectsPreparer.java:52)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
at org.gradle.configuration.BuildOperationFiringProjectsPreparer.prepareProjects(BuildOperationFiringProjectsPreparer.java:40)
at org.gradle.initialization.VintageBuildModelController.lambda$prepareProjects$1(VintageBuildModelController.java:93)
at org.gradle.internal.build.StateTransitionController.lambda$doTransition$1(StateTransitionController.java:222)
at org.gradle.internal.build.StateTransitionController.doTransition(StateTransitionController.java:243)
at org.gradle.internal.build.StateTransitionController.doTransition(StateTransitionController.java:221)
at org.gradle.internal.build.StateTransitionController.transitionIfNotPreviously(StateTransitionController.java:190)
at org.gradle.initialization.VintageBuildModelController.prepareProjects(VintageBuildModelController.java:93)
at org.gradle.initialization.VintageBuildModelController.doBuildStages(VintageBuildModelController.java:77)
at org.gradle.initialization.VintageBuildModelController.getConfiguredModel(VintageBuildModelController.java:58)
at org.gradle.internal.build.StateTransitionController.notInStateIgnoreOtherThreads(StateTransitionController.java:89)
at org.gradle.internal.build.DefaultBuildLifecycleController.getConfiguredBuild(DefaultBuildLifecycleController.java:98)
at org.gradle.internal.build.AbstractBuildState.ensureProjectsConfigured(AbstractBuildState.java:65)
at org.gradle.internal.buildtree.DefaultBuildTreeModelCreator$DefaultBuildToolingModelController.locateBuilderForTarget(DefaultBuildTreeModelCreator.java:90)
at org.gradle.internal.buildtree.DefaultBuildTreeModelCreator$DefaultBuildToolingModelController.locateBuilderForDefaultTarget(DefaultBuildTreeModelCreator.java:82)
at org.gradle.tooling.internal.provider.runner.DefaultBuildController$DefaultTargetModel.locate(DefaultBuildController.java:239)
at org.gradle.tooling.internal.provider.runner.DefaultBuildController.getToolingModelBuilder(DefaultBuildController.java:184)
at org.gradle.tooling.internal.provider.runner.DefaultBuildController.getModel(DefaultBuildController.java:98)
at org.gradle.tooling.internal.consumer.connection.ParameterAwareBuildControllerAdapter.getModel(ParameterAwareBuildControllerAdapter.java:39)
at org.gradle.tooling.internal.consumer.connection.UnparameterizedBuildController.getModel(UnparameterizedBuildController.java:113)
at org.gradle.tooling.internal.consumer.connection.NestedActionAwareBuildControllerAdapter.getModel(NestedActionAwareBuildControllerAdapter.java:31)
at org.gradle.tooling.internal.consumer.connection.UnparameterizedBuildController.findModel(UnparameterizedBuildController.java:97)
at org.gradle.tooling.internal.consumer.connection.NestedActionAwareBuildControllerAdapter.findModel(NestedActionAwareBuildControllerAdapter.java:31)
at org.gradle.tooling.internal.consumer.connection.UnparameterizedBuildController.findModel(UnparameterizedBuildController.java:81)
at org.gradle.tooling.internal.consumer.connection.NestedActionAwareBuildControllerAdapter.findModel(NestedActionAwareBuildControllerAdapter.java:31)
at org.gradle.tooling.internal.consumer.connection.UnparameterizedBuildController.findModel(UnparameterizedBuildController.java:66)
at org.gradle.tooling.internal.consumer.connection.NestedActionAwareBuildControllerAdapter.findModel(NestedActionAwareBuildControllerAdapter.java:31)
at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:116)
at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:42)
at org.gradle.tooling.internal.consumer.connection.InternalBuildActionAdapter.execute(InternalBuildActionAdapter.java:64)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionAdapter.runAction(AbstractClientProvidedBuildActionRunner.java:131)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionAdapter.beforeTasks(AbstractClientProvidedBuildActionRunner.java:99)
at org.gradle.internal.buildtree.DefaultBuildTreeModelCreator.beforeTasks(DefaultBuildTreeModelCreator.java:57)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$fromBuildModel$1(DefaultBuildTreeLifecycleController.java:72)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$runBuild$4(DefaultBuildTreeLifecycleController.java:103)
at org.gradle.internal.build.StateTransitionController.lambda$transition$0(StateTransitionController.java:145)
at org.gradle.internal.build.StateTransitionController.doTransition(StateTransitionController.java:243)
at org.gradle.internal.build.StateTransitionController.transition(StateTransitionController.java:145)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.runBuild(DefaultBuildTreeLifecycleController.java:100)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.fromBuildModel(DefaultBuildTreeLifecycleController.java:71)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner.runClientAction(AbstractClientProvidedBuildActionRunner.java:43)
at org.gradle.tooling.internal.provider.runner.ClientProvidedPhasedActionRunner.run(ClientProvidedPhasedActionRunner.java:53)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.internal.buildtree.ProblemReportingBuildActionRunner.run(ProblemReportingBuildActionRunner.java:49)
at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:69)
at org.gradle.tooling.internal.provider.FileSystemWatchingBuildActionRunner.run(FileSystemWatchingBuildActionRunner.java:114)
at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:41)
at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.lambda$execute$0(RootBuildLifecycleBuildActionExecutor.java:40)
at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:155)
at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.execute(RootBuildLifecycleBuildActionExecutor.java:40)
at org.gradle.internal.buildtree.DefaultBuildTreeContext.execute(DefaultBuildTreeContext.java:40)
at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.lambda$execute$0(BuildTreeLifecycleBuildActionExecutor.java:65)
at org.gradle.internal.buildtree.BuildTreeState.run(BuildTreeState.java:53)
at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.execute(BuildTreeLifecycleBuildActionExecutor.java:65)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:61)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:57)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor.execute(RunAsBuildOperationBuildActionExecutor.java:57)
at org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.lambda$execute$0(RunAsWorkerThreadBuildActionExecutor.java:38)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:211)
at org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.execute(RunAsWorkerThreadBuildActionExecutor.java:38)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecutor.execute(ContinuousBuildActionExecutor.java:103)
at org.gradle.tooling.internal.provider.SubscribableBuildActionExecutor.execute(SubscribableBuildActionExecutor.java:64)
at org.gradle.internal.session.DefaultBuildSessionContext.execute(DefaultBuildSessionContext.java:46)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter$ActionImpl.apply(BuildSessionLifecycleBuildActionExecuter.java:100)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter$ActionImpl.apply(BuildSessionLifecycleBuildActionExecuter.java:88)
at org.gradle.internal.session.BuildSessionState.run(BuildSessionState.java:69)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.execute(BuildSessionLifecycleBuildActionExecuter.java:62)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.execute(BuildSessionLifecycleBuildActionExecuter.java:41)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:63)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:58)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:42)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:47)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:31)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:65)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:39)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:29)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:35)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:78)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:75)
at org.gradle.util.internal.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:75)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:63)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:84)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:52)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:61)
Caused by: org.gradle.plugin.management.internal.InvalidPluginRequestException: Plugin request for plugin already on the classpath must not include a version
at org.gradle.plugin.use.resolve.internal.AlreadyOnClasspathPluginResolver.resolve(AlreadyOnClasspathPluginResolver.java:62)
at org.gradle.plugin.use.internal.DefaultPluginRequestApplicator.resolveToFoundResult(DefaultPluginRequestApplicator.java:212)
... 167 more
So i decided to comment classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
Then if i try to sync
Build file '/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/android/app/build.gradle' line: 3
A problem occurred evaluating project ':app'.
> Plugin with id 'kotlin-android' not found.
* Try:
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Exception is:
org.gradle.api.GradleScriptException: A problem occurred evaluating project ':app'.
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:93)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.lambda$apply$0(DefaultScriptPluginFactory.java:133)
at org.gradle.configuration.ProjectScriptTarget.addConfiguration(ProjectScriptTarget.java:79)
at org.gradle.configuration.DefaultScriptPluginFactory$ScriptPluginImpl.apply(DefaultScriptPluginFactory.java:136)
at org.gradle.configuration.BuildOperationScriptPlugin$1.run(BuildOperationScriptPlugin.java:65)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
at org.gradle.configuration.BuildOperationScriptPlugin.lambda$apply$0(BuildOperationScriptPlugin.java:62)
at org.gradle.configuration.internal.DefaultUserCodeApplicationContext.apply(DefaultUserCodeApplicationContext.java:44)
at org.gradle.configuration.BuildOperationScriptPlugin.apply(BuildOperationScriptPlugin.java:62)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$applyToMutableState$0(DefaultProjectStateRegistry.java:366)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.fromMutableState(DefaultProjectStateRegistry.java:393)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.applyToMutableState(DefaultProjectStateRegistry.java:365)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:42)
at org.gradle.configuration.project.BuildScriptProcessor.execute(BuildScriptProcessor.java:26)
at org.gradle.configuration.project.ConfigureActionsProjectEvaluator.evaluate(ConfigureActionsProjectEvaluator.java:35)
at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.lambda$run$0(LifecycleProjectEvaluator.java:100)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$applyToMutableState$0(DefaultProjectStateRegistry.java:366)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.lambda$withProjectLock$3(DefaultProjectStateRegistry.java:426)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:211)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.withProjectLock(DefaultProjectStateRegistry.java:426)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.fromMutableState(DefaultProjectStateRegistry.java:407)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.applyToMutableState(DefaultProjectStateRegistry.java:365)
at org.gradle.configuration.project.LifecycleProjectEvaluator$EvaluateProject.run(LifecycleProjectEvaluator.java:91)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:63)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:751)
at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:151)
at org.gradle.api.internal.project.DefaultProjectStateRegistry$ProjectStateImpl.ensureConfigured(DefaultProjectStateRegistry.java:339)
at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:41)
at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:57)
at org.gradle.configuration.DefaultProjectsPreparer.prepareProjects(DefaultProjectsPreparer.java:48)
at org.gradle.configuration.BuildTreePreparingProjectsPreparer.prepareProjects(BuildTreePreparingProjectsPreparer.java:64)
at org.gradle.configuration.BuildOperationFiringProjectsPreparer$ConfigureBuild.run(BuildOperationFiringProjectsPreparer.java:52)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:29)
at org.gradle.internal.operations.DefaultBuildOperationRunner$1.execute(DefaultBuildOperationRunner.java:26)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.run(DefaultBuildOperationRunner.java:47)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:68)
at org.gradle.configuration.BuildOperationFiringProjectsPreparer.prepareProjects(BuildOperationFiringProjectsPreparer.java:40)
at org.gradle.initialization.VintageBuildModelController.lambda$prepareProjects$1(VintageBuildModelController.java:93)
at org.gradle.internal.build.StateTransitionController.lambda$doTransition$1(StateTransitionController.java:222)
at org.gradle.internal.build.StateTransitionController.doTransition(StateTransitionController.java:243)
at org.gradle.internal.build.StateTransitionController.doTransition(StateTransitionController.java:221)
at org.gradle.internal.build.StateTransitionController.transitionIfNotPreviously(StateTransitionController.java:190)
at org.gradle.initialization.VintageBuildModelController.prepareProjects(VintageBuildModelController.java:93)
at org.gradle.initialization.VintageBuildModelController.doBuildStages(VintageBuildModelController.java:77)
at org.gradle.initialization.VintageBuildModelController.getConfiguredModel(VintageBuildModelController.java:58)
at org.gradle.internal.build.StateTransitionController.notInStateIgnoreOtherThreads(StateTransitionController.java:89)
at org.gradle.internal.build.DefaultBuildLifecycleController.getConfiguredBuild(DefaultBuildLifecycleController.java:98)
at org.gradle.internal.build.AbstractBuildState.ensureProjectsConfigured(AbstractBuildState.java:65)
at org.gradle.internal.buildtree.DefaultBuildTreeModelCreator$DefaultBuildToolingModelController.locateBuilderForTarget(DefaultBuildTreeModelCreator.java:90)
at org.gradle.internal.buildtree.DefaultBuildTreeModelCreator$DefaultBuildToolingModelController.locateBuilderForDefaultTarget(DefaultBuildTreeModelCreator.java:82)
at org.gradle.tooling.internal.provider.runner.DefaultBuildController$DefaultTargetModel.locate(DefaultBuildController.java:239)
at org.gradle.tooling.internal.provider.runner.DefaultBuildController.getToolingModelBuilder(DefaultBuildController.java:184)
at org.gradle.tooling.internal.provider.runner.DefaultBuildController.getModel(DefaultBuildController.java:98)
at org.gradle.tooling.internal.consumer.connection.ParameterAwareBuildControllerAdapter.getModel(ParameterAwareBuildControllerAdapter.java:39)
at org.gradle.tooling.internal.consumer.connection.UnparameterizedBuildController.getModel(UnparameterizedBuildController.java:113)
at org.gradle.tooling.internal.consumer.connection.NestedActionAwareBuildControllerAdapter.getModel(NestedActionAwareBuildControllerAdapter.java:31)
at org.gradle.tooling.internal.consumer.connection.UnparameterizedBuildController.findModel(UnparameterizedBuildController.java:97)
at org.gradle.tooling.internal.consumer.connection.NestedActionAwareBuildControllerAdapter.findModel(NestedActionAwareBuildControllerAdapter.java:31)
at org.gradle.tooling.internal.consumer.connection.UnparameterizedBuildController.findModel(UnparameterizedBuildController.java:81)
at org.gradle.tooling.internal.consumer.connection.NestedActionAwareBuildControllerAdapter.findModel(NestedActionAwareBuildControllerAdapter.java:31)
at org.gradle.tooling.internal.consumer.connection.UnparameterizedBuildController.findModel(UnparameterizedBuildController.java:66)
at org.gradle.tooling.internal.consumer.connection.NestedActionAwareBuildControllerAdapter.findModel(NestedActionAwareBuildControllerAdapter.java:31)
at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:116)
at org.jetbrains.plugins.gradle.model.ProjectImportAction.execute(ProjectImportAction.java:42)
at org.gradle.tooling.internal.consumer.connection.InternalBuildActionAdapter.execute(InternalBuildActionAdapter.java:64)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionAdapter.runAction(AbstractClientProvidedBuildActionRunner.java:131)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner$ActionAdapter.beforeTasks(AbstractClientProvidedBuildActionRunner.java:99)
at org.gradle.internal.buildtree.DefaultBuildTreeModelCreator.beforeTasks(DefaultBuildTreeModelCreator.java:57)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$fromBuildModel$1(DefaultBuildTreeLifecycleController.java:72)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.lambda$runBuild$4(DefaultBuildTreeLifecycleController.java:103)
at org.gradle.internal.build.StateTransitionController.lambda$transition$0(StateTransitionController.java:145)
at org.gradle.internal.build.StateTransitionController.doTransition(StateTransitionController.java:243)
at org.gradle.internal.build.StateTransitionController.transition(StateTransitionController.java:145)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.runBuild(DefaultBuildTreeLifecycleController.java:100)
at org.gradle.internal.buildtree.DefaultBuildTreeLifecycleController.fromBuildModel(DefaultBuildTreeLifecycleController.java:71)
at org.gradle.tooling.internal.provider.runner.AbstractClientProvidedBuildActionRunner.runClientAction(AbstractClientProvidedBuildActionRunner.java:43)
at org.gradle.tooling.internal.provider.runner.ClientProvidedPhasedActionRunner.run(ClientProvidedPhasedActionRunner.java:53)
at org.gradle.launcher.exec.ChainingBuildActionRunner.run(ChainingBuildActionRunner.java:35)
at org.gradle.internal.buildtree.ProblemReportingBuildActionRunner.run(ProblemReportingBuildActionRunner.java:49)
at org.gradle.launcher.exec.BuildOutcomeReportingBuildActionRunner.run(BuildOutcomeReportingBuildActionRunner.java:69)
at org.gradle.tooling.internal.provider.FileSystemWatchingBuildActionRunner.run(FileSystemWatchingBuildActionRunner.java:114)
at org.gradle.launcher.exec.BuildCompletionNotifyingBuildActionRunner.run(BuildCompletionNotifyingBuildActionRunner.java:41)
at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.lambda$execute$0(RootBuildLifecycleBuildActionExecutor.java:40)
at org.gradle.composite.internal.DefaultRootBuildState.run(DefaultRootBuildState.java:155)
at org.gradle.launcher.exec.RootBuildLifecycleBuildActionExecutor.execute(RootBuildLifecycleBuildActionExecutor.java:40)
at org.gradle.internal.buildtree.DefaultBuildTreeContext.execute(DefaultBuildTreeContext.java:40)
at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.lambda$execute$0(BuildTreeLifecycleBuildActionExecutor.java:65)
at org.gradle.internal.buildtree.BuildTreeState.run(BuildTreeState.java:53)
at org.gradle.launcher.exec.BuildTreeLifecycleBuildActionExecutor.execute(BuildTreeLifecycleBuildActionExecutor.java:65)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:61)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor$3.call(RunAsBuildOperationBuildActionExecutor.java:57)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:204)
at org.gradle.internal.operations.DefaultBuildOperationRunner$CallableBuildOperationWorker.execute(DefaultBuildOperationRunner.java:199)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:66)
at org.gradle.internal.operations.DefaultBuildOperationRunner$2.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:157)
at org.gradle.internal.operations.DefaultBuildOperationRunner.execute(DefaultBuildOperationRunner.java:59)
at org.gradle.internal.operations.DefaultBuildOperationRunner.call(DefaultBuildOperationRunner.java:53)
at org.gradle.internal.operations.DefaultBuildOperationExecutor.call(DefaultBuildOperationExecutor.java:73)
at org.gradle.launcher.exec.RunAsBuildOperationBuildActionExecutor.execute(RunAsBuildOperationBuildActionExecutor.java:57)
at org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.lambda$execute$0(RunAsWorkerThreadBuildActionExecutor.java:38)
at org.gradle.internal.work.DefaultWorkerLeaseService.withLocks(DefaultWorkerLeaseService.java:211)
at org.gradle.launcher.exec.RunAsWorkerThreadBuildActionExecutor.execute(RunAsWorkerThreadBuildActionExecutor.java:38)
at org.gradle.tooling.internal.provider.ContinuousBuildActionExecutor.execute(ContinuousBuildActionExecutor.java:103)
at org.gradle.tooling.internal.provider.SubscribableBuildActionExecutor.execute(SubscribableBuildActionExecutor.java:64)
at org.gradle.internal.session.DefaultBuildSessionContext.execute(DefaultBuildSessionContext.java:46)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter$ActionImpl.apply(BuildSessionLifecycleBuildActionExecuter.java:100)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter$ActionImpl.apply(BuildSessionLifecycleBuildActionExecuter.java:88)
at org.gradle.internal.session.BuildSessionState.run(BuildSessionState.java:69)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.execute(BuildSessionLifecycleBuildActionExecuter.java:62)
at org.gradle.tooling.internal.provider.BuildSessionLifecycleBuildActionExecuter.execute(BuildSessionLifecycleBuildActionExecuter.java:41)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:36)
at org.gradle.tooling.internal.provider.GradleThreadBuildActionExecuter.execute(GradleThreadBuildActionExecuter.java:25)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:63)
at org.gradle.tooling.internal.provider.StartParamsValidatingActionExecuter.execute(StartParamsValidatingActionExecuter.java:31)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:58)
at org.gradle.tooling.internal.provider.SessionFailureReportingActionExecuter.execute(SessionFailureReportingActionExecuter.java:42)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:47)
at org.gradle.tooling.internal.provider.SetupLoggingActionExecuter.execute(SetupLoggingActionExecuter.java:31)
at org.gradle.launcher.daemon.server.exec.ExecuteBuild.doBuild(ExecuteBuild.java:65)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.WatchForDisconnection.execute(WatchForDisconnection.java:39)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ResetDeprecationLogger.execute(ResetDeprecationLogger.java:29)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.RequestStopIfSingleUsedDaemon.execute(RequestStopIfSingleUsedDaemon.java:35)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:78)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput$2.create(ForwardClientInput.java:75)
at org.gradle.util.internal.Swapper.swap(Swapper.java:38)
at org.gradle.launcher.daemon.server.exec.ForwardClientInput.execute(ForwardClientInput.java:75)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogAndCheckHealth.execute(LogAndCheckHealth.java:55)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.LogToClient.doBuild(LogToClient.java:63)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.EstablishBuildEnvironment.doBuild(EstablishBuildEnvironment.java:84)
at org.gradle.launcher.daemon.server.exec.BuildCommandOnly.execute(BuildCommandOnly.java:37)
at org.gradle.launcher.daemon.server.api.DaemonCommandExecution.proceed(DaemonCommandExecution.java:104)
at org.gradle.launcher.daemon.server.exec.StartBuildOrRespondWithBusy$1.run(StartBuildOrRespondWithBusy.java:52)
at org.gradle.launcher.daemon.server.DaemonStateCoordinator$1.run(DaemonStateCoordinator.java:297)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:61)
Caused by: org.gradle.api.plugins.UnknownPluginException: Plugin with id 'kotlin-android' not found.
at org.gradle.api.internal.plugins.DefaultPluginManager.apply(DefaultPluginManager.java:144)
at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.applyType(DefaultObjectConfigurationAction.java:167)
at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.access$200(DefaultObjectConfigurationAction.java:43)
at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction$3.run(DefaultObjectConfigurationAction.java:98)
at org.gradle.api.internal.plugins.DefaultObjectConfigurationAction.execute(DefaultObjectConfigurationAction.java:190)
at org.gradle.api.internal.project.AbstractPluginAware.apply(AbstractPluginAware.java:49)
at org.gradle.api.internal.project.ProjectScript.apply(ProjectScript.java:37)
at org.gradle.api.Script$apply.callCurrent(Unknown Source)
at build_cd63brfrom9h7uu0oc7x9ozim.run(/Users/transformhub/Desktop/NewArchitecture/androidturbomodules/android/app/build.gradle:3)
at org.gradle.groovy.scripts.internal.DefaultScriptRunnerFactory$ScriptRunnerImpl.run(DefaultScriptRunnerFactory.java:91)
... 164 more
Above error is the reason i commented out
apply plugin: 'kotlin-android'
implementation "org.jetbrains.kotlin:kotlin-stdlib:1.6.10"
I am trying to integrate TurboModule in my android app. I am on this step d8884c2
Currently after completing all the changes of d8884c2, if i do a build i get following error
Build command failed.
Error while executing process /Users/transformhub/Library/Android/sdk/ndk/24.0.8215888/ndk-build with arguments {NDK_PROJECT_PATH=null APP_BUILD_SCRIPT=/Users/transformhub/Desktop/NewArchitecture/firstapp/android/app/src/main/jni/Android.mk APP_ABI=armeabi-v7a NDK_ALL_ABIS=armeabi-v7a NDK_DEBUG=1 NDK_OUT=/Users/transformhub/Desktop/NewArchitecture/firstapp/android/app/build/intermediates/cxx/Debug/6i2b135i/obj NDK_LIBS_OUT=/Users/transformhub/Desktop/NewArchitecture/firstapp/android/app/build/intermediates/cxx/Debug/6i2b135i/lib APP_CFLAGS+=-Wall APP_CFLAGS+=-Werror APP_CFLAGS+=-fexceptions APP_CFLAGS+=-frtti APP_CFLAGS+=-DWITH_INSPECTOR=1 APP_CPPFLAGS+=-std=c++17 APP_PLATFORM=android-21 APP_STL=c++_shared NDK_TOOLCHAIN_VERSION=clang GENERATED_SRC_DIR=/Users/transformhub/Desktop/NewArchitecture/firstapp/android/app/build/generated/source PROJECT_BUILD_DIR=/Users/transformhub/Desktop/NewArchitecture/firstapp/android/app/build REACT_ANDROID_DIR=/Users/transformhub/Desktop/NewArchitecture/firstapp/android/../node_modules/react-native/ReactAndroid REACT_ANDROID_BUILD_DIR=/Users/transformhub/Desktop/NewArchitecture/firstapp/android/../node_modules/react-native/ReactAndroid/build firstapp_appmodules}
[armeabi-v7a] Compile++ thumb: firstapp_appmodules <= MainApplicationModuleProvider.cpp
/Users/transformhub/Desktop/NewArchitecture/firstapp/android/app/src/main/jni/MainApplicationModuleProvider.cpp:4:10: fatal error: 'answersolver.h' file not found
#include <answersolver.h>
^~~~~~~~~~~~~~~~
1 error generated.
make: *** [/Users/transformhub/Library/Android/sdk/ndk/24.0.8215888/build/core/build-binary.mk:424: /Users/transformhub/Desktop/NewArchitecture/firstapp/android/app/build/intermediates/cxx/Debug/6i2b135i/obj/local/armeabi-v7a/objs-debug/firstapp_appmodules//Users/transformhub/Desktop/NewArchitecture/firstapp/android/app/src/main/jni/MainApplicationModuleProvider.o] Error 1
I also get below error saying
hi, I followed the documentation for implementing c++ native module from the official react naive website and using this code as support. However, i keep getting NativeSampleModule.h file not found during the debug build process
I create two spec files in js folder => NativeCalculator.ts
and NativeBike.ts
. To generate codegen, I would add the below code in app/build.gradle
react {
libraryName = "bikelibrary"
codegenJavaPackageName = "com.androidturbomodules.codegen"
root = rootProject.file("..")
jsRootDir = rootProject.file("../js/")
reactNativeDir = rootProject.file("../node_modules/react-native/")
codegenDir = rootProject.file("../node_modules/react-native-codegen/")
}
but how to add NativeCalculator.ts
in the above code.
How to pass array
of library names to libraryName
?
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.