Fails to compile on Android Studio 2.2.3
Opened this issue · 5 comments
Hi, it seems the plugin fails to compile on Android Studio 2.2.3. I am not sure if the cause is the newest revision of the plugin or not.
Below are the errors:
Error:(4, 26) error: package com.flurry.android does not exist
Error:(5, 26) error: package com.flurry.android does not exist
Error:(6, 26) error: package com.flurry.android does not exist
Error:(69, 13) error: cannot find symbol variable FlurryAgent
Error:(79, 13) error: cannot find symbol variable FlurryAgent
Error:(89, 13) error: cannot find symbol variable FlurryAgent
Error:(100, 13) error: cannot find symbol variable FlurryAgent
Error:(102, 13) error: cannot find symbol variable FlurryAgent
Error:(115, 21) error: cannot find symbol variable FlurryAgent
Error:(119, 21) error: cannot find symbol variable FlurryAgent
Error:(122, 21) error: cannot find symbol variable FlurryAgent
Error:(127, 47) error: cannot find symbol variable Constants
Error:(127, 25) error: cannot find symbol variable FlurryAgent
Error:(129, 47) error: cannot find symbol variable Constants
Error:(129, 25) error: cannot find symbol variable FlurryAgent
Error:(135, 21) error: cannot find symbol variable FlurryAgent
Error:(141, 25) error: cannot find symbol variable FlurryAgent
Error:(142, 25) error: cannot find symbol variable FlurryAgent
Error:(144, 25) error: cannot find symbol variable FlurryAgent
Error:(145, 25) error: cannot find symbol variable FlurryAgent
Error:(147, 25) error: cannot find symbol variable FlurryAgent
Error:(148, 25) error: cannot find symbol variable FlurryAgent
Error:(150, 25) error: cannot find symbol variable FlurryAgent
Error:(151, 25) error: cannot find symbol variable FlurryAgent
Error:(153, 25) error: cannot find symbol variable FlurryAgent
Error:(154, 25) error: cannot find symbol variable FlurryAgent
Error:(161, 21) error: cannot find symbol variable FlurryAgent
Error:(177, 13) error: cannot find symbol variable FlurryAgent
Error:(187, 9) error: cannot find symbol class FlurryEventRecordStatus
Error:(192, 22) error: cannot find symbol variable FlurryAgent
Error:(194, 22) error: cannot find symbol variable FlurryAgent
Error:(197, 23) error: cannot find symbol variable FlurryEventRecordStatus
Error:Execution failed for task ':compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
and
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:4: error: package com.flurry.android does not exist
import com.flurry.android.Constants;
^
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:5: error: package com.flurry.android does not exist
import com.flurry.android.FlurryAgent;
^
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:6: error: package com.flurry.android does not exist
import com.flurry.android.FlurryEventRecordStatus;
^
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:69: error: cannot find symbol
FlurryAgent.setLocation(latitude, longitude);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:79: error: cannot find symbol
FlurryAgent.onError(args.getString(0), args.getString(1), new Exception(args.getString(1)));
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:89: error: cannot find symbol
FlurryAgent.onPageView();
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:100: error: cannot find symbol
FlurryAgent.endTimedEvent(event);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:102: error: cannot find symbol
FlurryAgent.endTimedEvent(event, this.jsonObjectToMap(args.getJSONObject(1)));
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:115: error: cannot find symbol
FlurryAgent.setVersionName(options.getString("version"));
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:119: error: cannot find symbol
FlurryAgent.setContinueSessionMillis(options.getInt("continueSessionSeconds") * 1000);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:122: error: cannot find symbol
FlurryAgent.setUserId(options.getString("userId"));
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:127: error: cannot find symbol
FlurryAgent.setGender(Constants.MALE);
^
symbol: variable Constants
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:127: error: cannot find symbol
FlurryAgent.setGender(Constants.MALE);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:129: error: cannot find symbol
FlurryAgent.setGender(Constants.FEMALE);
^
symbol: variable Constants
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:129: error: cannot find symbol
FlurryAgent.setGender(Constants.FEMALE);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:135: error: cannot find symbol
FlurryAgent.setAge(options.getInt("age"));
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:141: error: cannot find symbol
FlurryAgent.setLogLevel(Log.VERBOSE);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:142: error: cannot find symbol
FlurryAgent.setLogEnabled(true);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:144: error: cannot find symbol
FlurryAgent.setLogLevel(Log.DEBUG);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:145: error: cannot find symbol
FlurryAgent.setLogEnabled(true);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:147: error: cannot find symbol
FlurryAgent.setLogLevel(Log.INFO);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:148: error: cannot find symbol
FlurryAgent.setLogEnabled(true);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:150: error: cannot find symbol
FlurryAgent.setLogLevel(Log.WARN);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:151: error: cannot find symbol
FlurryAgent.setLogEnabled(true);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:153: error: cannot find symbol
FlurryAgent.setLogLevel(Log.ERROR);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:154: error: cannot find symbol
FlurryAgent.setLogEnabled(true);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:161: error: cannot find symbol
FlurryAgent.setLogEvents(options.getBoolean("enableEventLogging"));
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:177: error: cannot find symbol
FlurryAgent.init(cordova.getActivity(), appKey);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:187: error: cannot find symbol
FlurryEventRecordStatus result;
^
symbol: class FlurryEventRecordStatus
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:192: error: cannot find symbol
result = FlurryAgent.logEvent(eventName, timed);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:194: error: cannot find symbol
result = FlurryAgent.logEvent(eventName, this.jsonObjectToMap(args.getJSONObject(2)), timed);
^
symbol: variable FlurryAgent
location: class FlurryAnalyticsPlugin
/Programming/v3/Sketch-Nation-HTML5-Assets/phonegap/sketchnation_android/platforms/android/src/com/blakgeek/cordova/plugin/flurry/FlurryAnalyticsPlugin.java:197: error: cannot find symbol
if (result == FlurryEventRecordStatus.kFlurryEventRecorded) {
^
symbol: variable FlurryEventRecordStatus
location: class FlurryAnalyticsPlugin
It appears the cordova-plugin-flurry-analytics/src/android folder is missing the jar and gradle files.
The above warnings and errors are caused by the new plugin. The missing jar/gradle files are just what I noticed was different from version 1.1.0 which does work for me.