GlassCast icon indicating copy to clipboard operation
GlassCast copied to clipboard

Gradle Project Sync Failed -- The Error:(22, 0)

Open AdventureMan opened this issue 10 years ago • 8 comments

Upon opening in Android Studio I am getting the message "Gradle DSL method not found: 'runProguard()' Possible Causes:
-The project 'Glasscast' may be using a version of Gradle that does not contain the method. -The build file may be missing a Gradle plugin.

Is there a fix for this?

AdventureMan avatar Mar 16 '15 03:03 AdventureMan

runProguard() is an old call that isn't being used in the newer gradle versions anymore.

locate the runProguard() call in your gradle build file and replace it with

'minifyEnabled'

so it would look something like this:

buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }

MaikoHermans avatar Mar 16 '15 06:03 MaikoHermans

Thanks! I did that and updated the kickflip-android-sdk\sdk\build.gradle to their Android 5.0 updates and it's working now. Just having trouble getting the stream to show video on the kickflip streaming site. Only shows a black screen. I'm looking for a fix.

Thanks for your help!

AdventureMan avatar Mar 16 '15 20:03 AdventureMan

Did you make sure to add your own api keys to the code?

MaikoHermans avatar Mar 17 '15 06:03 MaikoHermans

I made a mistake with the Android 5.0 update that causes Kickflip to only work on Android 5.0. I just need a clear day to publish the fix and then all should work again. Meanwhile if you're using Google Glass you can use kickflip-android-sdk at a commit before the FFmpeg libraries were updated to 2.5.2.

OnlyInAmerica avatar Mar 17 '15 15:03 OnlyInAmerica

@MaikoHermans I do have my own keys, yes. On my Kickflip page it shows a livestream happening and I am able to click the link, just no video.

@OnlyInAmerica Thanks for the quick response. I'll look into the kick-android-sdk at commit.

AdventureMan avatar Mar 18 '15 02:03 AdventureMan

Where can I find my API key? Is it the same as my client ID?

On Tue, Mar 17, 2015 at 10:56 PM, Matt Keenan [email protected] wrote:

@MaikoHermans https://github.com/MaikoHermans I do have my own keys, yes. On my Kickflip page it shows a livestream happening and I am able to click the link, just no video.

@OnlyInAmerica https://github.com/OnlyInAmerica Thanks for the quick response. I'll look into the kick-android-sdk at commit.

— Reply to this email directly or view it on GitHub https://github.com/OnlyInAmerica/GlassCast/issues/5#issuecomment-82702513 .

Zeitzew32 avatar Mar 18 '15 23:03 Zeitzew32

@Zeitzew32 did you create a new app yet? if so you should have a similair view to this when you log in to your dashboard on kickflip.io

capture

if you don't have a similair view like that. Make sure you create a new app and it will give you a client ID and a secret ID. Both are reffered to as API keys as it says in the readme of the project

After you sign up for a Kickflip account, copy your API keys to SECRETS.java:

$ touch ./app/src/main/java/io/kickflip/glasscast/SECRETS.java package io.kickflip.glasscast; public class SECRETS { public static final String CLIENT_KEY = "YourKickflipKey"; public static final String CLIENT_SECRET = "YourKickflipSecret"; }

MaikoHermans avatar Mar 19 '15 07:03 MaikoHermans

I did create a new app and I have access to a window like that. Is that the only information I need for secrets.java? When I tap broadcast on the Glass, the video isn't being streamed onto kickflip.

On Thursday, March 19, 2015, Maiko Hermans [email protected] wrote:

@Zeitzew32 https://github.com/Zeitzew32 did you create a new app yet? if so you should have a similair view to this when you log in to your dashboard on kickflip.io

[image: capture] https://cloud.githubusercontent.com/assets/6593958/6726098/1571b65a-ce13-11e4-9abb-6d2c6d28d218.JPG

if you don't have a similair view like that. Make sure you create a new app and it will give you a client ID and a secret ID

— Reply to this email directly or view it on GitHub https://github.com/OnlyInAmerica/GlassCast/issues/5#issuecomment-83387923 .

Zeitzew32 avatar Mar 19 '15 13:03 Zeitzew32