linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Build broke after "Update gradle.build and dep


From: Ciro Ferraiuolo
Subject: Re: [Linphone-developers] Build broke after "Update gradle.build and dependencies" commit
Date: Fri, 28 Apr 2017 11:24:22 +0200

I managed to make it work, I've copied the gcm.jar file into the libs folder and edited the build.gradle file adding 

compile files ('libs/gcm.jar')

to the dependencies block.

Now it compiles with no errors, is this solution correct?


CIRO FERRAIUOLO

   


2017-04-28 10:19 GMT+02:00 Ciro Ferraiuolo <address@hidden>:
I guess that's could be due to the fact that during this commit the gcm.jar file was removed from libs folder. I've tried restoring it, with no luck. Any idea?


CIRO FERRAIUOLO

   


2017-04-28 9:53 GMT+02:00 Ciro Ferraiuolo <address@hidden>:
Hi, after the latest commit, I'm not able to build the project anymore, when Gradle tries to assembleDebug I got this:

/home/ciro/linphone-android/src/android/org/linphone/gcm/GCMService.java:34: error: package com.google.android.gcm does not exist
import com.google.android.gcm.GCMBaseIntentService;
                             ^
/home/ciro/linphone-android/src/android/org/linphone/gcm/GCMService.java:40: error: cannot find symbol
public class GCMService extends GCMBaseIntentService {
                                ^
  symbol: class GCMBaseIntentService
/home/ciro/linphone-android/src/android/org/linphone/gcm/GCMReceiver.java:23: error: package com.google.android.gcm does not exist
import com.google.android.gcm.GCMBroadcastReceiver;
                             ^
/home/ciro/linphone-android/src/android/org/linphone/gcm/GCMReceiver.java:28: error: cannot find symbol
public class GCMReceiver extends GCMBroadcastReceiver {
                                 ^
  symbol: class GCMBroadcastReceiver
/home/ciro/linphone-android/src/android/org/linphone/gcm/GCMService.java:53: error: method does not override or implement a method from a supertype
        @Override
        ^
/home/ciro/linphone-android/src/android/org/linphone/gcm/GCMService.java:59: error: method does not override or implement a method from a supertype
        @Override
        ^
/home/ciro/linphone-android/src/android/org/linphone/gcm/GCMService.java:65: error: incompatible types: GCMService cannot be converted to Context
                        startService(new Intent(ACTION_MAIN).setClass(this, LinphoneService.class));
                                                                      ^
/home/ciro/linphone-android/src/android/org/linphone/gcm/GCMService.java:79: error: method does not override or implement a method from a supertype
        @Override
        ^
/home/ciro/linphone-android/src/android/org/linphone/gcm/GCMService.java:91: error: method does not override or implement a method from a supertype
        @Override
        ^
/home/ciro/linphone-android/src/android/org/linphone/gcm/GCMReceiver.java:29: error: method does not override or implement a method from a supertype
    @Override
    ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
10 errors
:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 3.939 secs
Makefile:127: recipe for target 'generate-apk' failed
make: *** [generate-apk] Error 1

Could someone kindly provide some help please?

CIRO FERRAIUOLO

   




reply via email to

[Prev in Thread] Current Thread [Next in Thread]