Android can't build brand new expo ejected project


#1

I have created a brand new expo project and ejected it.
I open build.gradle in AS and run build.

It shows me

Unable to resolve dependency for ':app@prodMinSdkDevKernelDebug/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Failed to resolve: host.exp.exponent:expoview:31.0.0
Show in File
Show in Project Structure dialog


Unable to resolve dependency for ':app@prodMinSdkDevKernelDebugAndroidTest/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@prodMinSdkDevKernelDebugUnitTest/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@prodMinSdkDevKernelRelease/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@prodMinSdkDevKernelReleaseUnitTest/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@prodMinSdkProdKernelDebug/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@prodMinSdkProdKernelDebugAndroidTest/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@prodMinSdkProdKernelDebugUnitTest/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@prodMinSdkProdKernelRelease/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@prodMinSdkProdKernelReleaseUnitTest/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@devMinSdkDevKernelDebug/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@devMinSdkDevKernelDebugAndroidTest/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@devMinSdkDevKernelDebugUnitTest/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@devMinSdkDevKernelRelease/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@devMinSdkDevKernelReleaseUnitTest/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@devMinSdkProdKernelDebug/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@devMinSdkProdKernelDebugAndroidTest/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@devMinSdkProdKernelDebugUnitTest/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@devMinSdkProdKernelRelease/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details


Unable to resolve dependency for ':app@devMinSdkProdKernelReleaseUnitTest/compileClasspath': Could not find expolib_v1.com.google.android.exoplayer:expolib_v1-extension-okhttp:2.6.1.
Open File
Show Details

Anyone know how to fix it?


#2

Finally, this is because of lacking expokit npm module reference.

according to @darush comment in this thread. Do what he state would build fine.

How come this can be the problem…


closed #3

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