-
-
Save tuankiet65/121f723194558913a6ca to your computer and use it in GitHub Desktop.
frameworks/testing/runner/src/main/java/android/support/test/internal/runner/intent/IntentMonitorImpl.java:21: error: package android.support.annotation does not exist | |
import android.support.annotation.NonNull; | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:21: error: cannot find symbol | |
import android.app.Fragment; | |
^ | |
symbol: class Fragment | |
location: package android.app | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:32: error: package android.support.test.internal.runner.hidden does not exist | |
import android.support.test.internal.runner.hidden.ExposedInstrumentationApi; | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:83: error: cannot find symbol | |
public class MonitoringInstrumentation extends ExposedInstrumentationApi { | |
^ | |
symbol: class ExposedInstrumentationApi | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:344: error: cannot find symbol | |
public ActivityResult execStartActivity( | |
^ | |
symbol: class ActivityResult | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:361: error: cannot find symbol | |
public ActivityResult execStartActivity( | |
^ | |
symbol: class ActivityResult | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:398: error: cannot find symbol | |
Context who, IBinder contextThread, IBinder token, Fragment target, | |
^ | |
symbol: class Fragment | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:397: error: cannot find symbol | |
public ActivityResult execStartActivity( | |
^ | |
symbol: class ActivityResult | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:423: error: cannot find symbol | |
private ActivityResult stubResultFor(Intent intent) { | |
^ | |
symbol: class ActivityResult | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:410: error: cannot find symbol | |
private static class StubResultCallable implements Callable<ActivityResult> { | |
^ | |
symbol: class ActivityResult | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:418: error: cannot find symbol | |
public ActivityResult call() { | |
^ | |
symbol: class ActivityResult | |
location: class StubResultCallable | |
frameworks/testing/runner/src/main/java/android/support/test/internal/runner/intent/IntentMonitorImpl.java:54: error: cannot find symbol | |
public void addIntentCallback(@NonNull IntentCallback callback) { | |
^ | |
symbol: class NonNull | |
location: class IntentMonitorImpl | |
frameworks/testing/runner/src/main/java/android/support/test/internal/runner/intent/IntentMonitorImpl.java:77: error: cannot find symbol | |
public void removeIntentCallback(@NonNull IntentCallback callback) { | |
^ | |
symbol: class NonNull | |
location: class IntentMonitorImpl | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:125: error: method registerInstance in class InstrumentationRegistry cannot be applied to given types; | |
InstrumentationRegistry.registerInstance(this, arguments); | |
^ | |
required: Instrumentation,Bundle | |
found: MonitoringInstrumentation,Bundle | |
reason: actual argument MonitoringInstrumentation cannot be converted to Instrumentation by method invocation conversion | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:137: error: cannot find symbol | |
super.onCreate(arguments); | |
^ | |
symbol: variable super | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:120: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:148: error: cannot find symbol | |
File dexCache = getTargetContext().getDir("dxmaker_cache", Context.MODE_PRIVATE); | |
^ | |
symbol: method getTargetContext() | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:156: error: cannot find symbol | |
ClassLoader newClassLoader = this.getClass().getClassLoader(); | |
^ | |
symbol: method getClass() | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:186: error: cannot find symbol | |
super.onStart(); | |
^ | |
symbol: variable super | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:204: error: cannot find symbol | |
waitForIdleSync(); | |
^ | |
symbol: method waitForIdleSync() | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:184: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:232: error: cannot find symbol | |
super.finish(resultCode, results); | |
^ | |
symbol: variable super | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:216: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:272: error: cannot find symbol | |
super.onDestroy(); | |
^ | |
symbol: variable super | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:268: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:278: error: cannot find symbol | |
super.callApplicationOnCreate(app); | |
^ | |
symbol: variable super | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:275: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:306: error: not an enclosing class: MonitoringInstrumentation | |
return MonitoringInstrumentation.super.startActivitySync(intent); | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:282: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:349: error: cannot find symbol | |
ActivityResult ar = stubResultFor(intent); | |
^ | |
symbol: class ActivityResult | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:354: error: cannot find symbol | |
return super.execStartActivity(who, contextThread, token, target, intent, requestCode); | |
^ | |
symbol: variable super | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:343: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:366: error: cannot find symbol | |
ActivityResult ar = stubResultFor(intent); | |
^ | |
symbol: class ActivityResult | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:371: error: cannot find symbol | |
return super.execStartActivity(who, contextThread, token, target, intent, requestCode, options); | |
^ | |
symbol: variable super | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:360: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:377: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:402: error: cannot find symbol | |
ActivityResult ar = stubResultFor(intent); | |
^ | |
symbol: class ActivityResult | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:407: error: cannot find symbol | |
return super.execStartActivity(who, contextThread, token, target, intent, requestCode, options); | |
^ | |
symbol: variable super | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:396: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:428: error: cannot find symbol | |
FutureTask<ActivityResult> task = new FutureTask<ActivityResult>( | |
^ | |
symbol: class ActivityResult | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:428: error: cannot find symbol | |
FutureTask<ActivityResult> task = new FutureTask<ActivityResult>( | |
^ | |
symbol: class ActivityResult | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:454: error: cannot find symbol | |
return super.onException(obj, e); | |
^ | |
symbol: variable super | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:447: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:481: error: cannot find symbol | |
super.callActivityOnDestroy(activity); | |
^ | |
symbol: variable super | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:479: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:487: error: cannot find symbol | |
super.callActivityOnRestart(activity); | |
^ | |
symbol: variable super | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:485: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:494: error: cannot find symbol | |
super.callActivityOnCreate(activity, bundle); | |
^ | |
symbol: variable super | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:491: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:506: error: cannot find symbol | |
super.callActivityOnStart(activity); | |
^ | |
symbol: variable super | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:502: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:517: error: cannot find symbol | |
super.callActivityOnStop(activity); | |
^ | |
symbol: variable super | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:514: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:526: error: cannot find symbol | |
super.callActivityOnResume(activity); | |
^ | |
symbol: variable super | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:524: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:532: error: cannot find symbol | |
super.callActivityOnPause(activity); | |
^ | |
symbol: variable super | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:530: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:563: error: cannot find symbol | |
return super.newActivity(clazz, | |
^ | |
symbol: variable super | |
location: class MonitoringInstrumentation | |
frameworks/testing/runner/src/main/java/android/support/test/runner/MonitoringInstrumentation.java:542: error: method does not override or implement a method from a supertype | |
@Override | |
^ | |
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:189: error: method fromManifest in class Builder cannot be applied to given types; | |
.fromManifest(this) | |
^ | |
required: Instrumentation | |
found: AndroidJUnitRunner | |
reason: actual argument AndroidJUnitRunner cannot be converted to Instrumentation by method invocation conversion | |
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:196: error: cannot find symbol | |
start(); | |
^ | |
symbol: method start() | |
location: class AndroidJUnitRunner | |
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:219: error: constructor Builder in class Builder cannot be applied to given types; | |
TestExecutor.Builder executorBuilder = new TestExecutor.Builder(this); | |
^ | |
required: Instrumentation | |
found: AndroidJUnitRunner | |
reason: actual argument AndroidJUnitRunner cannot be converted to Instrumentation by method invocation conversion | |
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:258: error: constructor ActivityFinisherRunListener in class ActivityFinisherRunListener cannot be applied to given types; | |
builder.addRunListener(new ActivityFinisherRunListener(this, | |
^ | |
required: Instrumentation,MonitoringInstrumentation.ActivityFinisher | |
found: AndroidJUnitRunner,MonitoringInstrumentation.ActivityFinisher | |
reason: actual argument AndroidJUnitRunner cannot be converted to Instrumentation by method invocation conversion | |
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:309: error: method createTestRequestBuilder in class AndroidJUnitRunner cannot be applied to given types; | |
TestRequestBuilder builder = createTestRequestBuilder(this, bundleArgs); | |
^ | |
required: Instrumentation,Bundle | |
found: AndroidJUnitRunner,Bundle | |
reason: actual argument AndroidJUnitRunner cannot be converted to Instrumentation by method invocation conversion | |
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:314: error: cannot find symbol | |
builder.addApkToScan(getContext().getPackageCodePath()); | |
^ | |
symbol: method getContext() | |
location: class AndroidJUnitRunner | |
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:319: error: cannot find symbol | |
if (null != getTargetContext()) { | |
^ | |
symbol: method getTargetContext() | |
location: class AndroidJUnitRunner | |
frameworks/testing/runner/src/main/java/android/support/test/runner/AndroidJUnitRunner.java:321: error: cannot find symbol | |
getTargetContext()).buildIfPossible(); | |
^ | |
symbol: method getTargetContext() | |
location: class AndroidJUnitRunner | |
Note: frameworks/testing/runner/src/main/java/android/support/test/internal/runner/junit4/AndroidJUnit4ClassRunner.java uses or overrides 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. | |
67 errors | |
make: *** [/home/username/android/out/target/common/obj/JAVA_LIBRARIES/android-support-test-src_intermediates/classes-full-debug.jar] Error 41 |
I have same problem with cm-12.1
I'm facing the same 67 errors on cm-12.1 and it's giving me a headache.
Is it possible that someone can advise us with some kind of solution?
I too have exactly the same error (67 errors) though I'm building for galaxy grand duos i9082... CM12.1
Can someone please help because i'm unable to find any fixes...
The same errors for another device... Any progress on the solution?
Well, if you don't care about the testing framework, you can remove the frameworks/testing directory or remove it from the manifests.xml and then try to rebuild again (resync first if you decide to modify manifests.xml instead)
But these're just temporary fixes (resync will recreate the directory sooner or later)
Okay I'll try to rebuild the rom after removing the directory told by you once I reach home.. By the way can you please explain what is the use of it & whether I'll lose any functionality in the build...
Are you sure that this commit caused the whole error?
Did it work for you?
Thanks..
Edit: This works for me.. Thank you so much..
what might make it easier is to remove the project in your local manifest thats what i have done and it hasnt resynced yet and its beenin there since the day i got errors from it. first sync up, or re add it to your main manifest to get itt back other wise it will error out. once thats done try adding the following line to your local manifest <remove-project name="platform/frameworks/testing" />
heres what mine looks like (PasteBin) then repo sync -q the q flag silences alot of output making it easier to see the line confirming the projects removal. the output should look something like this. (PasteBin)
^ Yeah, I forgot the local manifests :(
did you solve this problem?