Can't able to run react-native-maps in my Project - react-native

I am trying to install react-native-maps in my project and followed the instructions given in the https://github.com/react-native-community/react-native-maps/blob/master/docs/installation.md. But still I am getting error after running my project in Android and it displays error of UIBlock which is present in the AirMapModule.java of react-native-maps in Android Studio. Can anyone help me regarding this?
Here are the versions of my project:
"react": "16.6.1",
"react-native": "^0.59.2",
"react-native-maps": "^0.23.0"
Here is the error which I am getting :
^
symbol: class UIBlock
location: package com.facebook.react.uimanager
D:\Maps\Project\node_modules\react-native-maps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapView.java:129: error: getCurrentActivity() is not public in ReactContext; cannot be accessed from outside package
if (!contextHasBug(appContext.getCurrentActivity())) {
^
D:\Maps\Project\node_modules\react-native-maps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapView.java:130: error: getCurrentActivity() is not public in ReactContext; cannot be accessed from outside package
superContext = appContext.getCurrentActivity();
^
D:\Maps\Project\node_modules\react-native-maps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapView.java:133: error: cannot find symbol
if (!contextHasBug(reactContext.getCurrentActivity())) {
^
symbol: method getCurrentActivity()
location: variable reactContext of type ThemedReactContext
D:\Maps\Project\node_modules\react-native-maps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapView.java:134: error: cannot find symbol
superContext = reactContext.getCurrentActivity();
^
symbol: method getCurrentActivity()
location: variable reactContext of type ThemedReactContext
D:\Maps\Project\node_modules\react-native-maps\lib\android\src\main\java\com\airbnb\android\react\maps\ViewAttacherGroup.java:23: error: cannot find symbol
this.setOverflow("hidden"); // Change to ViewProps.HIDDEN until RN 0.57 is base
^
symbol: method setOverflow(String)
D:\Maps\Project\node_modules\react-native-maps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapMarkerManager.java:127: error: method does not override or implement a method from a supertype
#Override
^
D:\Maps\Project\node_modules\react-native-maps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapMarkerManager.java:130: error: cannot find symbol
super.setZIndex(view, zIndex);
^
symbol: method setZIndex(AirMapMarker,float)
D:\Maps\Project\node_modules\react-native-maps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapModule.java:90: error: cannot find symbol
uiManager.addUIBlock(new UIBlock() {
^
symbol: class UIBlock
location: class AirMapModule
D:\Maps\Project\node_modules\react-native-maps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapModule.java:149: error: cannot find symbol
uiManager.addUIBlock(new UIBlock()
^
symbol: class UIBlock
location: class AirMapModule
D:\Maps\Project\node_modules\react-native-maps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapModule.java:192: error: cannot find symbol
uiManager.addUIBlock(new UIBlock()
^
symbol: class UIBlock
location: class AirMapModule
D:\Maps\Project\node_modules\react-native-maps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapModule.java:229: error: cannot find symbol
uiManager.addUIBlock(new UIBlock()
^
symbol: class UIBlock
location: class AirMapModule
D:\Maps\Project\node_modules\react-native-maps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapModule.java:262: error: cannot find symbol
uiManager.addUIBlock(new UIBlock()
^
symbol: class UIBlock
location: class AirMapModule
D:\Maps\Project\node_modules\react-native-maps\lib\android\src\main\java\com\airbnb\android\react\maps\RegionChangeEvent.java:15: error: no suitable constructor found for Event(int)
super(id);
^
constructor Event.Event() is not applicable
(actual and formal argument lists differ in length)
constructor Event.Event(int,long) is not applicable
(actual and formal argument lists differ in length)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
14 errors```

Try to split your Maven dependancies as explained here:
allprojects {
repositories {
mavenLocal()
jcenter()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url "$rootDir/../node_modules/react-native/android"
}
maven {
url "https://maven.google.com"
}
}
}
https://github.com/react-native-community/react-native-maps/issues/2090

Related

Detox build fails for Android - :app:compileDebugAndroidTestJavaWithJavac FAILED

I am attempting to finish setting up Detox on my bare Expo project. I have followed the instructions in the docs and believe I have everything configured for Android, but I'm getting an error running detox build -c android.emu.debug. Note that I have TestButler set up as well and installed on the emulator.
/Users/brand/psrn/parksmarter/android/app/src/androidTest/java/com/polygrok.parksmarter/DetoxTest.java:22: error: cannot find symbol
TestButlerProbe.assertReadyIfInstalled();
^
symbol: variable TestButlerProbe
location: class DetoxTest
/Users/brand/psrn/parksmarter/android/app/src/androidTest/java/com/polygrok.parksmarter/TestButlerProbe.java:10: error: cannot find symbol
Log.i(LOG_TAG, "Test butler service verification started...");
^
symbol: variable Log
location: class TestButlerProbe
/Users/brand/psrn/parksmarter/android/app/src/androidTest/java/com/polygrok.parksmarter/TestButlerProbe.java:13: error: cannot find symbol
Log.w(LOG_TAG, "Test butler not installed on device - skipping verification");
^
symbol: variable Log
location: class TestButlerProbe
/Users/brand/psrn/parksmarter/android/app/src/androidTest/java/com/polygrok.parksmarter/TestButlerProbe.java:18: error: cannot find symbol
Log.i(LOG_TAG, "Test butler service is up and running!");
^
symbol: variable Log
location: class TestButlerProbe
/Users/brand/psrn/parksmarter/android/app/src/androidTest/java/com/polygrok.parksmarter/TestButlerProbe.java:23: error: cannot find symbol
PackageManager pm = InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager();
^
symbol: class PackageManager
location: class TestButlerProbe
/Users/brand/psrn/parksmarter/android/app/src/androidTest/java/com/polygrok.parksmarter/TestButlerProbe.java:23: error: cannot find symbol
PackageManager pm = InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager();
^
symbol: variable InstrumentationRegistry
location: class TestButlerProbe
/Users/brand/psrn/parksmarter/android/app/src/androidTest/java/com/polygrok.parksmarter/TestButlerProbe.java:26: error: package PackageManager does not exist
} catch (PackageManager.NameNotFoundException e) {
^
/Users/brand/psrn/parksmarter/android/app/src/androidTest/java/com/polygrok.parksmarter/TestButlerProbe.java:35: error: cannot find symbol
TestButler.setRotation(Surface.ROTATION_0);
^
symbol: variable Surface
location: class TestButlerProbe
/Users/brand/psrn/parksmarter/android/app/src/androidTest/java/com/polygrok.parksmarter/TestButlerProbe.java:35: error: cannot find symbol
TestButler.setRotation(Surface.ROTATION_0);
^
symbol: variable TestButler
location: class TestButlerProbe
Note: /Users/brand/psrn/parksmarter/android/app/src/androidTest/java/com/polygrok.parksmarter/DetoxTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
9 errors

react-native-maps build failed

I installed react-native-maps but when i try to build it fails and gives the following error despite that javac works
> Task :react-native-maps:compileDebugJavaWithJavac
D:\COURSES\ReactNative-ThePracticalGuide\myFirstApp\node_modules\react-native-ma
ps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapView.java:12: e
rror: package androidx.core.view does not exist
import androidx.core.view.GestureDetectorCompat;
^
D:\COURSES\ReactNative-ThePracticalGuide\myFirstApp\node_modules\react-native-ma
ps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapView.java:13: e
rror: package androidx.core.view does not exist
import androidx.core.view.MotionEventCompat;
^
D:\COURSES\ReactNative-ThePracticalGuide\myFirstApp\node_modules\react-native-ma
ps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapView.java:73: e
rror: package androidx.core.content does not exist
import static androidx.core.content.PermissionChecker.checkSelfPermission;
^
D:\COURSES\ReactNative-ThePracticalGuide\myFirstApp\node_modules\react-native-ma
ps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapView.java:73: e
rror: static import only from classes and interfaces
import static androidx.core.content.PermissionChecker.checkSelfPermission;
^
D:\COURSES\ReactNative-ThePracticalGuide\myFirstApp\node_modules\react-native-ma
ps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapView.java:108:
error: cannot find symbol
private final GestureDetectorCompat gestureDetector;
^
symbol: class GestureDetectorCompat
location: class AirMapView
D:\COURSES\ReactNative-ThePracticalGuide\myFirstApp\node_modules\react-native-ma
ps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapView.java:165:
error: cannot find symbol
new GestureDetectorCompat(reactContext, new GestureDetector.SimpleOnGest
ureListener() {
^
symbol: class GestureDetectorCompat
location: class AirMapView
D:\COURSES\ReactNative-ThePracticalGuide\myFirstApp\node_modules\react-native-ma
ps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapView.java:421:
error: cannot find symbol
return checkSelfPermission(getContext(), PERMISSIONS[0]) == PackageManager.P
ERMISSION_GRANTED ||
^
symbol: method checkSelfPermission(Context,String)
location: class AirMapView
D:\COURSES\ReactNative-ThePracticalGuide\myFirstApp\node_modules\react-native-ma
ps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapView.java:422:
error: cannot find symbol
checkSelfPermission(getContext(), PERMISSIONS[1]) == PackageManager.PERM
ISSION_GRANTED;
^
symbol: method checkSelfPermission(Context,String)
location: class AirMapView
D:\COURSES\ReactNative-ThePracticalGuide\myFirstApp\node_modules\react-native-ma
ps\lib\android\src\main\java\com\airbnb\android\react\maps\AirMapView.java:949:
error: cannot find symbol
int action = MotionEventCompat.getActionMasked(ev);
^
symbol: variable MotionEventCompat
location: class AirMapView
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
9 errors
> Task :react-native-maps:compileDebugJavaWithJavac FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':react-native-maps:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
the versions of my packages
"react-native": "0.59.10",
"react-native-maps": "0.26.1",
the dependencies in app/build.gradle file
dependencies {
implementation "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}"
implementation 'com.android.support:design:27.1.0'
implementation "com.facebook.react:react-native:+" // From node_modules
compile fileTree(dir: "libs", include: ["*.jar"])
compile project(':react-native-vector-icons')
compile project(':react-native-navigation')
implementation(project(':react-native-maps')){
exclude group: 'com.google.android.gms', module: 'play-services-base'
exclude group: 'com.google.android.gms', module: 'play-services-maps'
}
implementation 'com.google.android.gms:play-services-base:10.0.1'
implementation 'com.google.android.gms:play-services-maps:10.0.1'
}
I followed the installations instructions carefully but the build still failed.
Any solution to this problem ?
try upgrading react native to a version 0.60+ and don't forget to unlink react native maps
I found the solution to my problem.
First i add the following lines to ./android/gradle.properties
android.useAndroidX=true
android.enableJetifier=true
then adding jetifier will fix it
npm install --save-dev jetifier
npx jetify
npx react-native run-android
that fixed the problem for me.

react native webview error, com.reactnativecommunity.webview.events does not exist

I am trying to use https://github.com/react-native-community/react-native-webview.
I get this error when I try and react-native run-android, any ideas how I can use webview?
\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java:54: error: package com.reactnativecommunity.webview.events does not exist
Using:
react-native-cli: 2.0.1
react-native: 0.57.1
error in full:
Task :react-native-webview:compileDebugJavaWithJavac
C:\Users\Matt\sites\tcapp\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java:54: error: package com.reactnativecommunity.webview.events does not exist
import com.reactnativecommunity.webview.events.TopLoadingErrorEvent;
^
C:\Users\Matt\sites\tcapp\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java:55: error: package com.reactnativecommunity.webview.events does not exist
import com.reactnativecommunity.webview.events.TopLoadingFinishEvent;
^
C:\Users\Matt\sites\tcapp\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java:56: error: package com.reactnativecommunity.webview.events does not exist
import com.reactnativecommunity.webview.events.TopLoadingProgressEvent;
^
C:\Users\Matt\sites\tcapp\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java:57: error: package com.reactnativecommunity.webview.events does not exist
import com.reactnativecommunity.webview.events.TopLoadingStartEvent;
^
C:\Users\Matt\sites\tcapp\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java:58: error: package com.reactnativecommunity.webview.events does not exist
import com.reactnativecommunity.webview.events.TopMessageEvent;
^
C:\Users\Matt\sites\tcapp\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java:59: error: package com.reactnativecommunity.webview.events does not exist
import com.reactnativecommunity.webview.events.TopShouldStartLoadWithRequestEvent;
^
C:\Users\Matt\sites\tcapp\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java:455: error: cannot find symbol
export.put(TopLoadingProgressEvent.EVENT_NAME, MapBuilder.of("registrationName", "onLoadingProgress"));
^
symbol: variable TopLoadingProgressEvent
location: class RNCWebViewManager
C:\Users\Matt\sites\tcapp\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java:456: error: cannot find symbol
export.put(TopShouldStartLoadWithRequestEvent.EVENT_NAME, MapBuilder.of("registrationName", "onShouldStartLoadWithRequest"));
^
symbol: variable TopShouldStartLoadWithRequestEvent
location: class RNCWebViewManager
C:\Users\Matt\sites\tcapp\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java:457: error: method getJSEventName in enum ScrollEventType cannot be applied to given types;
export.put(ScrollEventType.getJSEventName(ScrollEventType.SCROLL), MapBuilder.of("registrationName", "onScroll"));
^
required: no arguments
found: ScrollEventType
reason: actual and formal argument lists differ in length
C:\Users\Matt\sites\tcapp\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java:732: error: cannot find symbol
new TopLoadingProgressEvent(
^
symbol: class TopLoadingProgressEvent
location: class RNCWebChromeClient
C:\Users\Matt\sites\tcapp\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java:617: error: cannot find symbol
new TopLoadingStartEvent(
^
symbol: class TopLoadingStartEvent
location: class RNCWebViewClient
C:\Users\Matt\sites\tcapp\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java:626: error: cannot find symbol
new TopShouldStartLoadWithRequestEvent(
^
symbol: class TopShouldStartLoadWithRequestEvent
location: class RNCWebViewClient
C:\Users\Matt\sites\tcapp\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java:659: error: cannot find symbol
new TopLoadingErrorEvent(webView.getId(), eventData));
^
symbol: class TopLoadingErrorEvent
location: class RNCWebViewClient
C:\Users\Matt\sites\tcapp\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java:665: error: cannot find symbol
new TopLoadingFinishEvent(
^
symbol: class TopLoadingFinishEvent
location: class RNCWebViewClient
C:\Users\Matt\sites\tcapp\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java:901: error: cannot find symbol
dispatchEvent(this, new TopMessageEvent(this.getId(), message));
^
symbol: class TopMessageEvent
location: class RNCWebView
Note: C:\Users\Matt\sites\tcapp\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\Users\Matt\sites\tcapp\node_modules\react-native-webview\android\src\main\java\com\reactnativecommunity\webview\RNCWebViewManager.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
15 errors
Task :react-native-webview:compileDebugJavaWithJavac FAILED
This issue happened to me
i had these versions of react-native and react-native-webview version
"react-native-webview": "^5.12.1"
{
"react": "16.8.3",
"react-native": "0.59.9",
"react-native-webview": "^5.12.1",
...
}
Everything was fine for my previous version of project nothing happned with this version.
After updating android-studio and upgrade the gradle, i freshly build and run the same project (after i clone the same project from my github repo.). This issue occured, then i put and checked each new version (above 5.12.1) of react-native-webview. Finally, it matched, fixed the error and successfully build the app with this version.
"react-native-webview": "^7.5.2"
{
"react": "16.8.3",
"react-native": "0.59.9",
"react-native-webview": "^7.5.2",
...
}
click node_modules folder
delete react-native-webview folder
install latest one npm i react-native-webview

react-native-push-notification can not build in android

I'll be using react-native-push-notification for notifications in my app but when I use this library it gives me error like this.....
> Task :react-native-push-notification:compileDebugJavaWithJavac FAILED
E:\AndroidNotify\node_modules\react-native-push-notification\android\src\main\java\com\dieam\reactnativepushnotification\modules\RNPushNotificationHelper.java:7: error: cannot find symbol
import android.app.NotificationChannel;
^
symbol: class NotificationChannel
location: package android.app
E:\AndroidNotify\node_modules\react-native-push-notification\android\src\main\java\com\dieam\reactnativepushnotification\modules\RNPushNotificationHelper.java:480: error: cannot find symbol
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O)
^
symbol: variable O
location: class VERSION_CODES
E:\AndroidNotify\node_modules\react-native-push-notification\android\src\main\java\com\dieam\reactnativepushnotification\modules\RNPushNotificationHelper.java:488: error: cannot find symbol
int importance = NotificationManager.IMPORTANCE_DEFAULT;
^
symbol: variable IMPORTANCE_DEFAULT
location: class NotificationManager
E:\AndroidNotify\node_modules\react-native-push-notification\android\src\main\java\com\dieam\reactnativepushnotification\modules\RNPushNotificationHelper.java:489: error: cannot find symbol
NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, name, importance);
^
symbol: class NotificationChannel
location: class RNPushNotificationHelper
E:\AndroidNotify\node_modules\react-native-push-notification\android\src\main\java\com\dieam\reactnativepushnotification\modules\RNPushNotificationHelper.java:489: error: cannot find symbol
NotificationChannel channel = new NotificationChannel(NOTIFICATION_CHANNEL_ID, name, importance);
^
symbol: class NotificationChannel
location: class RNPushNotificationHelper
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
5 errors
Try to upgrade on react-native-push-notification/android/build.gradle this dependencies
def DEFAULT_COMPILE_SDK_VERSION = 26
def DEFAULT_BUILD_TOOLS_VERSION = "26.1.0"
def DEFAULT_TARGET_SDK_VERSION = 23
def DEFAULT_SUPPORT_LIB_VERSION = "26.1.0"
def DEFAULT_GOOGLE_PLAY_SERVICES_VERSION = "+"
def DEFAULT_FIREBASE_MESSAGING_VERSION = "+"
let me know if that helps you
Error whith RNPushNotifications android
I've had this problem also, after fixing the deprecated 'compile' issue in the dependency configurations - module's build.gradle, however, I didn't change the SDK versions there, instead I've added API Level 28 on SDK Platforms in Android Studio and ... voilĂ .
Increase the complieSDK >= 26 (Oreo).
Notification channel was introduced in Oreo or SDK 26

Compile error during running Selenium tests remotely from jenkins

I am trying to run selenium tests from a remote machine through Jenkins (Jenkins is running as root). I am able to run the tests perfectly by SSH through terminal but when I try to run the tests from Jenkins, I get the error mentioned below:
Started by user anonymous
Building in workspace [workspace path]
SSH: Connecting from host [host-name]
SSH: Connecting with configuration [ruser name] ...
SSH: EXEC: STDOUT/STDERR from command [command to run] ...
Test Location: [location]
Test started at: 2013-01-21T16:36:44
Test in Progress...
...starting events generation
SalesforceHome.java:3: error: package com.thoughtworks.selenium does not exist
import com.thoughtworks.selenium.*;
^
SalesforceHome.java:4: error: package org.junit does not exist
import org.junit.After;
^
SalesforceHome.java:5: error: package org.junit does not exist
import org.junit.Before;
^
SalesforceHome.java:6: error: package org.junit does not exist
import org.junit.Test;
^
SalesforceHome.java:7: error: package org.openqa.selenium does not exist
import org.openqa.selenium.WebDriver;
^
SalesforceHome.java:8: error: package org.openqa.selenium does not exist
import org.openqa.selenium.WebDriverBackedSelenium;
^
SalesforceHome.java:9: error: package org.openqa.selenium.chrome does not exist
import org.openqa.selenium.chrome.ChromeDriver;
^
SalesforceHome.java:10: error: package org.openqa.selenium.firefox does not exist
import org.openqa.selenium.firefox.FirefoxDriver;
^
SalesforceHome.java:11: error: package org.openqa.selenium.firefox does not exist
import org.openqa.selenium.firefox.FirefoxProfile;
^
SalesforceHome.java:12: error: package org.openqa.selenium.remote does not exist
import org.openqa.selenium.remote.DesiredCapabilities;
^
SalesforceHome.java:13: error: package org.openqa.selenium.remote does not exist
import org.openqa.selenium.remote.RemoteWebDriver;
^
SalesforceHome.java:20: error: package org.apache.log4j does not exist
import org.apache.log4j.Logger;
^
SalesforceHome.java:21: error: package org.apache.log4j.xml does not exist
import org.apache.log4j.xml.DOMConfigurator;
^
SalesforceHome.java:22: error: package org.apache.log4j does not exist
import org.apache.log4j.*;
^
SalesforceHome.java:23: error: package org.apache.log4j does not exist
import org.apache.log4j.FileAppender;
^
SalesforceHome.java:24: error: package org.apache.log4j does not exist
import org.apache.log4j.RollingFileAppender;
^
SalesforceHome.java:26: error: cannot find symbol
public class SalesforceHome extends SeleneseTestBase{
^
symbol: class SeleneseTestBase
SalesforceHome.java:27: error: cannot find symbol
Logger logger;
^
symbol: class Logger
location: class SalesforceHome
SalesforceHome.java:28: error: cannot find symbol
#Before
^
symbol: class Before
location: class SalesforceHome
SalesforceHome.java:64: error: cannot find symbol
#Test
^
symbol: class Test
location: class SalesforceHome
SalesforceHome.java:87: error: cannot find symbol
#After
^
symbol: class After
location: class SalesforceHome
SalesforceHome.java:31: error: cannot find symbol
logger = Logger.getLogger(this.getClass().getName());
^
symbol: method getClass()
SalesforceHome.java:31: error: cannot find symbol
logger = Logger.getLogger(this.getClass().getName());
^
symbol: variable Logger
location: class SalesforceHome
SalesforceHome.java:32: error: cannot find symbol
DOMConfigurator.configure("log4j.xml");
^
symbol: variable DOMConfigurator
location: class SalesforceHome
SalesforceHome.java:51: error: cannot find symbol
WebDriver driver = conf.setConf(BName);
^
symbol: class WebDriver
location: class SalesforceHome
SalesforceHome.java:51: error: cannot access WebDriver
WebDriver driver = conf.setConf(BName);
^
class file for org.openqa.selenium.WebDriver not found
SalesforceHome.java:54: error: cannot find symbol
if (driver instanceof RemoteWebDriver)
^
symbol: class RemoteWebDriver
location: class SalesforceHome
SalesforceHome.java:56: error: cannot find symbol
((RemoteWebDriver) driver).setLogLevel(Level.OFF);
^
symbol: class RemoteWebDriver
location: class SalesforceHome
SalesforceHome.java:61: error: cannot find symbol
selenium = new WebDriverBackedSelenium(driver, baseUrl);
^
symbol: variable selenium
location: class SalesforceHome
SalesforceHome.java:61: error: cannot find symbol
selenium = new WebDriverBackedSelenium(driver, baseUrl);
^
symbol: class WebDriverBackedSelenium
location: class SalesforceHome
SalesforceHome.java:67: error: cannot find symbol
selenium.setTimeout("1000000");
^
symbol: variable selenium
location: class SalesforceHome
SalesforceHome.java:68: error: cannot find symbol
selenium.open("/");
^
symbol: variable selenium
location: class SalesforceHome
SalesforceHome.java:71: error: cannot find symbol
selenium.type("id=", "");
^
symbol: variable selenium
location: class SalesforceHome
SalesforceHome.java:72: error: cannot find symbol
selenium.type("id=", "");
^
symbol: variable selenium
location: class SalesforceHome
SalesforceHome.java:73: error: cannot find symbol
selenium.click("id=");
^
symbol: variable selenium
location: class SalesforceHome
SalesforceHome.java:75: error: cannot find symbol
selenium.waitForPageToLoad("150000");
^
symbol: variable selenium
location: class SalesforceHome
SalesforceHome.java:76: error: cannot find symbol
selenium.click("link=");
^
symbol: variable selenium
location: class SalesforceHome
SalesforceHome.java:78: error: cannot find symbol
selenium.waitForPageToLoad("150000");
^
symbol: variable selenium
location: class SalesforceHome
SalesforceHome.java:79: error: cannot find symbol
selenium.type("id=", "");
^
symbol: variable selenium
location: class SalesforceHome
SalesforceHome.java:80: error: cannot find symbol
selenium.click("id=");
^
symbol: variable selenium
location: class SalesforceHome
SalesforceHome.java:82: error: cannot find symbol
selenium.waitForPageToLoad("150000");
^
symbol: variable selenium
location: class SalesforceHome
SalesforceHome.java:89: error: cannot find symbol
selenium.stop();
^
symbol: variable selenium
location: class SalesforceHome
42 errors
Error: Could not find or load main class org.junit.runner.JUnitCore
SSH: Disconnecting configuration [machine name] ...
ERROR: Exception when publishing, exception message [Exec timed out or was interrupted after 4,067 ms]
[workspace] $ /bin/sh -xe /tmp/hudson1293805758975477494.sh
What am I doing wrong?