AgoraIO-Extensions / AgoraIO-Extensions/Agora-Flutter-SDK
Agora setup
- Vorherrschende Sprache
- Dart
- Sterne
- 795
- Forks
- 448
- Ø Merge
- 12 Std. 19 Min.
- Gemergte PRs (30 T.)
- 14
Beschreibung
### Version of the agora_rtc_engine
I am trying to add agora_rtc_engine but I found this error FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':agora_rtc_engine:buildCMakeDebug[arm64-v8a]'.
> com.android.ide.common.process.ProcessException: ninja: Entering directory `/home/asmaa/.pub-cache/hosted/pub.dev/agora_rtc_engine-6.5.2/android/.cxx/Debug/47c6i32n/arm64-v8a'
[1/2] Building CXX object CMakeFiles/iris_rendering_android.dir/iris_rtc_rendering_android.cc.o
FAILED: CMakeFiles/iris_rendering_android.dir/iris_rtc_rendering_android.cc.o
/home/asmaa/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/bin/clang++ --target=aarch64-none-linux-android21 --sysroot=/home/asmaa/Android/Sdk/ndk/25.1.8937393/toolchains/llvm/prebuilt/linux-x86_64/sysroot -Diris_rendering_android_EXPORTS -I/home/asmaa/.pub-cache/hosted/pub.dev/agora_rtc_engine-6.5.2/android/src/main/cpp/third_party/include/iris -I/home/asmaa/.pub-cache/hosted/pub.dev/agora_rtc_engine-6.5.2/android/src/main/cpp/third_party/include/agora_rtc -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables -fstack-protector-strong -no-canonical-prefixes -D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security -fno-limit-debug-info -fPIC -MD -MT CMakeFiles/iris_rendering_android.dir/iris_rtc_rendering_android.cc.o -MF CMakeFiles/iris_rendering_android.dir/iris_rtc_rendering_android.cc.o.d -o CMakeFiles/iris_rendering_android.dir/iris_rtc_rendering_android.cc.o -c /home/asmaa/.pub-cache/hosted/pub.dev/agora_rtc_engine-6.5.2/android/src/main/cpp/iris_rtc_rendering_android.cc
In file included from /home/asmaa/.pub-cache/hosted/pub.dev/agora_rtc_engine-6.5.2/android/src/main/cpp/iris_rtc_rendering_android.cc:13:
/snap/flutter/current/usr/include/c++/9/memory:121:25: error: cast from pointer to smaller type 'uintptr_t' (aka 'unsigned int') loses information
const auto __intptr = reinterpret_cast(__ptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
ninja: build stopped: subcommand failed.
C++ build system [build] failed while executing:
/home/asmaa/Android/Sdk/cmake/3.22.1/bin/ninja \
-C \
/home/asmaa/.pub-cache/hosted/pub.dev/agora_rtc_engine-6.5.2/android/.cxx/Debug/47c6i32n/arm64-v8a \
iris_rendering_android
from /home/asmaa/.pub-cache/hosted/pub.dev/agora_rtc_engine-6.5.2/android
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 3s
Error: Gradle task assembleDebug failed with exit code 1
### Platforms affected
- [x] Android
- [ ] iOS
- [ ] macOS
- [ ] Windows
- [ ] Web
### Steps to reproduce
agora_rtc_engine: ^6.5.2
### Expected results
I added latest version
### Actual results
but it doesn;t work
### Code sample
Code sample
```dart
[Paste your code here]
```
### Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
### Logs
Logs
```console
[Paste your logs here]
```
### Flutter Doctor output
Doctor output
```console
[Paste your output here]
```
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.