Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Failed to import and run #282

Closed
AndroidDeveloperLB opened this issue Aug 19, 2018 · 16 comments
Closed

Failed to import and run #282

AndroidDeveloperLB opened this issue Aug 19, 2018 · 16 comments

Comments

@AndroidDeveloperLB
Copy link

I get this:

Conflict with dependency 'com.squareup.okio:okio' in project ':mobile'. Resolved versions for runtime classpath (1.14.0) and compile classpath (1.13.0) differ. This can lead to runtime crashes. To resolve this issue follow advice at https://developer.android.com/studio/build/gradle-tips#configure-project-wide-properties. Alternatively, you can try to fix the problem by adding this snippet to C:\Users\user\Desktop\iosched\mobile\build.gradle:
dependencies {
implementation("com.squareup.okio:okio:1.14.0")
}

image

@JoseAlcerreca
Copy link
Contributor

Please use AS 3.2

@AndroidDeveloperLB
Copy link
Author

AndroidDeveloperLB commented Aug 20, 2018

Why close the issue without letting me tell you if it works there or not?
The issue was reported when I've used Android Studio 3.3 Canary 6 .
I've now tested on Android Studio 3.2 Beta 5, and it worked fine, but still showed some errors:

image

Also when reaching the map tab at the bottom, it crashes.

Please fix the issues, and make it work for newer versions of the IDE.

@JoseAlcerreca
Copy link
Contributor

Because it's a dup of #275 and others.

This project requires 3.2.

@JoseAlcerreca
Copy link
Contributor

Can you switch to text mode? Not sure what those errors are. I don't think animal.sniffer is part of iosched

@AndroidDeveloperLB
Copy link
Author

On the next build, it is shown as such:

image

and the build log is:

build log.txt

@JoseAlcerreca
Copy link
Contributor

Yep that's all fine then.

@AndroidDeveloperLB
Copy link
Author

ok can you please explain though why it won't work on new IDE version?
I can see that even the link you've provided is closed.

@JoseAlcerreca
Copy link
Contributor

Because 3.3 is canary, lightly tested. You're not supposed to use it for production. We were targeting 3.1 which is stable but we had to use 3.2 (beta) because of androidx.

@AndroidDeveloperLB
Copy link
Author

Why publish a version of the IDE that can't even build Google's own projects, especially the one that is supposed to be on the peak of Google's own libraries, which were presented on the event itself...
:(

@JoseAlcerreca
Copy link
Contributor

Because it's a canary.

@AndroidDeveloperLB
Copy link
Author

But I love canary.
And usually it doesn't have such serious issues...

@swarooplal
Copy link

can't run the build

Android resource linking failed
Output: /Users/rninja4/Desktop/Ap/iosched/mobile/build/intermediates/incremental/mergeDebugResources/stripped.dir/layout/fragment_onboarding.xml:62: error: attribute ipi_currentPageIndicatorColor (aka com.google.samples.apps.iosched:ipi_currentPageIndicatorColor) not found.
/Users/rninja4/Desktop/Ap/iosched/mobile/build/intermediates/incremental/mergeDebugResources/stripped.dir/layout/fragment_onboarding.xml:62: error: attribute ipi_pageIndicatorColor (aka com.google.samples.apps.iosched:ipi_pageIndicatorColor) not found.
/Users/rninja4/Desktop/Ap/iosched/mobile/build/intermediates/incremental/mergeDebugResources/stripped.dir/layout/item_session_info.xml:238: error: attribute flexDirection (aka com.google.samples.apps.iosched:flexDirection) not found.
/Users/rninja4/Desktop/Ap/iosched/mobile/build/intermediates/incremental/mergeDebugResources/stripped.dir/layout/item_session_info.xml:238: error: attribute flexWrap (aka com.google.samples.apps.iosched:flexWrap) not found.
error: failed linking file resources.

Command: /Users/rninja4/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.0-beta04-4818971-osx.jar/1aa33c3aea8e90bb7295ae32d8d13b67/aapt2-3.2.0-beta04-4818971-osx/aapt2 link -I
/Users/rninja4/Library/Android/sdk/platforms/android-28/android.jar
--manifest
/Users/rninja4/Desktop/Ap/iosched/mobile/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml
-o
/Users/rninja4/Desktop/Ap/iosched/mobile/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_
-R
@/Users/rninja4/Desktop/Ap/iosched/mobile/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
/Users/rninja4/Desktop/Ap/iosched/mobile/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r
--custom-package
com.google.samples.apps.iosched
-0
apk
--output-text-symbols
/Users/rninja4/Desktop/Ap/iosched/mobile/build/intermediates/symbols/debug/R.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.0-beta04-4818971-osx Daemon #0

@juanagu
Copy link

juanagu commented Sep 1, 2018

Same error.

WARNING: Conflict with dependency 'com.squareup.okio:okio' in project ':mobile'. Resolved versions for runtime classpath (1.14.0) and compile classpath (1.13.0) differ. This can lead to runtime crashes. To resolve this issue follow advice at https://developer.android.com/studio/build/gradle-tips#configure-project-wide-properties. Alternatively, you can try to fix the problem by adding this snippet to /Users/jagu/Projects/Android/iosched/mobile/build.gradle:

Info:
Android Studio 3.2 RC 2
Build #AI-181.5540.7.32.4974118, built on August 23, 2018
JRE: 1.8.0_152-release-1136-b06 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.4

@jacobniu
Copy link

Jesus Christ,:(

@abbath0767
Copy link

Some error: WARNING: Conflict with dependency 'com.squareup.okio:okio' in project ':mobile'. Resolved versions for runtime classpath (1.14.0) and compile classpath (1.13.0) differ. This can lead to runtime crashes. To resolve this issue follow advice at https://developer.android.com/studio/build/gradle-tips#configure-project-wide-properties. Alternatively, you can try to fix the problem by adding this snippet to /Users/nikitagusarov/Documents/Projects/my/iosched/mobile/build.gradle:

Android Studio 3.2
Build #AI-181.5540.7.32.5014246, built on September 17, 2018
JRE: 1.8.0_152-release-1136-b06 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.13.6

thx google

@JoseAlcerreca
Copy link
Contributor

Please use the adssched branch, it's up to date.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants