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

Problem when build version #7

Open
fluvios opened this issue Mar 17, 2018 · 0 comments
Open

Problem when build version #7

fluvios opened this issue Mar 17, 2018 · 0 comments

Comments

@fluvios
Copy link

fluvios commented Mar 17, 2018

hello, i want to ask about the library. when i build using react-native run-android, i got some trouble like this

`va:10: error: cannot find symbol
import com.facebook.react.ReactApplication;
^
symbol: class ReactApplication
location: package com.facebook.react
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:22: error: cannot find symbol
import com.facebook.react.modules.core.ChoreographerCompat;
^
symbol: class ChoreographerCompat
location: package com.facebook.react.modules.core
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:24: error: cannot find symbol
import com.facebook.react.modules.core.ReactChoreographer;
^
symbol: class ReactChoreographer
location: package com.facebook.react.modules.core
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:105: error: cannot find symbol
latestJSBundleLoader = JSBundleLoader.createAssetLoader(getReactApplicationContext(), latestJSBundleFile, false);
^
symbol: method createAssetLoader(ReactApplicationContext,String,boolean)
location: class JSBundleLoader
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:107: error: method createFileLoader in class JSBundleLoader cannot be applied to given types;
latestJSBundleLoader = JSBundleLoader.createFileLoader(latestJSBundleFile);
^
required: Context,String
found: String
reason: actual and formal argument lists differ in length
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:145: error: cannot find symbol
instanceManager.recreateReactContextInBackground();
^
symbol: method recreateReactContextInBackground()
location: variable instanceManager of type ReactInstanceManager
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:196: error: cannot find symbol
ReactApplication reactApplication = (ReactApplication) currentActivity.getApplication();
^
symbol: class ReactApplication
location: class CodePushNativeModule
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:196: error: cannot find symbol
ReactApplication reactApplication = (ReactApplication) currentActivity.getApplication();
^
symbol: class ReactApplication
location: class CodePushNativeModule
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:235: error: package ReactChoreographer does not exist
ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new ChoreographerCompat.FrameCallback() {
^
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:235: error: package ChoreographerCompat does not exist
ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new ChoreographerCompat.FrameCallback() {
^
C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java:235: error: cannot find symbol
ReactChoreographer.getInstance().postFrameCallback(ReactChoreographer.CallbackType.TIMERS_EVENTS, new ChoreographerCompat.FrameCallback() {
^
symbol: variable ReactChoreographer
Note: C:\Users\Test\Documents\Kerja\bmh-mobile\node_modules\react-native-code-push\android\app\src\main\java\com\microsoft\codepush\react\CodePushNativeModule.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
11 errors
:react-native-code-push:compileReleaseJavaWithJavac FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':react-native-code-push:compileReleaseJavaWithJavac'.

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.`

i am using

"react-native": "0.52.0",
"react-native-midtrans": "0.0.3",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant