I'm trying to add support for Android API level 33 but When I target Android API Level 33 and try to create build it show this error, It works fine if Build with Android API level 32 without doing any changes..
Admob Version: 7.4.0
Configure project :launcher
WARNING: The option setting 'android.enableR8=false' is deprecated.
It will be removed in version 5.0 of the Android Gradle plugin.
You will no longer be able to disable R8
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preBuild UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:preBuild UP-TO-DATE
> Task :launcher:preBuild UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:preReleaseBuild UP-TO-DATE
> Task :launcher:extractProguardFiles UP-TO-DATE
> Task :launcher:preReleaseBuild UP-TO-DATE
> Task :unityLibrary:compileReleaseAidl NO-SOURCE
> Task :unityLibrary:packageReleaseRenderscript NO-SOURCE
> Task :launcher:generateReleaseBuildConfig UP-TO-DATE
> Task :launcher:compileReleaseAidl NO-SOURCE
> Task :launcher:compileReleaseRenderscript NO-SOURCE
> Task :launcher:javaPreCompileRelease UP-TO-DATE
> Task :launcher:generateReleaseResValues UP-TO-DATE
> Task :launcher:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseRenderscript NO-SOURCE
> Task :unityLibrary:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResValues UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseResources UP-TO-DATE
> Task :unityLibrary:packageReleaseResources UP-TO-DATE
> Task :launcher:createReleaseCompatibleScreenManifests UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseResources UP-TO-DATE
> Task :launcher:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:extractDeepLinksRelease UP-TO-DATE
> Task :unityLibrary:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:parseReleaseLocalResources UP-TO-DATE
> Task :unityLibrary:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseManifest UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:parseReleaseLocalResources UP-TO-DATE
> Task :launcher:mergeReleaseResources UP-TO-DATE
> Task :launcher:processReleaseManifest UP-TO-DATE
> Task :launcher:prepareLintJar UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseRFile UP-TO-DATE
> Task :unityLibrary:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseLibraryResources UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseBuildConfig UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:javaPreCompileRelease UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibCompileToJarRelease UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:prepareLintJarForPublish UP-TO-DATE
> Task :unityLibrary:generateReleaseRFile UP-TO-DATE
> Task :launcher:processReleaseResources UP-TO-DATE
> Task :launcher:checkReleaseDuplicateClasses UP-TO-DATE
> Task :unityLibrary:compileReleaseJavaWithJavac UP-TO-DATE
> Task :unityLibrary:bundleLibCompileToJarRelease UP-TO-DATE
> Task :launcher:compileReleaseJavaWithJavac UP-TO-DATE
> Task :launcher:compileReleaseSources UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:exportReleaseConsumerProguardFiles UP-TO-DATE
> Task :unityLibrary:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :unityLibrary:exportReleaseConsumerProguardFiles UP-TO-DATE
> Task :unityLibrary:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:processReleaseJavaRes NO-SOURCE
> Task :unityLibrary:bundleLibResRelease NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibResRelease NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :unityLibrary:bundleLibRuntimeToJarRelease UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:mergeReleaseShaders UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:compileReleaseShaders NO-SOURCE
> Task :unityLibrary:generateReleaseAssets UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:packageReleaseAssets UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:mergeReleaseNativeLibs UP-TO-DATE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:stripReleaseDebugSymbols NO-SOURCE
> Task :unityLibrary:GoogleMobileAdsPlugin.androidlib:copyReleaseJniLibsProjectOnly UP-TO-DATE
> Task :unityLibrary:packageReleaseAssets
> Task :unityLibrary:mergeReleaseJniLibFolders UP-TO-DATE
> Task :unityLibrary:mergeReleaseNativeLibs UP-TO-DATE
> Task :unityLibrary:stripReleaseDebugSymbols UP-TO-DATE
> Task :unityLibrary:copyReleaseJniLibsProjectOnly UP-TO-DATE
> Task :launcher:lintVitalRelease
> Task :launcher:mergeReleaseGeneratedProguardFiles UP-TO-DATE
> Task :launcher:processReleaseJavaRes NO-SOURCE
> Task :launcher:mergeReleaseJavaResource UP-TO-DATE
I am on a MacBook Running Android Studio
Under a React Native Project, the TypeScript tests run fine with jest but when we added JUnit tests under a Native Java Module, while it works individually or by folder as long as they are in androidTest, whenever we run "All Tests" in Android Studio, or when they are run under test we get a false fail. The error is always the same.
Running the same tests under Android Tests works
when in android/app/src/androidTest/.../
gives
Yet running the same tests under Tests fails
when I copy them into android/app/src/test/.../
or leave them in androidTest and run all tests
it always gives
So, all these unit tests live happily in android/app/src/androidTest/.../ and do not like being in android/app/src/test/.../ (when I copy/paste them to the android/app/src/test/.../ path the androidTest passes in the ide, but the test version of the same test doesn't pass) But the bad part is the fail is the same: They fail under "Run 'All Tests'" when in /androidTest and give the same reason as if they are wrongly in /test. i.e. "Run 'All Tests'" and "Run unit tests in ''" both fail for the same reason
this is the error dump I get
Executing tasks: [:app:testDebugUnitTest] in project
/Users/local/some/domain/my-app/android
> Configure project :
Repository BintrayJCenter (https://jcenter.bintray.com/) removed, using https://pkgs.dev.azure.com/somedomain/O-Common/maven/v1
Repository MavenRepo (https://repo.maven.apache.org/maven2/) removed, using https://pkgs.dev.azure.com/somedomain/O-Common/maven/v1
Repository Google (https://dl.google.com/dl/android/maven2/) removed, using https://pkgs.dev.azure.com/somedomain/O-Common/maven/v1
...
> Task :app:generatePackageList
> Task :app:preBuild
> Task :app:preDebugBuild
> Task :react-native-community_art:preBuild UP-TO-DATE
> Task :react-native-community_art:preDebugBuild UP-TO-DATE
> Task :react-native-community_art:compileDebugAidl NO-SOURCE
> Task :react-native-community_masked-view:preBuild UP-TO-DATE
> Task :react-native-community_masked-view:preDebugBuild UP-TO-DATE
> Task :react-native-community_masked-view:compileDebugAidl NO-SOURCE
> Task :react-native-cookies:preBuild UP-TO-DATE
> Task :react-native-cookies:preDebugBuild UP-TO-DATE
> Task :react-native-cookies:compileDebugAidl NO-SOURCE
> Task :react-native-datawedge-intents:preBuild UP-TO-DATE
> Task :react-native-datawedge-intents:preDebugBuild UP-TO-DATE
> Task :react-native-datawedge-intents:compileDebugAidl NO-SOURCE
> Task :react-native-device-info:preBuild UP-TO-DATE
> Task :react-native-device-info:preDebugBuild UP-TO-DATE
> Task :react-native-device-info:compileDebugAidl NO-SOURCE
> Task :react-native-exception-handler:preBuild UP-TO-DATE
> Task :react-native-exception-handler:preDebugBuild UP-TO-DATE
> Task :react-native-exception-handler:compileDebugAidl NO-SOURCE
> Task :react-native-gesture-handler:preBuild UP-TO-DATE
> Task :react-native-gesture-handler:preDebugBuild UP-TO-DATE
> Task :react-native-gesture-handler:compileDebugAidl NO-SOURCE
> Task :react-native-safe-area-context:preBuild UP-TO-DATE
> Task :react-native-safe-area-context:preDebugBuild UP-TO-DATE
> Task :react-native-safe-area-context:compileDebugAidl NO-SOURCE
> Task :react-native-screens:preBuild UP-TO-DATE
> Task :react-native-screens:preDebugBuild UP-TO-DATE
> Task :react-native-screens:compileDebugAidl NO-SOURCE
> Task :react-native-sound:preBuild UP-TO-DATE
> Task :react-native-sound:preDebugBuild UP-TO-DATE
> Task :react-native-sound:compileDebugAidl NO-SOURCE
> Task :react-native-svg:preBuild UP-TO-DATE
> Task :react-native-svg:preDebugBuild UP-TO-DATE
> Task :react-native-svg:compileDebugAidl NO-SOURCE
> Task :react-native-vector-icons:preBuild UP-TO-DATE
> Task :react-native-vector-icons:preDebugBuild UP-TO-DATE
> Task :react-native-vector-icons:compileDebugAidl NO-SOURCE
> Task :react-native-version-number:preBuild UP-TO-DATE
> Task :react-native-version-number:preDebugBuild UP-TO-DATE
> Task :react-native-version-number:compileDebugAidl NO-SOURCE
> Task :app:compileDebugAidl NO-SOURCE
> Task :react-native-community_art:packageDebugRenderscript NO-SOURCE
> Task :react-native-community_masked-view:packageDebugRenderscript NO-SOURCE
> Task :react-native-cookies:packageDebugRenderscript NO-SOURCE
> Task :react-native-datawedge-intents:packageDebugRenderscript NO-SOURCE
> Task :react-native-device-info:packageDebugRenderscript NO-SOURCE
> Task :react-native-exception-handler:packageDebugRenderscript NO-SOURCE
> Task :react-native-gesture-handler:packageDebugRenderscript NO-SOURCE
> Task :react-native-safe-area-context:packageDebugRenderscript NO-SOURCE
> Task :react-native-screens:packageDebugRenderscript NO-SOURCE
> Task :react-native-sound:packageDebugRenderscript NO-SOURCE
> Task :react-native-svg:packageDebugRenderscript NO-SOURCE
> Task :react-native-vector-icons:packageDebugRenderscript NO-SOURCE
> Task :react-native-version-number:packageDebugRenderscript NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig UP-TO-DATE
> Task :app:javaPreCompileDebug UP-TO-DATE
> Task :react-native-community_art:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-community_masked-view:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-cookies:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-datawedge-intents:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-device-info:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-exception-handler:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-gesture-handler:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-safe-area-context:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-screens:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-sound:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-svg:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-vector-icons:writeDebugAarMetadata UP-TO-DATE
> Task :react-native-version-number:writeDebugAarMetadata UP-TO-DATE
> Task :app:checkDebugAarMetadata UP-TO-DATE
> Task :app:bundleDebugJsAndAssets
Execution optimizations have been disabled for task ':app:bundleDebugJsAndAssets' to ensure correctness due to the following reasons:
- Gradle detected a problem with the following location: '/Users/local/some/domain/my-app'. Reason: Task ':app:bundleDebugJsAndAssets' uses this output of task ':react-native-version-number:writeDebugAarMetadata' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
warn Package lint-staged has been ignored because it contains invalid configuration. Reason: Package subpath './package.json' is not defined by "exports" in /Users/local/some/domain/my-app/node_modules/lint-staged/package.json
warning: the transform cache was reset.
Welcome to Metro!
Fast - Scalable - Integrated
info Writing bundle output to:, /Users/local/some/domain/my-app/android/app/build/generated/assets/react/debug/index.android.bundle
info Writing sourcemap output to:, /Users/local/some/domain/my-app/android/app/build/generated/sourcemaps/react/debug/index.android.bundle.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 36 asset files
info Done copying assets
> Task :app:mergeDebugShaders UP-TO-DATE
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :react-native-community_art:mergeDebugShaders UP-TO-DATE
> Task :react-native-community_art:compileDebugShaders NO-SOURCE
> Task :react-native-community_art:generateDebugAssets UP-TO-DATE
> Task :react-native-community_art:packageDebugAssets UP-TO-DATE
> Task :react-native-community_masked-view:mergeDebugShaders UP-TO-DATE
> Task :react-native-community_masked-view:compileDebugShaders NO-SOURCE
> Task :react-native-community_masked-view:generateDebugAssets UP-TO-DATE
> Task :react-native-community_masked-view:packageDebugAssets UP-TO-DATE
> Task :react-native-cookies:mergeDebugShaders UP-TO-DATE
> Task :react-native-cookies:compileDebugShaders NO-SOURCE
> Task :react-native-cookies:generateDebugAssets UP-TO-DATE
> Task :react-native-cookies:packageDebugAssets UP-TO-DATE
> Task :react-native-datawedge-intents:mergeDebugShaders UP-TO-DATE
> Task :react-native-datawedge-intents:compileDebugShaders NO-SOURCE
> Task :react-native-datawedge-intents:generateDebugAssets UP-TO-DATE
> Task :react-native-datawedge-intents:packageDebugAssets UP-TO-DATE
> Task :react-native-device-info:mergeDebugShaders UP-TO-DATE
> Task :react-native-device-info:compileDebugShaders NO-SOURCE
> Task :react-native-device-info:generateDebugAssets UP-TO-DATE
> Task :react-native-device-info:packageDebugAssets UP-TO-DATE
> Task :react-native-exception-handler:mergeDebugShaders UP-TO-DATE
> Task :react-native-exception-handler:compileDebugShaders NO-SOURCE
> Task :react-native-exception-handler:generateDebugAssets UP-TO-DATE
> Task :react-native-exception-handler:packageDebugAssets UP-TO-DATE
> Task :react-native-gesture-handler:mergeDebugShaders UP-TO-DATE
> Task :react-native-gesture-handler:compileDebugShaders NO-SOURCE
> Task :react-native-gesture-handler:generateDebugAssets UP-TO-DATE
> Task :react-native-gesture-handler:packageDebugAssets UP-TO-DATE
> Task :react-native-safe-area-context:mergeDebugShaders UP-TO-DATE
> Task :react-native-safe-area-context:compileDebugShaders NO-SOURCE
> Task :react-native-safe-area-context:generateDebugAssets UP-TO-DATE
> Task :react-native-safe-area-context:packageDebugAssets UP-TO-DATE
> Task :react-native-screens:mergeDebugShaders UP-TO-DATE
> Task :react-native-screens:compileDebugShaders NO-SOURCE
> Task :react-native-screens:generateDebugAssets UP-TO-DATE
> Task :react-native-screens:packageDebugAssets UP-TO-DATE
> Task :react-native-sound:mergeDebugShaders UP-TO-DATE
> Task :react-native-sound:compileDebugShaders NO-SOURCE
> Task :react-native-sound:generateDebugAssets UP-TO-DATE
> Task :react-native-sound:packageDebugAssets UP-TO-DATE
> Task :react-native-svg:mergeDebugShaders UP-TO-DATE
> Task :react-native-svg:compileDebugShaders NO-SOURCE
> Task :react-native-svg:generateDebugAssets UP-TO-DATE
> Task :react-native-svg:packageDebugAssets UP-TO-DATE
> Task :react-native-vector-icons:mergeDebugShaders UP-TO-DATE
- Gradle detected a problem with the following location: '/Users/local/some/domain/my-app/android/app/build/intermediates/navigation_json/debug/navigation.json'. Reason: Task ':app:processDebugMainManifest' uses this output of task ':app:copyDebugBundledJs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
- Gradle detected a problem with the following location: '/Users/local/some/domain/my-app/android/app/build/intermediates/navigation_json/debug/navigation.json'. Reason: Task ':app:processDebugMainManifest' uses this output of task ':app:copyDebugReactNativeVectorIconFonts' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
/Users/local/some/domain/my-app/android/app/src/debug/AndroidManifest.xml:7:5-12:19 Warning:
application#android:allowBackup was tagged at AndroidManifest.xml:7 to replace other declarations but no other declaration present
> Task :app:processDebugManifest
Execution optimizations have been disabled for task ':app:processDebugManifest' to ensure correctness due to the following reasons:
- Gradle detected a problem with the following location: '/Users/local/some/domain/my-app/android/app/build/intermediates/compatible_screen_manifest/debug'. Reason: Task ':app:processDebugManifest' uses this output of task ':app:copyDebugBundledJs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
- Gradle detected a problem with the following location: '/Users/local/some/domain/my-app/android/app/build/intermediates/compatible_screen_manifest/debug'. Reason: Task ':app:processDebugManifest' uses this output of task ':app:copyDebugReactNativeVectorIconFonts' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
- Gradle detected a problem with the following location: '/Users/local/some/domain/my-app/android/app/build/intermediates/merged_manifest/debug/AndroidManifest.xml'. Reason: Task ':app:processDebugManifest' uses this output of task ':app:copyDebugBundledJs' without declaring an explicit or implicit dependency. This can lead to incorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.2/userguide/validation_problems.html#implicit_dependency for more details about this problem.
> Task :react-native-svg:processDebugJavaRes NO-SOURCE
> Task :react-native-svg:bundleLibResDebug NO-SOURCE
> Task :react-native-svg:bundleLibRuntimeToJarDebug UP-TO-DATE
> Task :react-native-vector-icons:processDebugJavaRes NO-SOURCE
> Task :react-native-vector-icons:bundleLibResDebug NO-SOURCE
> Task :react-native-vector-icons:bundleLibRuntimeToJarDebug UP-TO-DATE
> Task :react-native-version-number:processDebugJavaRes NO-SOURCE
> Task :react-native-version-number:bundleLibResDebug NO-SOURCE
> Task :react-native-version-number:bundleLibRuntimeToJarDebug UP-TO-DATE
> Task :app:processDebugResources
> Task :app:compileDebugJavaWithJavac UP-TO-DATE
> Task :app:bundleDebugClasses UP-TO-DATE
> Task :app:compileDebugUnitTestJavaWithJavac UP-TO-DATE
> Task :app:packageDebugUnitTestForUnitTest UP-TO-DATE
> Task :app:generateDebugUnitTestConfig UP-TO-DATE
> Task :app:testDebugUnitTest
Called loadFromPath(/system/framework/framework-res.apk, true); mode=binary sdk=28
java.lang.NullPointerException
at java.base/java.io.File.<init>(File.java:278)
at com.facebook.soloader.ApplicationSoSource.<init>(ApplicationSoSource.java:46)
at com.facebook.soloader.SoLoader.initSoSources(SoLoader.java:285)
at com.facebook.soloader.SoLoader.init(SoLoader.java:207)
at com.facebook.soloader.SoLoader.init(SoLoader.java:189)
at com.facebook.soloader.SoLoader.init(SoLoader.java:217)
at uk.some.domain.myapp.MainApplication.onCreate(MainApplication.java:78)
at org.robolectric.android.internal.AndroidTestEnvironment.lambda$installAndCreateApplication$0(AndroidTestEnvironment.java:288)
at org.robolectric.util.PerfStatsCollector.measure(PerfStatsCollector.java:75)
at org.robolectric.android.internal.AndroidTestEnvironment.installAndCreateApplication(AndroidTestEnvironment.java:288)
at org.robolectric.android.internal.AndroidTestEnvironment.setUpApplicationState(AndroidTestEnvironment.java:171)
at org.robolectric.RobolectricTestRunner.beforeTest(RobolectricTestRunner.java:319)
at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$0(SandboxTestRunner.java:254)
at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:89)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
java.lang.NullPointerException
at java.base/java.io.File.<init>(File.java:278)
at com.facebook.soloader.ApplicationSoSource.<init>(ApplicationSoSource.java:46)
at com.facebook.soloader.SoLoader.initSoSources(SoLoader.java:285)
at com.facebook.soloader.SoLoader.init(SoLoader.java:207)
at com.facebook.soloader.SoLoader.init(SoLoader.java:189)
at com.facebook.soloader.SoLoader.init(SoLoader.java:217)
at uk.some.domain.myapp.MainApplication.onCreate(MainApplication.java:78)
at org.robolectric.android.internal.AndroidTestEnvironment.lambda$installAndCreateApplication$0(AndroidTestEnvironment.java:288)
at org.robolectric.util.PerfStatsCollector.measure(PerfStatsCollector.java:75)
at org.robolectric.android.internal.AndroidTestEnvironment.installAndCreateApplication(AndroidTestEnvironment.java:288)
at org.robolectric.android.internal.AndroidTestEnvironment.setUpApplicationState(AndroidTestEnvironment.java:171)
at org.robolectric.RobolectricTestRunner.beforeTest(RobolectricTestRunner.java:319)
at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$0(SandboxTestRunner.java:254)
at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:89)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
java.lang.NullPointerException
at java.base/java.io.File.<init>(File.java:278)
at com.facebook.soloader.ApplicationSoSource.<init>(ApplicationSoSource.java:46)
at com.facebook.soloader.SoLoader.initSoSources(SoLoader.java:285)
at com.facebook.soloader.SoLoader.init(SoLoader.java:207)
at com.facebook.soloader.SoLoader.init(SoLoader.java:189)
at com.facebook.soloader.SoLoader.init(SoLoader.java:217)
at uk.some.domain.myapp.MainApplication.onCreate(MainApplication.java:78)
at org.robolectric.android.internal.AndroidTestEnvironment.lambda$installAndCreateApplication$0(AndroidTestEnvironment.java:288)
at org.robolectric.util.PerfStatsCollector.measure(PerfStatsCollector.java:75)
at org.robolectric.android.internal.AndroidTestEnvironment.installAndCreateApplication(AndroidTestEnvironment.java:288)
at org.robolectric.android.internal.AndroidTestEnvironment.setUpApplicationState(AndroidTestEnvironment.java:171)
at org.robolectric.RobolectricTestRunner.beforeTest(RobolectricTestRunner.java:319)
at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$0(SandboxTestRunner.java:254)
at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:89)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
java.lang.NullPointerException
at java.base/java.io.File.<init>(File.java:278)
at com.facebook.soloader.ApplicationSoSource.<init>(ApplicationSoSource.java:46)
at com.facebook.soloader.SoLoader.initSoSources(SoLoader.java:285)
at com.facebook.soloader.SoLoader.init(SoLoader.java:207)
at com.facebook.soloader.SoLoader.init(SoLoader.java:189)
at com.facebook.soloader.SoLoader.init(SoLoader.java:217)
at uk.some.domain.myapp.MainApplication.onCreate(MainApplication.java:78)
at org.robolectric.android.internal.AndroidTestEnvironment.lambda$installAndCreateApplication$0(AndroidTestEnvironment.java:288)
at org.robolectric.util.PerfStatsCollector.measure(PerfStatsCollector.java:75)
at org.robolectric.android.internal.AndroidTestEnvironment.installAndCreateApplication(AndroidTestEnvironment.java:288)
at org.robolectric.android.internal.AndroidTestEnvironment.setUpApplicationState(AndroidTestEnvironment.java:171)
at org.robolectric.RobolectricTestRunner.beforeTest(RobolectricTestRunner.java:319)
at org.robolectric.internal.SandboxTestRunner$2.lambda$evaluate$0(SandboxTestRunner.java:254)
at org.robolectric.internal.bytecode.Sandbox.lambda$runOnMainThread$0(Sandbox.java:89)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
uk.some.domain.myapp.HubTest > testSendEvent_Object FAILED
java.lang.NullPointerException at File.java:278
uk.some.domain.myapp.HubTest > testSendEvent_String FAILED
java.lang.NullPointerException at File.java:278
uk.some.domain.myapp.HubTest > testBridgeHelloWorld FAILED
java.lang.NullPointerException at File.java:278
uk.some.domain.myapp.HubTest > testResetScreenTimer FAILED
java.lang.NullPointerException at File.java:278
4 tests completed, 4 failed
> Task :app:testDebugUnitTest FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:testDebugUnitTest'.
> There were failing tests. See the report at: file:///Users/local/some/domain/my-app/android/app/build/reports/tests/testDebugUnitTest/index.html
* 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 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.2/userguide/command_line_interface.html#sec:command_line_warnings
Execution optimizations have been disabled for 4 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.
BUILD FAILED in 44s
220 actionable tasks: 7 executed, 213 up-to-date
13:20:03: Task execution finished ':app:testDebugUnitTest --tests "uk.some.domain.myapp.*"'.
For CI reasons it needs to run under "All Tasks" it appears to be emulator related, can anyone shed light on the cause?
I think this is related to Unit VS Instrumentation tests.
Unit is made for single method / small part of code testing on the local machine (Test folder).
Instrumentation tests on the other hand are made for a more complex testing of features, directly on an emulator (AndroidTest folder).
Possible Solution :
First, I would check every test and ensure they have to run on machine or in emulator, and set them in the proper directory.
Then, you 'll have to run an emulator in your CI to make all your instrumentation tests run properly.
Check testing fundamentals for more informations
I'm adding Kotlin to my existing Java app (I first have to say I've already done it to another of my apps with no problems at all) and after following all required initial steps I always get an "Internal error: unexpected lint return value -1" with no error details when building.
This is the relevant part of my project's grade file:
buildscript {
ext.kotlin_version = '1.7.0'
repositories {
jcenter()
mavenCentral()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
...
}
This is the relevant parts of my module's build .gradle:
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
android {
...
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
}
I've tried all recommendations found here: How to Use Kotlin in an Existing Android App? to no avail.
I've also tried clearing all the cache with:
rm -rf ~/.gradle/caches/
to no avail also.
What can I do? I'm not even getting details about the problem.
Edit 1:
Now I was able to see the complete build log:
Executing tasks: [:DTO:clean, :Core:clean, :Repository:clean, :app:clean, :Security:clean, :Services:clean, :Global:clean, :Background:clean, :Common:clean, :Exception:clean, :Core:assembleDebug, :DTO:assembleDebug, :Repository:assembleDebug, :Global:assembleDebug, :app:assembleDebug, :Security:assembleDebug, :Services:assembleDebug, :Exception:assembleDebug, :Background:assembleDebug, :Common:assembleDebug] in project /Users/JohnDoe/StudioProjects/android_myapp
Starting Gradle Daemon...
Gradle Daemon started in 493 ms
> Configure project :
The RepositoryHandler.jcenter() method has been deprecated. This is scheduled to be removed in Gradle 8.0. JFrog announced JCenter's sunset in February 2021. Use mavenCentral() instead. Consult the upgrading guide for further information: https://docs.gradle.org/7.3.3/userguide/upgrading_version_6.html#jcenter_deprecation
at build_e2801rmseiq7s1of4dy7020et$_run_closure1$_closure2.doCall(/Users/JohnDoe/StudioProjects/android_myapp/build.gradle:5)
(Run with --stacktrace to get the full stack trace of this deprecation warning.)
> Task :DTO:clean
> Task :Core:clean
> Task :Repository:clean
> Task :app:clean
> Task :Security:clean
> Task :Services:clean
> Task :Global:clean
> Task :Background:clean
> Task :Common:clean
> Task :Exception:clean
> Task :Core:preBuild UP-TO-DATE
> Task :Core:preDebugBuild UP-TO-DATE
> Task :Core:compileDebugAidl NO-SOURCE
> Task :Core:mergeDebugJniLibFolders
> Task :Core:mergeDebugNativeLibs NO-SOURCE
> Task :Core:stripDebugDebugSymbols NO-SOURCE
> Task :Core:compileDebugRenderscript NO-SOURCE
> Task :Core:copyDebugJniLibsProjectAndLocalJars
> Task :Core:generateDebugBuildConfig
> Task :Core:generateDebugResValues
> Task :Core:generateDebugResources
> Task :Core:packageDebugResources
> Task :Core:javaPreCompileDebug
> Task :Core:mergeDebugShaders
> Task :Core:compileDebugShaders NO-SOURCE
> Task :Core:generateDebugAssets UP-TO-DATE
> Task :Core:packageDebugAssets
> Task :Core:packageDebugRenderscript NO-SOURCE
> Task :Core:prepareDebugArtProfile UP-TO-DATE
> Task :Core:prepareLintJarForPublish UP-TO-DATE
> Task :Core:parseDebugLocalResources
> Task :Core:processDebugJavaRes NO-SOURCE
> Task :DTO:preBuild UP-TO-DATE
> Task :DTO:preDebugBuild UP-TO-DATE
> Task :Core:writeDebugAarMetadata
> Task :DTO:compileDebugAidl NO-SOURCE
> Task :DTO:mergeDebugJniLibFolders
> Task :DTO:mergeDebugNativeLibs NO-SOURCE
> Task :DTO:stripDebugDebugSymbols NO-SOURCE
> Task :DTO:copyDebugJniLibsProjectAndLocalJars
> Task :DTO:compileDebugRenderscript NO-SOURCE
> Task :DTO:generateDebugBuildConfig
> Task :DTO:generateDebugResValues
> Task :DTO:generateDebugResources
> Task :Core:processDebugManifest
> Task :DTO:packageDebugResources
> Task :DTO:parseDebugLocalResources
> Task :DTO:processDebugManifest
> Task :DTO:javaPreCompileDebug
> Task :DTO:mergeDebugShaders
> Task :DTO:compileDebugShaders NO-SOURCE
> Task :DTO:generateDebugAssets UP-TO-DATE
> Task :DTO:packageDebugAssets
> Task :DTO:packageDebugRenderscript NO-SOURCE
> Task :DTO:prepareDebugArtProfile UP-TO-DATE
> Task :DTO:prepareLintJarForPublish UP-TO-DATE
> Task :DTO:processDebugJavaRes NO-SOURCE
> Task :Common:preBuild UP-TO-DATE
> Task :Common:preDebugBuild UP-TO-DATE
> Task :Global:preBuild UP-TO-DATE
> Task :Global:preDebugBuild UP-TO-DATE
> Task :DTO:writeDebugAarMetadata
> Task :Global:compileDebugAidl NO-SOURCE
> Task :Common:compileDebugAidl NO-SOURCE
> Task :Repository:preBuild UP-TO-DATE
> Task :Repository:preDebugBuild UP-TO-DATE
> Task :Repository:compileDebugAidl NO-SOURCE
> Task :Repository:mergeDebugJniLibFolders
> Task :Repository:mergeDebugNativeLibs NO-SOURCE
> Task :Repository:stripDebugDebugSymbols NO-SOURCE
> Task :Repository:copyDebugJniLibsProjectAndLocalJars
> Task :Global:packageDebugRenderscript NO-SOURCE
> Task :Common:compileDebugRenderscript NO-SOURCE
> Task :Common:generateDebugBuildConfig
> Task :Common:generateDebugResValues
> Task :Common:generateDebugResources
> Task :Common:packageDebugResources
> Task :Common:parseDebugLocalResources
> Task :Global:compileDebugRenderscript NO-SOURCE
> Task :Core:generateDebugRFile
> Task :Global:generateDebugResValues
> Task :Global:generateDebugResources
> Task :Common:processDebugManifest
> Task :Global:packageDebugResources
> Task :Global:parseDebugLocalResources
> Task :Global:generateDebugBuildConfig
> Task :Global:javaPreCompileDebug
> Task :Global:processDebugManifest
> Task :Common:javaPreCompileDebug
> Task :Common:packageDebugRenderscript NO-SOURCE
> Task :Repository:compileDebugRenderscript NO-SOURCE
> Task :Repository:generateDebugBuildConfig
> Task :Repository:generateDebugResValues
> Task :Repository:generateDebugResources
> Task :Repository:packageDebugResources
> Task :Repository:parseDebugLocalResources
> Task :Core:compileDebugKotlin NO-SOURCE
> Task :Repository:processDebugManifest
> Task :Core:extractDebugAnnotations FAILED
/Users/JohnDoe/StudioProjects/android_myapp/Core/build/tmp/kotlin-classes/debug does not exist
> Task :Core:compileDebugJavaWithJavac
> Task :Core:mergeDebugGeneratedProguardFiles UP-TO-DATE
> Task :Core:mergeDebugConsumerProguardFiles
> Task :Core:bundleLibCompileToJarDebug
> Task :Repository:javaPreCompileDebug
> Task :DTO:generateDebugRFile
> Task :Repository:mergeDebugShaders
> Task :Repository:compileDebugShaders NO-SOURCE
> Task :Repository:generateDebugAssets UP-TO-DATE
> Task :Repository:packageDebugAssets
> Task :Repository:packageDebugRenderscript NO-SOURCE
> Task :Repository:prepareDebugArtProfile UP-TO-DATE
> Task :Repository:prepareLintJarForPublish UP-TO-DATE
> Task :Repository:processDebugJavaRes NO-SOURCE
> Task :Repository:writeDebugAarMetadata
> Task :Core:mergeDebugJavaResource
> Task :Global:mergeDebugJniLibFolders
> Task :Global:mergeDebugNativeLibs NO-SOURCE
> Task :Global:stripDebugDebugSymbols NO-SOURCE
> Task :Global:copyDebugJniLibsProjectAndLocalJars
> Task :Global:mergeDebugShaders
> Task :Global:compileDebugShaders NO-SOURCE
> Task :Global:generateDebugAssets UP-TO-DATE
> Task :Global:packageDebugAssets
> Task :Global:prepareDebugArtProfile UP-TO-DATE
> Task :Global:prepareLintJarForPublish UP-TO-DATE
> Task :Global:processDebugJavaRes NO-SOURCE
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :Global:writeDebugAarMetadata
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :Background:preBuild UP-TO-DATE
> Task :Background:preDebugBuild UP-TO-DATE
> Task :Services:preBuild UP-TO-DATE
> Task :Services:preDebugBuild UP-TO-DATE
> Task :Services:compileDebugAidl NO-SOURCE
> Task :Background:compileDebugAidl NO-SOURCE
> Task :app:compileDebugAidl NO-SOURCE
> Task :Background:packageDebugRenderscript NO-SOURCE
> Task :Services:packageDebugRenderscript NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:dataBindingMergeDependencyArtifactsDebug
> Task :app:generateDebugResValues
> Task :app:generateDebugResources
> Task :app:dataBindingMergeGenClassesDebug
> Task :Background:compileDebugRenderscript NO-SOURCE
> Task :Background:generateDebugResValues
> Task :Background:generateDebugResources
> Task :Background:packageDebugResources
> Task :Services:compileDebugRenderscript NO-SOURCE
> Task :Services:generateDebugResValues
> Task :Services:generateDebugResources
> Task :Services:packageDebugResources
> Task :DTO:compileDebugKotlin NO-SOURCE
> Task :DTO:extractDebugAnnotations
> Task :DTO:compileDebugJavaWithJavac
> Task :DTO:mergeDebugGeneratedProguardFiles UP-TO-DATE
> Task :DTO:mergeDebugConsumerProguardFiles
> Task :DTO:mergeDebugJavaResource
> Task :DTO:syncDebugLibJars
> Task :Global:generateDebugRFile
> Task :DTO:bundleDebugAar
> Task :DTO:assembleDebug
> Task :DTO:bundleLibCompileToJarDebug
> Task :app:dataBindingTriggerDebug
> Task :app:generateDebugBuildConfig
> Task :Background:writeDebugAarMetadata
> Task :Common:writeDebugAarMetadata
> Task :Services:writeDebugAarMetadata
> Task :app:createDebugCompatibleScreenManifests
> Task :app:extractDeepLinksDebug
> Task :Background:extractDeepLinksDebug
> Task :Common:extractDeepLinksDebug
> Task :Core:extractDeepLinksDebug
> Task :DTO:extractDeepLinksDebug
> Task :Global:extractDeepLinksDebug
> Task :Background:processDebugManifest
> Task :Repository:extractDeepLinksDebug
> Task :Services:extractDeepLinksDebug
> Task :Services:processDebugManifest
> Task :Background:compileDebugLibraryResources
> Task :Background:parseDebugLocalResources
> Task :Services:parseDebugLocalResources
> Task :Common:compileDebugLibraryResources
> Task :Core:compileDebugLibraryResources
> Task :DTO:compileDebugLibraryResources
> Task :Global:compileDebugLibraryResources
> Task :app:processDebugMainManifest
> Task :app:processDebugManifest
> Task :Repository:compileDebugLibraryResources
> Task :Services:compileDebugLibraryResources
> Task :app:mergeDebugResources
/Users/JohnDoe/StudioProjects/android_myapp/app/src/main/res/values-zh/attrs.xml:6:4: Ignoring configuration 'zh' for <declare-styleable> tag.
/Users/JohnDoe/StudioProjects/android_myapp/app/src/main/res/values-zh/attrs.xml:2:4: Ignoring configuration 'zh' for <declare-styleable> tag.
/Users/JohnDoe/StudioProjects/android_myapp/app/src/main/res/values-zh/attrs.xml:10:4: Ignoring configuration 'zh' for <declare-styleable> tag.
/Users/JohnDoe/StudioProjects/android_myapp/app/src/main/res/values-zh/styles.xml:76:5: Ignoring configuration 'zh' for <declare-styleable> tag.
> Task :app:checkDebugAarMetadata
> Task :app:dataBindingGenBaseClassesDebug
> Task :app:mapDebugSourceSetPaths
> Task :Background:generateDebugBuildConfig
> Task :Services:generateDebugBuildConfig
> Task :Services:javaPreCompileDebug
> Task :Background:javaPreCompileDebug
> Task :app:mergeDebugShaders
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :app:javaPreCompileDebug
> Task :Background:mergeDebugShaders
> Task :Background:compileDebugShaders NO-SOURCE
> Task :Background:generateDebugAssets UP-TO-DATE
> Task :Background:packageDebugAssets
> Task :Common:mergeDebugShaders
> Task :Common:compileDebugShaders NO-SOURCE
> Task :Common:generateDebugAssets UP-TO-DATE
> Task :Common:packageDebugAssets
> Task :Services:mergeDebugShaders
> Task :Services:compileDebugShaders NO-SOURCE
> Task :Services:generateDebugAssets UP-TO-DATE
> Task :Services:packageDebugAssets
> Task :app:mergeDebugAssets
> Task :app:processDebugJavaRes NO-SOURCE
> Task :Background:processDebugJavaRes NO-SOURCE
> Task :Common:processDebugJavaRes NO-SOURCE
> Task :Core:bundleLibResDebug NO-SOURCE
> Task :DTO:bundleLibResDebug NO-SOURCE
> Task :Services:processDebugJavaRes NO-SOURCE
> Task :app:compressDebugAssets
> Task :app:checkDebugDuplicateClasses
> Task :Global:compileDebugKotlin NO-SOURCE
> Task :Common:generateDebugRFile
> Task :Global:compileDebugJavaWithJavac
> Task :Global:bundleLibCompileToJarDebug
> Task :Global:extractDebugAnnotations FAILED
/Users/JohnDoe/StudioProjects/android_myapp/Global/build/tmp/kotlin-classes/debug does not exist
> Task :Global:mergeDebugGeneratedProguardFiles UP-TO-DATE
> Task :Global:mergeDebugConsumerProguardFiles
> Task :Global:bundleLibResDebug NO-SOURCE
> Task :Global:mergeDebugJavaResource
> Task :app:processDebugManifestForPackage
> Task :app:mergeDebugJniLibFolders
> Task :DTO:bundleLibRuntimeToDirDebug
> Task :Background:mergeDebugJniLibFolders
> Task :Core:bundleLibRuntimeToDirDebug
> Task :Background:mergeDebugNativeLibs NO-SOURCE
> Task :Background:copyDebugJniLibsProjectOnly
> Task :Common:mergeDebugJniLibFolders
> Task :Common:mergeDebugNativeLibs NO-SOURCE
> Task :Common:copyDebugJniLibsProjectOnly
> Task :Core:copyDebugJniLibsProjectOnly
> Task :DTO:copyDebugJniLibsProjectOnly
> Task :Global:bundleLibRuntimeToDirDebug
> Task :Global:copyDebugJniLibsProjectOnly
> Task :Repository:copyDebugJniLibsProjectOnly
> Task :Services:mergeDebugJniLibFolders
> Task :Services:mergeDebugNativeLibs NO-SOURCE
> Task :Services:copyDebugJniLibsProjectOnly
> Task :app:validateSigningDebug
> Task :app:writeDebugAppMetadata
> Task :app:writeDebugSigningConfigVersions
> Task :Security:preBuild UP-TO-DATE
> Task :Security:preDebugBuild UP-TO-DATE
> Task :Security:compileDebugAidl NO-SOURCE
> Task :Security:mergeDebugJniLibFolders
> Task :Security:mergeDebugNativeLibs NO-SOURCE
> Task :Security:stripDebugDebugSymbols NO-SOURCE
> Task :Security:copyDebugJniLibsProjectAndLocalJars
> Task :Security:compileDebugRenderscript NO-SOURCE
> Task :Security:generateDebugBuildConfig
> Task :Security:generateDebugResValues
> Task :Security:generateDebugResources
> Task :Security:packageDebugResources
> Task :Security:parseDebugLocalResources
> Task :Common:compileDebugKotlin NO-SOURCE
> Task :Common:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :Common:bundleLibCompileToJarDebug
> Task :Common:bundleLibResDebug NO-SOURCE
> Task :Common:bundleLibRuntimeToDirDebug
> Task :Repository:generateDebugRFile
> Task :app:mergeDebugNativeLibs NO-SOURCE
> Task :app:stripDebugDebugSymbols NO-SOURCE
> Task :Security:javaPreCompileDebug
> Task :Security:mergeDebugShaders
> Task :Security:compileDebugShaders NO-SOURCE
> Task :Security:generateDebugAssets UP-TO-DATE
> Task :Security:processDebugManifest
> Task :Security:packageDebugAssets
> Task :Security:packageDebugRenderscript NO-SOURCE
> Task :Security:prepareDebugArtProfile UP-TO-DATE
> Task :Security:prepareLintJarForPublish UP-TO-DATE
> Task :Security:processDebugJavaRes NO-SOURCE
> Task :Security:generateDebugRFile
> Task :Services:stripDebugDebugSymbols NO-SOURCE
> Task :Security:writeDebugAarMetadata
> Task :Security:compileDebugKotlin NO-SOURCE
> Task :Security:extractDebugAnnotations
> Task :Security:compileDebugJavaWithJavac
> Task :Security:mergeDebugGeneratedProguardFiles UP-TO-DATE
> Task :Security:mergeDebugConsumerProguardFiles
> Task :Security:mergeDebugJavaResource
> Task :Security:syncDebugLibJars
> Task :Security:bundleDebugAar
> Task :Security:assembleDebug
> Task :Services:copyDebugJniLibsProjectAndLocalJars
> Task :Repository:compileDebugKotlin NO-SOURCE
> Task :Services:generateDebugRFile
> Task :Repository:extractDebugAnnotations
> Task :Repository:compileDebugJavaWithJavac
> Task :Repository:mergeDebugGeneratedProguardFiles UP-TO-DATE
> Task :Repository:mergeDebugConsumerProguardFiles
> Task :Repository:mergeDebugJavaResource
> Task :Repository:bundleLibCompileToJarDebug
> Task :Repository:syncDebugLibJars
> Task :Repository:bundleDebugAar
> Task :Repository:assembleDebug
> Task :Repository:bundleLibResDebug NO-SOURCE
> Task :Services:prepareDebugArtProfile UP-TO-DATE
> Task :Services:prepareLintJarForPublish UP-TO-DATE
> Task :Exception:preBuild UP-TO-DATE
> Task :Exception:preDebugBuild UP-TO-DATE
> Task :Exception:compileDebugAidl NO-SOURCE
> Task :Exception:mergeDebugJniLibFolders
> Task :Exception:mergeDebugNativeLibs NO-SOURCE
> Task :Exception:stripDebugDebugSymbols NO-SOURCE
> Task :Repository:bundleLibRuntimeToDirDebug
> Task :Exception:copyDebugJniLibsProjectAndLocalJars
> Task :app:desugarDebugFileDependencies
> Task :Background:generateDebugRFile
> Task :Services:compileDebugKotlin NO-SOURCE
> Task :Services:compileDebugJavaWithJavac
> Task :Services:bundleLibResDebug NO-SOURCE
> Task :Services:bundleLibCompileToJarDebug
> Task :Services:bundleLibRuntimeToDirDebug
> Task :Services:extractDebugAnnotations
> Task :Services:mergeDebugGeneratedProguardFiles UP-TO-DATE
> Task :Services:mergeDebugConsumerProguardFiles
> Task :Exception:compileDebugRenderscript NO-SOURCE
> Task :Services:mergeDebugJavaResource
> Task :Exception:generateDebugBuildConfig
> Task :Services:syncDebugLibJars
> Task :Services:bundleDebugAar
> Task :Services:assembleDebug
> Task :Exception:generateDebugResValues
> Task :Exception:generateDebugResources
> Task :Exception:packageDebugResources
> Task :Exception:parseDebugLocalResources
> Task :Exception:javaPreCompileDebug
> Task :Exception:mergeDebugShaders
> Task :Exception:compileDebugShaders NO-SOURCE
> Task :Exception:generateDebugAssets UP-TO-DATE
> Task :Exception:processDebugManifest
> Task :Background:compileDebugKotlin NO-SOURCE
> Task :Background:compileDebugJavaWithJavac
> Task :Background:bundleLibResDebug NO-SOURCE
> Task :Background:bundleLibCompileToJarDebug
> Task :Background:bundleLibRuntimeToDirDebug
> Task :Exception:packageDebugAssets
> Task :Exception:generateDebugRFile
> Task :Exception:packageDebugRenderscript NO-SOURCE
> Task :Exception:compileDebugKotlin NO-SOURCE
> Task :Exception:extractDebugAnnotations
> Task :Exception:compileDebugJavaWithJavac
> Task :Exception:mergeDebugGeneratedProguardFiles UP-TO-DATE
> Task :Exception:mergeDebugConsumerProguardFiles
> Task :Exception:prepareDebugArtProfile UP-TO-DATE
> Task :Exception:prepareLintJarForPublish UP-TO-DATE
> Task :Exception:processDebugJavaRes NO-SOURCE
> Task :Exception:mergeDebugJavaResource
> Task :Exception:writeDebugAarMetadata
> Task :Exception:syncDebugLibJars
> Task :Exception:bundleDebugAar
> Task :Exception:assembleDebug
> Task :Background:stripDebugDebugSymbols NO-SOURCE
> Task :Background:copyDebugJniLibsProjectAndLocalJars
> Task :Background:extractDebugAnnotations
> Task :Background:mergeDebugGeneratedProguardFiles UP-TO-DATE
> Task :Background:mergeDebugConsumerProguardFiles
> Task :Background:prepareDebugArtProfile UP-TO-DATE
> Task :Background:prepareLintJarForPublish UP-TO-DATE
> Task :app:mergeLibDexDebug
> Task :Background:mergeDebugJavaResource
> Task :Common:stripDebugDebugSymbols NO-SOURCE
> Task :Background:syncDebugLibJars
> Task :Background:bundleDebugAar
> Task :Background:assembleDebug
> Task :Common:copyDebugJniLibsProjectAndLocalJars
> Task :Common:extractDebugAnnotations
> Task :Common:mergeDebugGeneratedProguardFiles UP-TO-DATE
> Task :Common:mergeDebugConsumerProguardFiles
> Task :Common:prepareDebugArtProfile UP-TO-DATE
> Task :Common:prepareLintJarForPublish UP-TO-DATE
> Task :Common:mergeDebugJavaResource
> Task :Common:syncDebugLibJars
> Task :Common:bundleDebugAar
> Task :Common:assembleDebug
> Task :app:processDebugResources
> Task :app:compileDebugKotlin
> Task :app:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :app:dexBuilderDebug
> Task :app:mergeProjectDexDebug
> Task :app:mergeDebugJavaResource
> Task :app:mergeExtDexDebug
> Task :app:packageDebug
> Task :app:createDebugApkListingFileRedirect
> Task :app:assembleDebug
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':Core:extractDebugAnnotations'.
> A failure occurred while executing com.android.build.gradle.internal.lint.AndroidLintWorkAction
> Internal error: unexpected lint return value -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.
==============================================================================
2: Task failed with an exception.
-----------
* What went wrong:
Execution failed for task ':Global:extractDebugAnnotations'.
> A failure occurred while executing com.android.build.gradle.internal.lint.AndroidLintWorkAction
> Internal error: unexpected lint return value -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 25s
264 actionable tasks: 237 executed, 27 up-to-date
But still not being able to find much information about the "Task :extractDebugAnnotations FAILED" error.
OK, don't know why, but after removing
apply plugin: 'kotlin-android'
from my 'Core' and 'Global' modules build.gradle now the app builds successfully.
I don't know why the other modules accept the apply plugin: 'kotlin-android' in build.gradle and not 'Core' and 'Global' and I don't even know if I'll be able to use Kotlin in those two modules then, but for the moment the app builds just fine.
I had exactly the same issue. 3 of 5 modules in my project generated errors, but 2 of them worked perfectly fine. Solution was quite unusual, as it required only to create empty Kotlin file in each of the modules. It looks like after adding Kotlin plugin to the module, it has to have at least one Kotlin file or it will generate error.
I've run into a very interesting problem with my Ionic Capacitor mobile app when building in Android.
I have a very simple app that is using a Tabs component to navigate between a home page and an info page. When running the app in either the dev server on my machine or on my device using Live Reload, the app functions as normal, the tabs appear and I can navigate between the pages as expected.
The issue arises when I either run the app from Android Studio directly to my device or generate a APK/Bundle and execute it on my device. When running the app after installing the generated APK/Bundle, the tabs are not rendered and I am at a loss as to why that is? I have tried both release and debug builds and they both show the same issue.
Any help or advice is much appreciated!
Running dev with Live Reload
Running APK
Apologies as I couldn't capture the console log for this pic, but as you can see the Tabs are not rendered here.
The same happens if I simply run the app from Android.
2
package.json
{
"name": "app",
"version": "1.1.0",
"private": true,
"scripts": {
"start": "ionic cap run android -l --external",
"build:android": "ionic cap build android",
"build:ios": "ionic cap build ios",
"sync": "npx cap sync",
"repair": "ionic repair",
"test": "react-scripts test"
},
"dependencies": {
"#capacitor-community/barcode-scanner": "^2.0.1",
"#capacitor-community/screen-brightness": "^1.0.1",
"#capacitor/android": "3.4.1",
"#capacitor/core": "3.4.0",
"#capacitor/haptics": "1.1.4",
"#capacitor/ios": "3.4.0",
"#capacitor/keyboard": "1.2.1",
"#capacitor/splash-screen": "^1.2.1",
"#capacitor/status-bar": "1.0.7",
"#capacitor/storage": "^1.2.4",
"#ionic-native/dialogs": "^5.36.0",
"#ionic/react": "^6.0.0",
"#ionic/react-router": "^6.0.0",
"#types/react-redux": "^7.1.22",
"#types/redux": "^3.6.0",
"#types/redux-thunk": "^2.1.0",
"cordova-plugin-dialogs": "^2.0.2",
"ionicons": "^5.5.4",
"qrcode": "^1.5.0",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-redux": "^7.2.6",
"react-router": "^5.2.0",
"react-router-dom": "^5.2.0",
"redux": "^4.1.2",
"redux-thunk": "^2.4.1",
"web-vitals": "^0.2.4",
"workbox-background-sync": "^5.1.4",
"workbox-broadcast-update": "^5.1.4",
"workbox-cacheable-response": "^5.1.4",
"workbox-core": "^5.1.4",
"workbox-expiration": "^5.1.4",
"workbox-google-analytics": "^5.1.4",
"workbox-navigation-preload": "^5.1.4",
"workbox-precaching": "^5.1.4",
"workbox-range-requests": "^5.1.4",
"workbox-routing": "^5.1.4",
"workbox-strategies": "^5.1.4",
"workbox-streams": "^5.1.4"
},
"devDependencies": {
"#capacitor/cli": "3.4.0",
"#ionic-native/core": "^5.36.0",
"#testing-library/jest-dom": "^5.11.9",
"#testing-library/react": "^11.2.5",
"#testing-library/user-event": "^12.6.3",
"#types/jest": "^26.0.20",
"#types/node": "^12.20.42",
"#types/qrcode": "^1.4.2",
"#types/react": "^16.14.22",
"#types/react-dom": "^16.9.14",
"#types/react-router": "^5.1.11",
"#types/react-router-dom": "^5.1.7",
"#types/redux-devtools-extension": "^2.13.2",
"cordova-res": "^0.15.4",
"react-scripts": "^5.0.0",
"redux-devtools-extension": "^2.13.9",
"rxjs": "^7.5.4",
"typescript": "^4.1.3"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"description": ""
}
Ionic Version
6.16.3
Gradle Version
------------------------------------------------------------
Gradle 6.7.1
------------------------------------------------------------
Build time: 2020-11-16 17:09:24 UTC
Revision: 2972ff02f3210d2ceed2f1ea880f026acfbab5c0
Kotlin: 1.3.72
Groovy: 2.5.12
Ant: Apache Ant(TM) version 1.10.8 compiled on May 10 2020
JVM: 15.0.2 (Oracle Corporation 15.0.2+7-27)
OS: Windows 10 10.0 amd64
Android Gradle Plugin Version
4.2.0
Build Output
Executing tasks: [:app:assembleDebug] in project C:\Users\user\Documents\Projects\ionic\app\android
AGPBI: {"kind":"warning","text":"Using flatDirs should be avoided because it doesn't support any meta-data formats.\nCurrently detected usages:\n- repository flatDir used in: project ':app', project ':capacitor-cordova-android-plugins'","sources":[{}]}
AGPBI: {"kind":"warning","text":"Please remove usages of `jcenter()` Maven repository from your build scripts and migrate your build to other Maven repositories.\nThis repository is deprecated and it will be shut down in the future.\nSee http://developer.android.com/r/tools/jcenter-end-of-service for more information.\nCurrently detected usages in: root project 'android', project ':app', project ':capacitor-android', ...","sources":[{}]}
AGPBI: {"kind":"warning","text":"The specified Android SDK Build Tools version (29.0.2) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.0.\nAndroid SDK Build Tools 30.0.2 will be used.\nTo suppress this warning, remove \"buildToolsVersion '29.0.2'\" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.","sources":[{}]}
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :capacitor-android:preBuild UP-TO-DATE
> Task :capacitor-android:preDebugBuild UP-TO-DATE
> Task :capacitor-android:compileDebugAidl NO-SOURCE
> Task :capacitor-community-barcode-scanner:preBuild UP-TO-DATE
> Task :capacitor-community-barcode-scanner:preDebugBuild UP-TO-DATE
> Task :capacitor-community-barcode-scanner:compileDebugAidl NO-SOURCE
> Task :capacitor-community-screen-brightness:preBuild UP-TO-DATE
> Task :capacitor-community-screen-brightness:preDebugBuild UP-TO-DATE
> Task :capacitor-community-screen-brightness:compileDebugAidl NO-SOURCE
> Task :capacitor-cordova-android-plugins:preBuild UP-TO-DATE
> Task :capacitor-cordova-android-plugins:preDebugBuild UP-TO-DATE
> Task :capacitor-cordova-android-plugins:compileDebugAidl NO-SOURCE
> Task :capacitor-haptics:preBuild UP-TO-DATE
> Task :capacitor-haptics:preDebugBuild UP-TO-DATE
> Task :capacitor-haptics:compileDebugAidl NO-SOURCE
> Task :capacitor-keyboard:preBuild UP-TO-DATE
> Task :capacitor-keyboard:preDebugBuild UP-TO-DATE
> Task :capacitor-keyboard:compileDebugAidl NO-SOURCE
> Task :capacitor-splash-screen:preBuild UP-TO-DATE
> Task :capacitor-splash-screen:preDebugBuild UP-TO-DATE
> Task :capacitor-splash-screen:compileDebugAidl NO-SOURCE
> Task :capacitor-status-bar:preBuild UP-TO-DATE
> Task :capacitor-status-bar:preDebugBuild UP-TO-DATE
> Task :capacitor-status-bar:compileDebugAidl NO-SOURCE
> Task :capacitor-storage:preBuild UP-TO-DATE
> Task :capacitor-storage:preDebugBuild UP-TO-DATE
> Task :capacitor-storage:compileDebugAidl NO-SOURCE
> Task :app:compileDebugAidl NO-SOURCE
> Task :capacitor-android:packageDebugRenderscript NO-SOURCE
> Task :capacitor-community-barcode-scanner:packageDebugRenderscript NO-SOURCE
> Task :capacitor-community-screen-brightness:packageDebugRenderscript NO-SOURCE
> Task :capacitor-cordova-android-plugins:packageDebugRenderscript NO-SOURCE
> Task :capacitor-haptics:packageDebugRenderscript NO-SOURCE
> Task :capacitor-keyboard:packageDebugRenderscript NO-SOURCE
> Task :capacitor-splash-screen:packageDebugRenderscript NO-SOURCE
> Task :capacitor-status-bar:packageDebugRenderscript NO-SOURCE
> Task :capacitor-storage:packageDebugRenderscript NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig UP-TO-DATE
> Task :app:javaPreCompileDebug UP-TO-DATE
> Task :capacitor-android:writeDebugAarMetadata UP-TO-DATE
> Task :capacitor-community-barcode-scanner:writeDebugAarMetadata UP-TO-DATE
> Task :capacitor-community-screen-brightness:writeDebugAarMetadata UP-TO-DATE
> Task :capacitor-cordova-android-plugins:writeDebugAarMetadata UP-TO-DATE
> Task :capacitor-haptics:writeDebugAarMetadata UP-TO-DATE
> Task :capacitor-keyboard:writeDebugAarMetadata UP-TO-DATE
> Task :capacitor-splash-screen:writeDebugAarMetadata UP-TO-DATE
> Task :capacitor-status-bar:writeDebugAarMetadata UP-TO-DATE
> Task :capacitor-storage:writeDebugAarMetadata UP-TO-DATE
> Task :app:checkDebugAarMetadata UP-TO-DATE
> Task :app:generateDebugResValues UP-TO-DATE
> Task :app:generateDebugResources UP-TO-DATE
> Task :capacitor-android:compileDebugRenderscript NO-SOURCE
> Task :capacitor-android:generateDebugResValues UP-TO-DATE
> Task :capacitor-android:generateDebugResources UP-TO-DATE
> Task :capacitor-android:packageDebugResources UP-TO-DATE
> Task :capacitor-community-barcode-scanner:compileDebugRenderscript NO-SOURCE
> Task :capacitor-community-barcode-scanner:generateDebugResValues UP-TO-DATE
> Task :capacitor-community-barcode-scanner:generateDebugResources UP-TO-DATE
> Task :capacitor-community-barcode-scanner:packageDebugResources UP-TO-DATE
> Task :capacitor-community-screen-brightness:compileDebugRenderscript NO-SOURCE
> Task :capacitor-community-screen-brightness:generateDebugResValues UP-TO-DATE
> Task :capacitor-community-screen-brightness:generateDebugResources UP-TO-DATE
> Task :capacitor-community-screen-brightness:packageDebugResources UP-TO-DATE
> Task :capacitor-cordova-android-plugins:compileDebugRenderscript NO-SOURCE
> Task :capacitor-cordova-android-plugins:generateDebugResValues UP-TO-DATE
> Task :capacitor-cordova-android-plugins:generateDebugResources UP-TO-DATE
> Task :capacitor-cordova-android-plugins:packageDebugResources UP-TO-DATE
> Task :capacitor-haptics:compileDebugRenderscript NO-SOURCE
> Task :capacitor-haptics:generateDebugResValues UP-TO-DATE
> Task :capacitor-haptics:generateDebugResources UP-TO-DATE
> Task :capacitor-haptics:packageDebugResources UP-TO-DATE
> Task :capacitor-keyboard:compileDebugRenderscript NO-SOURCE
> Task :capacitor-keyboard:generateDebugResValues UP-TO-DATE
> Task :capacitor-keyboard:generateDebugResources UP-TO-DATE
> Task :capacitor-keyboard:packageDebugResources UP-TO-DATE
> Task :capacitor-splash-screen:compileDebugRenderscript NO-SOURCE
> Task :capacitor-splash-screen:generateDebugResValues UP-TO-DATE
> Task :capacitor-splash-screen:generateDebugResources UP-TO-DATE
> Task :capacitor-splash-screen:packageDebugResources UP-TO-DATE
> Task :capacitor-status-bar:compileDebugRenderscript NO-SOURCE
> Task :capacitor-status-bar:generateDebugResValues UP-TO-DATE
> Task :capacitor-status-bar:generateDebugResources UP-TO-DATE
> Task :capacitor-status-bar:packageDebugResources UP-TO-DATE
> Task :capacitor-storage:compileDebugRenderscript NO-SOURCE
> Task :capacitor-storage:generateDebugResValues UP-TO-DATE
> Task :capacitor-storage:generateDebugResources UP-TO-DATE
> Task :capacitor-storage:packageDebugResources UP-TO-DATE
> Task :app:mergeDebugResources UP-TO-DATE
> Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
> Task :app:extractDeepLinksDebug UP-TO-DATE
> Task :capacitor-android:extractDeepLinksDebug UP-TO-DATE
> Task :capacitor-android:processDebugManifest UP-TO-DATE
> Task :capacitor-community-barcode-scanner:extractDeepLinksDebug UP-TO-DATE
> Task :capacitor-community-barcode-scanner:processDebugManifest UP-TO-DATE
> Task :capacitor-community-screen-brightness:extractDeepLinksDebug UP-TO-DATE
> Task :capacitor-community-screen-brightness:processDebugManifest UP-TO-DATE
> Task :capacitor-cordova-android-plugins:extractDeepLinksDebug UP-TO-DATE
> Task :capacitor-cordova-android-plugins:processDebugManifest UP-TO-DATE
> Task :capacitor-haptics:extractDeepLinksDebug UP-TO-DATE
> Task :capacitor-haptics:processDebugManifest UP-TO-DATE
> Task :capacitor-keyboard:extractDeepLinksDebug UP-TO-DATE
> Task :capacitor-keyboard:processDebugManifest UP-TO-DATE
> Task :capacitor-splash-screen:extractDeepLinksDebug UP-TO-DATE
> Task :capacitor-splash-screen:processDebugManifest UP-TO-DATE
> Task :capacitor-status-bar:extractDeepLinksDebug UP-TO-DATE
> Task :capacitor-status-bar:processDebugManifest UP-TO-DATE
> Task :capacitor-storage:extractDeepLinksDebug UP-TO-DATE
> Task :capacitor-storage:processDebugManifest UP-TO-DATE
> Task :app:processDebugMainManifest
> Task :app:processDebugManifest
> Task :capacitor-android:compileDebugLibraryResources UP-TO-DATE
> Task :capacitor-android:parseDebugLocalResources UP-TO-DATE
> Task :capacitor-android:generateDebugRFile UP-TO-DATE
> Task :capacitor-community-barcode-scanner:compileDebugLibraryResources UP-TO-DATE
> Task :capacitor-community-barcode-scanner:parseDebugLocalResources UP-TO-DATE
> Task :capacitor-community-barcode-scanner:generateDebugRFile UP-TO-DATE
> Task :capacitor-community-screen-brightness:compileDebugLibraryResources UP-TO-DATE
> Task :capacitor-community-screen-brightness:parseDebugLocalResources UP-TO-DATE
> Task :capacitor-community-screen-brightness:generateDebugRFile UP-TO-DATE
> Task :capacitor-cordova-android-plugins:compileDebugLibraryResources UP-TO-DATE
> Task :capacitor-cordova-android-plugins:parseDebugLocalResources UP-TO-DATE
> Task :capacitor-cordova-android-plugins:generateDebugRFile UP-TO-DATE
> Task :capacitor-haptics:compileDebugLibraryResources UP-TO-DATE
> Task :capacitor-haptics:parseDebugLocalResources UP-TO-DATE
> Task :capacitor-haptics:generateDebugRFile UP-TO-DATE
> Task :capacitor-keyboard:compileDebugLibraryResources UP-TO-DATE
> Task :capacitor-keyboard:parseDebugLocalResources UP-TO-DATE
> Task :capacitor-keyboard:generateDebugRFile UP-TO-DATE
> Task :capacitor-splash-screen:compileDebugLibraryResources UP-TO-DATE
> Task :capacitor-splash-screen:parseDebugLocalResources UP-TO-DATE
> Task :capacitor-splash-screen:generateDebugRFile UP-TO-DATE
> Task :capacitor-status-bar:compileDebugLibraryResources UP-TO-DATE
> Task :capacitor-status-bar:parseDebugLocalResources UP-TO-DATE
> Task :capacitor-status-bar:generateDebugRFile UP-TO-DATE
> Task :capacitor-storage:compileDebugLibraryResources UP-TO-DATE
> Task :capacitor-storage:parseDebugLocalResources UP-TO-DATE
> Task :capacitor-storage:generateDebugRFile UP-TO-DATE
> Task :capacitor-android:generateDebugBuildConfig UP-TO-DATE
> Task :capacitor-android:javaPreCompileDebug UP-TO-DATE
> Task :capacitor-android:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
> Task :capacitor-community-barcode-scanner:generateDebugBuildConfig UP-TO-DATE
> Task :capacitor-community-barcode-scanner:javaPreCompileDebug UP-TO-DATE
> Task :capacitor-community-screen-brightness:generateDebugBuildConfig UP-TO-DATE
> Task :capacitor-community-screen-brightness:javaPreCompileDebug UP-TO-DATE
> Task :capacitor-cordova-android-plugins:generateDebugBuildConfig UP-TO-DATE
> Task :capacitor-cordova-android-plugins:javaPreCompileDebug UP-TO-DATE
> Task :capacitor-android:bundleLibCompileToJarDebug
> Task :capacitor-cordova-android-plugins:compileDebugJavaWithJavac
Note: C:\Users\user\Documents\Projects\ionic\driver-app\qrcode-app\android\capacitor-cordova-android-plugins\src\main\java\org\apache\cordova\dialogs\Notification.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :capacitor-haptics:generateDebugBuildConfig UP-TO-DATE
> Task :capacitor-haptics:javaPreCompileDebug UP-TO-DATE
> Task :capacitor-keyboard:generateDebugBuildConfig UP-TO-DATE
> Task :capacitor-keyboard:javaPreCompileDebug UP-TO-DATE
> Task :capacitor-splash-screen:generateDebugBuildConfig UP-TO-DATE
> Task :capacitor-splash-screen:javaPreCompileDebug UP-TO-DATE
> Task :capacitor-cordova-android-plugins:bundleLibCompileToJarDebug
> Task :capacitor-status-bar:generateDebugBuildConfig UP-TO-DATE
> Task :capacitor-status-bar:javaPreCompileDebug UP-TO-DATE
> Task :capacitor-storage:generateDebugBuildConfig UP-TO-DATE
> Task :capacitor-storage:javaPreCompileDebug UP-TO-DATE
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:mergeDebugShaders UP-TO-DATE
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :capacitor-android:mergeDebugShaders UP-TO-DATE
> Task :capacitor-android:compileDebugShaders NO-SOURCE
> Task :capacitor-android:generateDebugAssets UP-TO-DATE
> Task :capacitor-android:packageDebugAssets UP-TO-DATE
> Task :capacitor-community-barcode-scanner:mergeDebugShaders UP-TO-DATE
> Task :capacitor-community-barcode-scanner:compileDebugShaders NO-SOURCE
> Task :capacitor-community-barcode-scanner:generateDebugAssets UP-TO-DATE
> Task :capacitor-community-barcode-scanner:packageDebugAssets UP-TO-DATE
> Task :capacitor-community-screen-brightness:mergeDebugShaders UP-TO-DATE
> Task :capacitor-community-screen-brightness:compileDebugShaders NO-SOURCE
> Task :capacitor-community-screen-brightness:generateDebugAssets UP-TO-DATE
> Task :capacitor-community-screen-brightness:packageDebugAssets UP-TO-DATE
> Task :capacitor-cordova-android-plugins:mergeDebugShaders UP-TO-DATE
> Task :capacitor-cordova-android-plugins:compileDebugShaders NO-SOURCE
> Task :capacitor-cordova-android-plugins:generateDebugAssets UP-TO-DATE
> Task :capacitor-cordova-android-plugins:packageDebugAssets UP-TO-DATE
> Task :capacitor-haptics:mergeDebugShaders UP-TO-DATE
> Task :capacitor-haptics:compileDebugShaders NO-SOURCE
> Task :capacitor-haptics:generateDebugAssets UP-TO-DATE
> Task :capacitor-haptics:packageDebugAssets UP-TO-DATE
> Task :capacitor-keyboard:mergeDebugShaders UP-TO-DATE
> Task :capacitor-keyboard:compileDebugShaders NO-SOURCE
> Task :capacitor-keyboard:generateDebugAssets UP-TO-DATE
> Task :capacitor-keyboard:packageDebugAssets UP-TO-DATE
> Task :capacitor-splash-screen:mergeDebugShaders UP-TO-DATE
> Task :capacitor-splash-screen:compileDebugShaders NO-SOURCE
> Task :capacitor-splash-screen:generateDebugAssets UP-TO-DATE
> Task :capacitor-splash-screen:packageDebugAssets UP-TO-DATE
> Task :capacitor-status-bar:mergeDebugShaders UP-TO-DATE
> Task :capacitor-status-bar:compileDebugShaders NO-SOURCE
> Task :capacitor-status-bar:generateDebugAssets UP-TO-DATE
> Task :capacitor-status-bar:packageDebugAssets UP-TO-DATE
> Task :capacitor-storage:mergeDebugShaders UP-TO-DATE
> Task :capacitor-storage:compileDebugShaders NO-SOURCE
> Task :capacitor-storage:generateDebugAssets UP-TO-DATE
> Task :capacitor-storage:packageDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets
> Task :app:processDebugJavaRes NO-SOURCE
> Task :capacitor-android:processDebugJavaRes NO-SOURCE
> Task :capacitor-android:bundleLibResDebug NO-SOURCE
> Task :app:compressDebugAssets
> Task :capacitor-community-barcode-scanner:processDebugJavaRes NO-SOURCE
> Task :capacitor-community-barcode-scanner:bundleLibResDebug NO-SOURCE
> Task :capacitor-community-screen-brightness:processDebugJavaRes NO-SOURCE
> Task :capacitor-community-screen-brightness:bundleLibResDebug NO-SOURCE
> Task :capacitor-cordova-android-plugins:processDebugJavaRes NO-SOURCE
> Task :capacitor-cordova-android-plugins:bundleLibResDebug NO-SOURCE
> Task :capacitor-haptics:processDebugJavaRes NO-SOURCE
> Task :capacitor-haptics:bundleLibResDebug NO-SOURCE
> Task :capacitor-keyboard:processDebugJavaRes NO-SOURCE
> Task :capacitor-keyboard:bundleLibResDebug NO-SOURCE
> Task :capacitor-splash-screen:processDebugJavaRes NO-SOURCE
> Task :capacitor-splash-screen:bundleLibResDebug NO-SOURCE
> Task :capacitor-status-bar:processDebugJavaRes NO-SOURCE
> Task :capacitor-status-bar:bundleLibResDebug NO-SOURCE
> Task :capacitor-storage:processDebugJavaRes NO-SOURCE
> Task :capacitor-storage:bundleLibResDebug NO-SOURCE
> Task :app:mergeDebugJavaResource UP-TO-DATE
> Task :app:checkDebugDuplicateClasses UP-TO-DATE
> Task :app:desugarDebugFileDependencies
> Task :capacitor-android:bundleLibRuntimeToDirDebug UP-TO-DATE
> Task :app:mergeDebugJniLibFolders UP-TO-DATE
> Task :capacitor-android:mergeDebugJniLibFolders UP-TO-DATE
> Task :capacitor-android:mergeDebugNativeLibs NO-SOURCE
> Task :capacitor-android:stripDebugDebugSymbols NO-SOURCE
> Task :capacitor-android:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :capacitor-community-barcode-scanner:mergeDebugJniLibFolders UP-TO-DATE
> Task :capacitor-community-barcode-scanner:mergeDebugNativeLibs NO-SOURCE
> Task :capacitor-community-barcode-scanner:stripDebugDebugSymbols NO-SOURCE
> Task :capacitor-community-barcode-scanner:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :capacitor-community-screen-brightness:mergeDebugJniLibFolders UP-TO-DATE
> Task :capacitor-community-screen-brightness:mergeDebugNativeLibs NO-SOURCE
> Task :capacitor-community-screen-brightness:stripDebugDebugSymbols NO-SOURCE
> Task :capacitor-community-screen-brightness:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :capacitor-cordova-android-plugins:mergeDebugJniLibFolders UP-TO-DATE
> Task :capacitor-cordova-android-plugins:mergeDebugNativeLibs NO-SOURCE
> Task :capacitor-cordova-android-plugins:stripDebugDebugSymbols NO-SOURCE
> Task :capacitor-cordova-android-plugins:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :capacitor-haptics:mergeDebugJniLibFolders UP-TO-DATE
> Task :capacitor-haptics:mergeDebugNativeLibs NO-SOURCE
> Task :capacitor-haptics:stripDebugDebugSymbols NO-SOURCE
> Task :capacitor-haptics:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :capacitor-cordova-android-plugins:bundleLibRuntimeToDirDebug
> Task :capacitor-keyboard:mergeDebugJniLibFolders UP-TO-DATE
> Task :capacitor-keyboard:mergeDebugNativeLibs NO-SOURCE
> Task :capacitor-keyboard:stripDebugDebugSymbols NO-SOURCE
> Task :capacitor-keyboard:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :capacitor-splash-screen:mergeDebugJniLibFolders UP-TO-DATE
> Task :capacitor-splash-screen:mergeDebugNativeLibs NO-SOURCE
> Task :capacitor-splash-screen:stripDebugDebugSymbols NO-SOURCE
> Task :capacitor-splash-screen:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :capacitor-status-bar:mergeDebugJniLibFolders UP-TO-DATE
> Task :capacitor-status-bar:mergeDebugNativeLibs NO-SOURCE
> Task :capacitor-status-bar:stripDebugDebugSymbols NO-SOURCE
> Task :capacitor-status-bar:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :capacitor-storage:mergeDebugJniLibFolders UP-TO-DATE
> Task :capacitor-storage:mergeDebugNativeLibs NO-SOURCE
> Task :capacitor-storage:stripDebugDebugSymbols NO-SOURCE
> Task :capacitor-storage:copyDebugJniLibsProjectOnly UP-TO-DATE
> Task :app:mergeDebugNativeLibs UP-TO-DATE
> Task :app:stripDebugDebugSymbols NO-SOURCE
> Task :app:validateSigningDebug UP-TO-DATE
> Task :app:writeDebugAppMetadata UP-TO-DATE
> Task :app:writeDebugSigningConfigVersions
> Task :capacitor-community-barcode-scanner:compileDebugJavaWithJavac
Note: C:\Users\user\Documents\Projects\ionic\driver-app\qrcode-app\node_modules\#capacitor-community\barcode-scanner\android\src\main\java\com\dutchconcepts\capacitor\barcodescanner\BarcodeScanner.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :capacitor-community-barcode-scanner:bundleLibCompileToJarDebug
> Task :capacitor-community-screen-brightness:compileDebugJavaWithJavac
> Task :app:processDebugManifestForPackage
> Task :capacitor-community-screen-brightness:bundleLibCompileToJarDebug
> Task :app:mergeExtDexDebug
> Task :capacitor-haptics:compileDebugJavaWithJavac
> Task :capacitor-haptics:bundleLibCompileToJarDebug
> Task :capacitor-keyboard:compileDebugJavaWithJavac
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :capacitor-keyboard:bundleLibCompileToJarDebug
> Task :capacitor-splash-screen:compileDebugJavaWithJavac
Note: C:\Users\user\Documents\Projects\ionic\driver-app\qrcode-app\node_modules\#capacitor\splash-screen\android\src\main\java\com\capacitorjs\plugins\splashscreen\SplashScreen.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :capacitor-splash-screen:bundleLibCompileToJarDebug
> Task :capacitor-status-bar:compileDebugJavaWithJavac
Note: C:\Users\user\Documents\Projects\ionic\driver-app\qrcode-app\node_modules\#capacitor\status-bar\android\src\main\java\com\capacitorjs\plugins\statusbar\StatusBar.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
> Task :capacitor-status-bar:bundleLibCompileToJarDebug
> Task :capacitor-storage:compileDebugJavaWithJavac
> Task :capacitor-community-barcode-scanner:bundleLibRuntimeToDirDebug UP-TO-DATE
> Task :capacitor-community-screen-brightness:bundleLibRuntimeToDirDebug UP-TO-DATE
> Task :capacitor-storage:bundleLibCompileToJarDebug
> Task :capacitor-haptics:bundleLibRuntimeToDirDebug UP-TO-DATE
> Task :capacitor-keyboard:bundleLibRuntimeToDirDebug UP-TO-DATE
> Task :capacitor-splash-screen:bundleLibRuntimeToDirDebug UP-TO-DATE
> Task :capacitor-status-bar:bundleLibRuntimeToDirDebug UP-TO-DATE
> Task :capacitor-storage:bundleLibRuntimeToDirDebug UP-TO-DATE
> Task :app:processDebugResources
> Task :app:mergeLibDexDebug
> Task :app:compileDebugJavaWithJavac
> Task :app:compileDebugSources
> Task :app:dexBuilderDebug
> Task :app:mergeProjectDexDebug
> Task :app:packageDebug
> Task :app:assembleDebug
BUILD SUCCESSFUL in 3s
181 actionable tasks: 33 executed, 148 up-to-date
Build Analyzer results available
Android Studio Version
Android Studio Bumblebee | 2021.1.1 Patch 1
JDK Version
jdk1.8.0_202
It should be good, if you send us the errors you are getting. But let me try to explain. It can be a mistake on the tabs-routing.module.ts file. So, let the field path: '' empty on the route like the example below:
const routes: Routes = [
{
path: '',
component: TabsPage,
children: [
{
path: 'tab1',
loadChildren: () => import('../tab1/tab1.module').then(m => m.Tab1PageModule)
},
{
path: 'tab2',
loadChildren: () => import('../tab2/tab2.module').then(m => m.Tab2PageModule)
},
{
path: 'tab3',
loadChildren: () => import('../tab3/tab3.module').then(m => m.Tab3PageModule)
},
{
path: '',
redirectTo: '/tabs/tab1',
pathMatch: 'full'
}
]
},
{
path: '',
redirectTo: '/tabs/tab1',
pathMatch: 'full'
}
];
This question already has answers here:
ERROR Android emulator gets killed in Android Studio
(74 answers)
Android Emulator The emulator process for AVD was killed. Windows Intel
(27 answers)
Closed 1 year ago.
> Task :app:preBuild UP-TO-DATE
> Task :app:preDebugBuild UP-TO-DATE
> Task :app:compileDebugAidl NO-SOURCE
> Task :app:compileDebugRenderscript NO-SOURCE
> Task :app:generateDebugBuildConfig UP-TO-DATE
> Task :app:checkDebugAarMetadata UP-TO-DATE
> Task :app:generateDebugResValues UP-TO-DATE
> Task :app:generateDebugResources UP-TO-DATE
> Task :app:mergeDebugResources UP-TO-DATE
> Task :app:createDebugCompatibleScreenManifests UP-TO-DATE
> Task :app:extractDeepLinksDebug UP-TO-DATE
> Task :app:processDebugMainManifest UP-TO-DATE
> Task :app:processDebugManifest UP-TO-DATE
> Task :app:processDebugManifestForPackage UP-TO-DATE
> Task :app:processDebugResources UP-TO-DATE
> Task :app:compileDebugKotlin UP-TO-DATE
> Task :app:javaPreCompileDebug UP-TO-DATE
> Task :app:compileDebugJavaWithJavac UP-TO-DATE
> Task :app:compileDebugSources UP-TO-DATE
> Task :app:mergeDebugNativeDebugMetadata NO-SOURCE
> Task :app:mergeDebugShaders UP-TO-DATE
> Task :app:compileDebugShaders NO-SOURCE
> Task :app:generateDebugAssets UP-TO-DATE
> Task :app:mergeDebugAssets UP-TO-DATE
> Task :app:compressDebugAssets UP-TO-DATE
> Task :app:processDebugJavaRes NO-SOURCE
> Task :app:mergeDebugJavaResource UP-TO-DATE
> Task :app:checkDebugDuplicateClasses UP-TO-DATE
> Task :app:desugarDebugFileDependencies UP-TO-DATE
> Task :app:mergeExtDexDebug UP-TO-DATE
> Task :app:mergeLibDexDebug UP-TO-DATE
> Task :app:dexBuilderDebug UP-TO-DATE
> Task :app:mergeProjectDexDebug UP-TO-DATE
> Task :app:mergeDebugJniLibFolders UP-TO-DATE
> Task :app:mergeDebugNativeLibs UP-TO-DATE
> Task :app:stripDebugDebugSymbols NO-SOURCE
> Task :app:validateSigningDebug UP-TO-DATE
> Task :app:packageDebug UP-TO-DATE
> Task :app:assembleDebug UP-TO-DATE
> BUILD SUCCESSFUL in 922ms
> 27 actionable tasks: 27 up-to-date
> Build Analyzer results available
That's the message I got in my Build Log as I ran my app and tried opening my Emulator, I just started a new project and it's giving me this issue now randomly as I try to start... It keeps saying "The emulator process for AVD Pixel_2_API_29 was killed"
I updated the Android Studio itself recently, there are no more updates needed so I don't know what the issue could be.
Only thing I can think of is some / most Android files are saved within another drive, I saved this project in my D:/ drive as I had no more space to save within my other.