Android build errors

any reason why I got this? maybe an old npm module I installed? I am on SDK 24.

[stderr] Note: Some input files use or override a deprecated API.
[stderr] Note: Recompile with -Xlint:deprecation for details.
[stderr] Note: Some input files use unchecked or unsafe operations.
[stderr] Note: Recompile with -Xlint:unchecked for details.
[stderr] warning: Attempt to recreate a file for type com.raizlabs.android.dbflow.config.ExponentKernel$Database
[stderr] warning: Attempt to recreate a file for type com.raizlabs.android.dbflow.config.ExponentKernel$Database
[stderr] warning: File for type 'com.raizlabs.android.dbflow.config.GeneratedDatabaseHolder' created in the last round will not be subject to annotation processing.
[stderr] Note: Some input files use or override a deprecated API.
[stderr] Note: Recompile with -Xlint:deprecation for details.
[stderr] Note: Some input files use unchecked or unsafe operations.
[stderr] Note: Recompile with -Xlint:unchecked for details.
Copying resources from program directory [/src/exponent/android-shell-app/app/build/intermediates/classes/prod/release] (filtered)
Printing classes to [/src/exponent/android-shell-app/app/build/outputs/mapping/prod/release/dump.txt]...
:app:crashlyticsStoreDeobsProdRelease
:app:crashlyticsUploadDeobsProdRelease
[stderr] /src/exponent/android-shell-app/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/AlertFragment.java:39: Error: Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArguments(Bundle) instead [ValidFragment]
:app:lintVitalProdRelease
[stderr] public AlertFragment(@Nullable DialogModule.AlertFragmentListener listener, Bundle arguments) {
[stderr] ~~~~~~~~~~~~~
[stderr] /src/exponent/android-shell-app/ReactAndroid/src/main/java/com/facebook/react/modules/dialog/SupportAlertFragment.java:32: Error: Avoid non-default constructors in fragments: use a default constructor plus Fragment#setArguments(Bundle) instead [ValidFragment]
[stderr] public SupportAlertFragment(@Nullable DialogModule.AlertFragmentListener listener, Bundle arguments) {
[stderr] ~~~~~~~~~~~~~~~~~~~~
[stderr] Explanation for issues of type "ValidFragment":
[stderr] From the Fragment documentation:
[stderr] Every fragment must have an empty constructor, so it can be instantiated
[stderr] when restoring its activity's state. It is strongly recommended that
[stderr] subclasses do not have other constructors with parameters, since these
[stderr] constructors will not be called when the fragment is re-instantiated;
[stderr] instead, arguments can be supplied by the caller with setArguments(Bundle)
[stderr] and later retrieved by the Fragment with getArguments().
[stderr] http://developer.android.com/reference/android/app/Fragment.html#Fragment()
[stderr] 2 errors, 0 warnings
:app:transformClassesWithMultidexlistForProdRelease

tried again and got this

[stderr] Unable to download manifest from undefined: Can't read JSON file: /src/exponent/dev-home-config.json
[stderr] └─ Cause: Error: ENOENT: no such file or directory, open '/src/exponent/dev-home-config.json'
Using published dev version of Expo Home
[22:52:56] Finished 'generate-dynamic-macros' after 18 ms
/src/exponent/android/app
[stderr] Warning: Could not copy android.iml to shell app directory.

hi-

is this a detached project or logs from the build service?

these are logs from the build service for Android. I haven’t detached it.

Hi @rush86999 - some of these errors are expected (results of normal steps in our build process right now). You can just ignore them. If you keep waiting after you see these, does your build eventually finish? For me it usually takes about 10 minutes for an Android build.

We’re currently working on improving our build logs experience to display more useful (and less unimportant) information, but sorry it is a bit confusing right now :confused:

the build does finish and I posted it on the google play store. i hope it works or i m screwed. lol

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.