앞선 오류를 해결하기 위해 다음과 같이 진행해 보았습니다.
1. android/app/build.gradle에서 id "com.onesignal.androidsdk.onesignal-gradle-plugin" 구문을 삭제하고,
android/build.gradle에서 구문 순서를 다음과 같이 적용하였습니다.
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
afterEvaluate { project ->
if (project.hasProperty('android')) {
project.android {
if (namespace == null) {
namespace project.group
}
}
}
}
}
subprojects {
project.evaluationDependsOn(":app")
}
2. 이렇게 적용 후 빌드하니 다음과 같은 오류가 발생하였습니다.
* What went wrong:
Execution failed for task ':sqlite3_flutter_libs:processDebugManifest'.
> A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction
> Incorrect package="com.example.sqlite3_flutter_libs" found in source AndroidManifest.xml: C:\Users\SAMSUNG\AppData\Local\Pub\Cache\hosted\pub.dev\sqlite3_flutter_libs-0.5.10\android\src\main\AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
Recommendation: remove package="com.example.sqlite3_flutter_libs" from the source AndroidManifest.xml: C:\Users\SAMSUNG\AppData\Local\Pub\Cache\hosted\pub.dev\sqlite3_flutter_libs-0.5.10\android\src\main\AndroidManifest.xml.
3. sqlite3_flutter_libs 버전 충돌인가 하여 기존 버전 0.5.10으로 적용후 다시빌드 했으나 다음과 같은 오류가 발생합니다.
Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
WARNING: We recommend using a newer Android Gradle plugin to use compileSdk = 34
This Android Gradle plugin (8.1.0) was tested up to compileSdk = 33 (and compileSdkPreview = "UpsideDownCakePrivacySandbox").
You are strongly encouraged to update your project to use a newer
Android Gradle plugin that has been tested with compileSdk = 34.
If you are already using the latest version of the Android Gradle plugin,
you may need to wait until a newer version with support for compileSdk = 34 is available.
To suppress this warning, add/update
android.suppressUnsupportedCompileSdk=34
to this project's gradle.properties.
> Task :sqlite3_flutter_libs:processDebugManifest FAILED
Incorrect package="com.example.sqlite3_flutter_libs" found in source AndroidManifest.xml: C:\Users\SAMSUNG\AppData\Local\Pub\Cache\hosted\pub.dev\sqlite3_flutter_libs-0.5.10\android\src\main\AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
Recommendation: remove package="com.example.sqlite3_flutter_libs" from the source AndroidManifest.xml: C:\Users\SAMSUNG\AppData\Local\Pub\Cache\hosted\pub.dev\sqlite3_flutter_libs-0.5.10\android\src\main\AndroidManifest.xml.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':sqlite3_flutter_libs:processDebugManifest'.
> A failure occurred while executing com.android.build.gradle.tasks.ProcessLibraryManifest$ProcessLibWorkAction
> Incorrect package="com.example.sqlite3_flutter_libs" found in source AndroidManifest.xml: C:\Users\SAMSUNG\AppData\Local\Pub\Cache\hosted\pub.dev\sqlite3_flutter_libs-0.5.10\android\src\main\AndroidManifest.xml.
Setting the namespace via the package attribute in the source AndroidManifest.xml is no longer supported.
Recommendation: remove package="com.example.sqlite3_flutter_libs" from the source AndroidManifest.xml: C:\Users\SAMSUNG\AppData\Local\Pub\Cache\hosted\pub.dev\sqlite3_flutter_libs-0.5.10\android\src\main\AndroidManifest.xml.
* 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.
Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
For more on this, please refer to https://docs.gradle.org/8.3/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
BUILD FAILED in 16s
32 actionable tasks: 28 executed, 4 up-to-date
어떻게 적용하는 것이 좋을지 의견 부탁드립니다 ㅠㅠ