Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't import #4248

Closed
AndroidDeveloperLB opened this issue May 14, 2018 · 11 comments
Closed

Can't import #4248

AndroidDeveloperLB opened this issue May 14, 2018 · 11 comments
Assignees

Comments

@AndroidDeveloperLB
Copy link

I get this:

image

Attached IDE log file.
idea.log

@AquilesCanta AquilesCanta self-assigned this May 15, 2018
@AquilesCanta
Copy link
Contributor

Hi @AndroidDeveloperLB, I have not seen similar reports in the past. I am not sure this is an ExoPlayer issue. I see quite a lot of material around it in Stack Overflow and Github. Have you tried any of the workarounds suggested there?

Make sure you look at #2870 and #3708.

@AndroidDeveloperLB
Copy link
Author

Why is there any issue at all? Why can't I just import it into Android Studio and that's it?
I tried to update everything in the gradle files, and still got this issue.
I've now also tried what's offered there, and didn't get it to work.

Can you please apply the needed changes that you think are missing, so that this won't require extra steps?
Also, I've now cloned this one:
https://github.com/google/ExoPlayer/tree/io18
And got this issue:
image

@AquilesCanta
Copy link
Contributor

I just tried

git clone https://github.com/google/ExoPlayer.git
cd ExoPlayer
git checkout --track remotes/origin/io18

And then opened the build.gradle file from android studio (I am running 3.0.1), and was able to run the video app without any issues. As suggested above, this is most likely a local issue. I am pretty sure that you'll find a fix in one of the referred issues, or in Stack Overflow.

Closing as this is most likely not ExoPlayer related.

@AndroidDeveloperLB
Copy link
Author

AndroidDeveloperLB commented May 17, 2018

@AquilesCanta Why close the issue?
And it's not just a local issue. It failed on both my PC at home and at the office.
BTW, 3.0.1 is not the latest one. Not even in stable release (which is 3.1.2)

@AquilesCanta
Copy link
Contributor

What happens if you go through the steps I commented above?

@AndroidDeveloperLB
Copy link
Author

@AquilesCanta You did as I did, so I will try again:
I've now cloned the exact URL you've provided, and opened this version of the IDE:
Android Studio 3.2 Canary 14
Build #AI-181.4668.68.32.4763614, built on May 4, 2018
JRE: 1.8.0_152-release-1136-b03 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

Still doesn't build. I get this:

image

I've done it again, and without updating gradle version, and then it worked fine.
I think it's a bug on gradle version, and that the IDE offers to update to it even though it will ruin the build.

Have you also tried the one of https://github.com/google/ExoPlayer/tree/io18 ?
I've tried again now, and even without updating it didn't work. This time it has anything to launch, too (or maybe I didn't notice it had this issue before) :
image

@AquilesCanta
Copy link
Contributor

Hi,

Have you also tried the one of https://github.com/google/ExoPlayer/tree/io18 ?

The steps I shared above are for importing the io18 demo (it checks out the demo branch with git checkout --track remotes/origin/io18).

Something must be wrong with the importing steps used before capturing the second image (if you intended to import the io demo). It is complaining about the cast extension but the io18 demo does not have any reference to the cast extension, so AS must be trying to import something else.

@AndroidDeveloperLB
Copy link
Author

@AquilesCanta Can you please try it?

@AquilesCanta
Copy link
Contributor

@AndroidDeveloperLB, I did try the steps I listed above and managed to import the demo without any issues.

@AndroidDeveloperLB
Copy link
Author

@AquilesCanta OK I still can't do it, so reported about this here as this is probably a gradle/IDE bug:
https://issuetracker.google.com/issues/79936232

@AquilesCanta
Copy link
Contributor

I am sorry you are running into this. Restarting and clearing caches sometimes helps with these issues. Keep in mind however, that the second image contains a reference to the cast extension, but the io demo does not depend on it, so that something that should be fixed by running a clean instance of Android Studio.

@google google locked and limited conversation to collaborators Sep 27, 2018
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

2 participants