package expo.modules does not exist - android

I have created my react native project using npx react-native init project_name
Then I have build the project and it was building successfully.
Next thing I wanted to add expo-local-authentication package to my project, so I have followed the instrunction given by the official documentation i.e, https://github.com/expo/expo/tree/main/packages/expo-local-authentication
For bare React Native projects, you must ensure that you have installed and configured the expo package before continuing.
So I have installed the expo module in my react native project using the automation installation i.e, npx install-expo-modules#latest
But after installing it is giving the below error.
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
/Users/bhaveshkumar/Documents/AwesomeProject/android/app/src/main/java/com/awesomeproject/MainApplication.java:3: error: package expo.modules does not exist
import expo.modules.ApplicationLifecycleDispatcher;
^
/Users/bhaveshkumar/Documents/AwesomeProject/android/app/src/main/java/com/awesomeproject/MainApplication.java:4: error: package expo.modules does not exist
import expo.modules.ReactNativeHostWrapper;
^
/Users/bhaveshkumar/Documents/AwesomeProject/android/app/src/main/java/com/awesomeproject/MainActivity.java:2: error: package expo.modules does not exist
import expo.modules.ReactActivityDelegateWrapper;
^
/Users/bhaveshkumar/Documents/AwesomeProject/android/app/src/main/java/com/awesomeproject/MainApplication.java:22: error: cannot find symbol
new ReactNativeHostWrapper(this, new ReactNativeHost(this) {
^
symbol: class ReactNativeHostWrapper
location: class MainApplication
/Users/bhaveshkumar/Documents/AwesomeProject/android/app/src/main/java/com/awesomeproject/MainApplication.java:44: error: cannot find symbol
new ReactNativeHostWrapper(this, new MainApplicationReactNativeHost(this));
^
symbol: class ReactNativeHostWrapper
location: class MainApplication
/Users/bhaveshkumar/Documents/AwesomeProject/android/app/src/main/java/com/awesomeproject/MainApplication.java:62: error: cannot find symbol
ApplicationLifecycleDispatcher.onApplicationCreate(this);
^
symbol: variable ApplicationLifecycleDispatcher
location: class MainApplication
/Users/bhaveshkumar/Documents/AwesomeProject/android/app/src/main/java/com/awesomeproject/MainApplication.java:99: error: cannot find symbol
ApplicationLifecycleDispatcher.onConfigurationChanged(this, newConfig);
^
symbol: variable ApplicationLifecycleDispatcher
location: class MainApplication
/Users/bhaveshkumar/Documents/AwesomeProject/android/app/src/main/java/com/awesomeproject/MainActivity.java:26: error: cannot find symbol
return new ReactActivityDelegateWrapper(this, new MainActivityDelegate(this, getMainComponentName()));

Related

Image picker error in react native for android

I have had a promblem.
since I had installed 'react-native-image-picker', App does not executes.
For solving this problem, I had to add to AndroidManifest.xml to permission code.
and npm install jetifier. but everything does not solve this.
OS : windows 10
IDE : webstorm 2020.02
android studio: latest version
Below the code, I have faced error message.
C:\Users\ client>npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 1236 file(s) to forward-jetify. Using 4 workers...
info JS server already running.
info Installing the app...
> Task :react-native-image-picker:compileDebugJavaWithJavac FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.2/userguide/command_line_interface.html#sec:command_line_warnings
62 actionable tasks: 2 executed, 60 up-to-date
C:\Users\ \node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:34: error: package com.imagepicker.media does not e
xist
import com.imagepicker.media.ImageConfig;
^
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:35: error: package com.imagepicker.permissions does
not exist
import com.imagepicker.permissions.PermissionUtils;
^
C:\Users\client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:36: error: package com.imagepicker.permissions does
not exist
import com.imagepicker.permissions.OnImagePickerPermissionsCallback;
^
C:\Users\client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:37: error: package com.imagepicker.utils.MediaUtils
does not exist
import com.imagepicker.utils.MediaUtils.ReadExifResult;
^
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:38: error: package com.imagepicker.utils does not e
xist
import com.imagepicker.utils.ReadableMapUtils;
^
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:39: error: package com.imagepicker.utils does not e
xist
import com.imagepicker.utils.RealPathUtil;
^
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:40: error: package com.imagepicker.utils does not e
xist
import com.imagepicker.utils.UI;
^
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:56: error: package com.imagepicker.utils does not e
xist
import static com.imagepicker.utils.MediaUtils.*;
^
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:57: error: package com.imagepicker.utils does not e
xist
import static com.imagepicker.utils.MediaUtils.createNewFile;
^
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:57: error: static import only from classes and inte
rfaces
import static com.imagepicker.utils.MediaUtils.createNewFile;
^
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:58: error: package com.imagepicker.utils does not e
xist
import static com.imagepicker.utils.MediaUtils.getResizedImage;
^
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:58: error: static import only from classes and inte
rfaces
import static com.imagepicker.utils.MediaUtils.getResizedImage;
^
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:86: error: cannot find symbol
private ImageConfig imageConfig = new ImageConfig(null, null, 0, 0, 100, 0, false);
^
symbol: class ImageConfig
location: class ImagePickerModule
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:66: error: cannot find symbol
public static final int DEFAULT_EXPLAINING_PERMISSION_DIALIOG_THEME = R.style.DefaultExplainingPermissionsTheme;
^
symbol: variable DefaultExplainingPermissionsTheme
location: class style
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:86: error: cannot find symbol
private ImageConfig imageConfig = new ImageConfig(null, null, 0, 0, 100, 0, false);
^
symbol: class ImageConfig
location: class ImagePickerModule
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:166: error: cannot find symbol
imageConfig = new ImageConfig(null, null, 0, 0, 100, 0, false);
^
symbol: class ImageConfig
location: class ImagePickerModule
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:168: error: package UI does not exist
final AlertDialog dialog = UI.chooseDialog(this, options, new UI.OnAction()
^
C:\Users\client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:168: error: cannot find symbol
final AlertDialog dialog = UI.chooseDialog(this, options, new UI.OnAction()
^
symbol: variable UI
location: class ImagePickerModule
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:274: error: cannot find symbol
final File original = createNewFile(reactContext, this.options, false);
^
symbol: method createNewFile(ReactApplicationContext,ReadableMap,boolean)
location: class ImagePickerModule
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:278: error: cannot find symbol
cameraCaptureURI = RealPathUtil.compatUriFromFile(reactContext, imageConfig.original);
^
symbol: variable RealPathUtil
location: class ImagePickerModule
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:374: error: cannot find symbol
if (ReadableMapUtils.hasAndNotEmptyString(options, "chooseWhichLibraryTitle"))
^
symbol: variable ReadableMapUtils
location: class ImagePickerModule
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:451: error: cannot find symbol
fileScan(reactContext, path);
^
symbol: method fileScan(ReactApplicationContext,String)
location: class ImagePickerModule
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:457: error: cannot find symbol
final ReadExifResult result = readExifInterface(responseHelper, imageConfig);
^
symbol: class ReadExifResult
location: class ImagePickerModule
C:\Users\client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:503: error: cannot find symbol
final RolloutPhotoResult rolloutResult = rolloutPhotoFromCamera(imageConfig);
^
symbol: class RolloutPhotoResult
location: class ImagePickerModule
C:\Users\client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:597: error: package PermissionUtils does not exist
.explainingDialog(this, options, new PermissionUtils.OnExplainingPermissionCallback()
^
C:\Users\client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:596: error: cannot find symbol
final AlertDialog dialog = PermissionUtils
^
symbol: variable PermissionUtils
location: class ImagePickerModule
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:658: error: cannot find symbol
else if (activity instanceof OnImagePickerPermissionsCallback)
^
symbol: class OnImagePickerPermissionsCallback
location: class ImagePickerModule
C:\Users\client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:660: error: cannot find symbol
((OnImagePickerPermissionsCallback) activity).setPermissionListener(listener);
^
symbol: class OnImagePickerPermissionsCallback
location: class ImagePickerModule
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:667: error: cannot find symbol
.append(OnImagePickerPermissionsCallback.class.getSimpleName())
^
symbol: class OnImagePickerPermissionsCallback
location: class ImagePickerModule
C:\Users\client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:685: error: cannot find symbol
return RealPathUtil.getRealPathFromURI(reactContext, uri);
^
symbol: variable RealPathUtil
location: class ImagePickerModule
30 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-image-picker: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. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 25s
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
C:\Users\ client\node_modules\react-native-image-picker\android\src\main\java\com\imagepicker\ImagePickerModule.java:34: error: package com.imagepicker.media does not exist

ionic 4 android, android error: cannot find symbol

so this was building with no problem and then I was having problems with building ios so I removed the android platform and added it again. All the plugins and adding of the platform are being added correctly but when running the command $ ionic cordova build android I get a LOT of errors about not being able to find the symbol.
> Task :app:compileDebugJavaWithJavac FAILED
24 actionable tasks: 5 executed, 19 up-to-date
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/cordova/plugins/Diagnostic_Notifications.java:35: error: cannot find symbol
import android.support.v4.app.NotificationManagerCompat;
^
symbol: class NotificationManagerCompat
location: package android.support.v4.app
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/cordova/plugins/Diagnostic.java:57: error: cannot find symbol
import android.support.v4.app.ActivityCompat;
^
symbol: class ActivityCompat
location: package android.support.v4.app
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/cordova/plugins/Diagnostic_External_Storage.java:28: error: cannot find symbol
import android.support.v4.os.EnvironmentCompat;
^
symbol: class EnvironmentCompat
location: package android.support.v4.os
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/nl/xservices/plugins/FileProvider.java:4: error: package android.support.v4.content does not exist
public class FileProvider extends android.support.v4.content.FileProvider {
^
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/com/ionicframework/cordova/webview/IonicWebViewEngine.java:11: error: package android.support.annotation does not exist
import android.support.annotation.RequiresApi;
^
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/com/ionicframework/cordova/webview/IonicWebViewEngine.java:121: error: cannot find symbol
#RequiresApi(Build.VERSION_CODES.LOLLIPOP)
^
symbol: class RequiresApi
location: class IonicWebViewEngine.ServerClient
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/cordova/plugins/Diagnostic_Notifications.java:123: error: cannot find symbol
NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(this.cordova.getActivity().getApplicationContext());
^
symbol: class NotificationManagerCompat
location: class Diagnostic_Notifications
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/cordova/plugins/Diagnostic_Notifications.java:123: error: cannot find symbol
NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(this.cordova.getActivity().getApplicationContext());
^
symbol: variable NotificationManagerCompat
location: class Diagnostic_Notifications
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/cordova/plugins/Diagnostic.java:639: error: cannot find symbol
java.lang.reflect.Method method = ActivityCompat.class.getMethod("shouldShowRequestPermissionRationale", Activity.class, java.lang.String.class);
^
symbol: class ActivityCompat
location: class Diagnostic
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/cordova/plugins/Diagnostic_External_Storage.java:216: error: cannot find symbol
addPath = Environment.MEDIA_MOUNTED.equals(EnvironmentCompat.getStorageState(file));
^
symbol: variable EnvironmentCompat
location: class Diagnostic_External_Storage
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/nl/xservices/plugins/SocialSharing.java:169: error: cannot find symbol
fileUri = FileProvider.getUriForFile(webView.getContext(), cordova.getActivity().getPackageName()+".sharing.provider", new File(fileUri.getPath()));
^
symbol: method getUriForFile(Context,String,File)
location: class FileProvider
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/nl/xservices/plugins/SocialSharing.java:285: error: cannot find symbol
fileUri = FileProvider.getUriForFile(webView.getContext(), cordova.getActivity().getPackageName()+".sharing.provider", new File(fileUri.getPath()));
^
symbol: method getUriForFile(Context,String,File)
location: class FileProvider
I have about 25 of those class errors. Never seen this error before and not a java programmer/used the android studio much.
I have found this SO post that looks like it might help? I just don't know how I go about updating the compiler tools through ionic or through the android studio?
I have also updated my SDK tools
Current version: Android Studio 3.5
Build number: AI-191.8026.42.35.5791312
Android SKD Tools: 26.1.1
Android Platform Version: API 29: Android 10.0 (Q) revision 3
$ java --version
$ java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
Try adding the following code in config.xml under android platform
<preference name="ANDROID_SUPPORT_V4_VERSION" default="27.+"/>
<framework src="com.android.support:supportv4:$ANDROID_SUPPORT_V4_VERSION"/>

How can I add OpenCV library to my react-native project?

I have create a react-native project, I want to do some image processing. I am quite familiar with OpenCV, so I want to use OpenCV library in my project.
I have searched for node module but I can't found it.
So, I tried to implement library with this method likn Android Studio.
1. I have this structure of project :
Project Structure
2. I create Native module from react-native tutorial
Native Module Project Structure
3. When I run :
react-native run-android
I get these errors :
:app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).
C:\CETIC\OpencvProject2\android\app\src\main\java\com\opencvproject2\MainApplication.java:15: error: cannot find symbol
import com.opencvproject2.opencvcamera;
^
symbol: class opencvcamera
location: package com.opencvproject2
C:\CETIC\OpencvProject2\android\app\src\main\java\com\opencvproject2\opencvcamera\OpenCVCameraModule.java:14: error: package org.opencv.android does not exist
import org.opencv.android.BaseLoaderCallback;
^
C:\CETIC\OpencvProject2\android\app\src\main\java\com\opencvproject2\opencvcamera\OpenCVCameraModule.java:15: error: package org.opencv.android does not exist
import org.opencv.android.CameraBridgeViewBase;
^
C:\CETIC\OpencvProject2\android\app\src\main\java\com\opencvproject2\opencvcamera\OpenCVCameraModule.java:16: error: package org.opencv.android does not exist
import org.opencv.android.LoaderCallbackInterface;
^
C:\CETIC\OpencvProject2\android\app\src\main\java\com\opencvproject2\opencvcamera\OpenCVCameraModule.java:17: error: package org.opencv.android does not exist
import org.opencv.android.OpenCVLoader;
^
C:\CETIC\OpencvProject2\android\app\src\main\java\com\opencvproject2\opencvcamera\OpenCVCameraModule.java:18: error: package org.opencv.android.CameraBridgeViewBase does not exist
import org.opencv.android.CameraBridgeViewBase.CvCameraViewFrame;
^
C:\CETIC\OpencvProject2\android\app\src\main\java\com\opencvproject2\opencvcamera\OpenCVCameraModule.java:19: error: package org.opencv.android.CameraBridgeViewBase does not exist
import org.opencv.android.CameraBridgeViewBase.CvCameraViewListener2;
^
C:\CETIC\OpencvProject2\android\app\src\main\java\com\opencvproject2\opencvcamera\OpenCVCameraModule.java:20: error: package org.opencv.core does not exist
import org.opencv.core.Mat;
^
C:\CETIC\OpencvProject2\android\app\src\main\java\com\opencvproject2\opencvcamera\OpenCVCameraModule.java:21: error: package org.opencv.highgui does not exist
import org.opencv.highgui.Highgui;
^
C:\CETIC\OpencvProject2\android\app\src\main\java\com\opencvproject2\opencvcamera\OpenCVCameraModule.java:37: error: cannot find symbol
public Mat displayImage(String path){
^
symbol: class Mat
location: class OpenCVCameraModule
So my question is : Am I missing something to include OpenCV library to my React-Native project ?

Android ANT Build - Lots of Mopub errors

I'm trying to create a script to automate the signed exportation of my android apps (to avoid manual work when I release an update to all my apps).
I've followed this tutorial: http://www.enterra-inc.com/techzone/using_ant_android_applications_building/
and others, very similar to this one.
I'm testing with 1 project by now, which includes mopub-sdk library, among others and I get a lot of errors, like this one (only with ANT build):
[javac] D:\Documents\Applications\Eclipse\Projects\mopub-sdk\src\test\java\com\mopub\mobileads\AdFetcherTest.java:62: error: static import only from classes and interfaces
[javac] import static org.mockito.Mockito.verify;
[javac] ^
[javac] D:\Documents\Applications\Eclipse\Projects\mopub-sdk\src\test\java\com\mopub\mobileads\AdFetcherTest.java:64: error: cannot find symbol
[javac] #RunWith(SdkTestRunner.class)
[javac] ^
[javac] symbol: class RunWith
[javac] D:\Documents\Applications\Eclipse\Projects\mopub-sdk\src\test\java\com\mopub\mobileads\AdLoadTaskTest.java:41: error: package org.junit does not exist
[javac] import org.junit.Before;
[javac] ^
[javac] D:\Documents\Applications\Eclipse\Projects\mopub-sdk\src\test\java\com\mopub\mobileads\AdLoadTaskTest.java:42: error: package org.junit does not exist
[javac] import org.junit.Test;
[javac] ^
[javac] D:\Documents\Applications\Eclipse\Projects\mopub-sdk\src\test\java\com\mopub\mobileads\AdLoadTaskTest.java:43: error: package org.junit.runner does not exist
[javac] import org.junit.runner.RunWith;
[javac] ^
[javac] D:\Documents\Applications\Eclipse\Projects\mopub-sdk\src\test\java\com\mopub\mobileads\AdLoadTaskTest.java:58: error: package org.fest.assertions.api does not exist
[javac] import static org.fest.assertions.api.Assertions.assertThat;
[javac] ^
[javac] D:\Documents\Applications\Eclipse\Projects\mopub-sdk\src\test\java\com\mopub\mobileads\AdLoadTaskTest.java:58: error: static import only from classes and interfaces
When I compile with Eclipse, everything is fine.
I think I did everything OK, but there is only 1 thing that is bothering me.
For some reason, when I imported the mopub-sdk project, it showed src/main/java directory instead of just src like the rest of the projects.
So, my question is:
1) How can I solve these errors so I can finally build automatically all my apps.
2) It the folder structure of mopub-sdk is the cause of the problem: how can I solve it?
UPDATE:
While trying to reimport the mopub-sdk project, I'm getting this error.
I found the solution.
The problem was finally mopub-sdk library project and the problems at the import stage.
I fixed the nested directory issue within the src/ folder and the build was successful.
To fix our ANT build remove the 'test' folder under src and the compile errors in ANT went away.
Specifically the files in this part of the downloaded SDK:
https://github.com/mopub/mopub-android-sdk/tree/master/mopub-sdk/src/test

Phonegap Android with PushPlugin compilation failure

I'm trying to run a phonegap application with the PushPlugin installed.
I adde the plugin with this command:
$ phonegap local plugin add https://github.com/phonegap-build/PushPlugin
and it went through ok.
I added the PushNotification.js file to my "www" folder and referenced it in index.html.
Then I added some code to handle notifications in my index.js file.
I tried to run the application:
$ phonegap local run android
and got this:
-compile:
[javac] Compiling 8 source files to /Users/nadavelyashiv/Code/PushNotificationSample/platforms/android/bin/classes
[javac] /Users/nadavelyashiv/Code/PushNotificationSample/platforms/android/src/com/plugin/gcm/GCMIntentService.java:96: cannot find symbol
[javac] symbol : method getString(java.lang.String)
[javac] location: class com.plugin.gcm.GCMIntentService
[javac] .setTicker(getString("title"))
[javac] ^
[javac] /Users/nadavelyashiv/Code/PushNotificationSample/platforms/android/src/com/plugin/gcm/GCMIntentService.java:95: cannot find symbol
[javac] symbol : method getString(java.lang.String)
[javac] location: class com.plugin.gcm.GCMIntentService
[javac] .setContentTitle(getString("title"))
[javac] ^
[javac] 2 errors
BUILD FAILED
/usr/local/Cellar/android-sdk/r22.0.4/tools/ant/build.xml:720: The following error occurred while executing this line:
/usr/local/Cellar/android-sdk/r22.0.4/tools/ant/build.xml:734: Compile failed; see the compiler error output for details.
What seems to be the problem here?
Thank you.
Found issue, created a PullRequest on project :
https://github.com/phonegap-build/PushPlugin/pull/83/files
You should update the code of line 95 and 96 of android/com/plugin/gcm/GCMIntentService.java
.setContentTitle(extras.getString("title"))
.setTicker(extras.getString("title"))

Categories

Resources