I'm trying to build CarbonRom for my phone, and when its compiling i get these errors. I'm using java version 1.7 and i'm running Ubuntu 14.04
Code:
target Java: Camera2 (/home/seyi/carbon/out/target/common/obj/APPS/Camera2_intermediates/classes)
target Static Jar: android-opt-datetimepicker (/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/android-opt-datetimepicker_intermediates/javalib.jar)
ProGuard, version 4.4
Reading program jar [/home/seyi/carbon/out/target/common/obj/APPS/DocumentsUI_intermediates/classes.jar]
Reading library jar [/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/core_intermediates/classes.jar]
Reading library jar [/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/core-junit_intermediates/classes.jar]
Reading library jar [/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/ext_intermediates/classes.jar]
Reading library jar [/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes.jar]
Reading library jar [/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/framework2_intermediates/classes.jar]
Note: com.google.common.base.FinalizableReferenceQueue accesses a method 'startFinalizer(java.lang.Class,java.lang.Object)' dynamically
Note: android.support.v4.text.ICUCompatIcs accesses a method 'getScript(java.lang.String)' dynamically
Maybe this is program method 'android.support.v4.text.ICUCompat { java.lang.String getScript(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImpl { java.lang.String getScript(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImplBase { java.lang.String getScript(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImplIcs { java.lang.String getScript(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompatIcs { java.lang.String getScript(java.lang.String); }'
Maybe this is library method 'libcore.icu.ICU { java.lang.String getScript(java.lang.String); }'
Note: android.support.v4.text.ICUCompatIcs accesses a method 'addLikelySubtags(java.lang.String)' dynamically
Maybe this is program method 'android.support.v4.text.ICUCompat { java.lang.String addLikelySubtags(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImpl { java.lang.String addLikelySubtags(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImplBase { java.lang.String addLikelySubtags(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImplIcs { java.lang.String addLikelySubtags(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompatIcs { java.lang.String addLikelySubtags(java.lang.String); }'
Maybe this is library method 'libcore.icu.ICU { java.lang.String addLikelySubtags(java.lang.String); }'
Note: com.google.common.base.internal.Finalizer accesses a method 'finalizeReferent()' dynamically
Maybe this is program method 'com.google.common.base.FinalizableReference { void finalizeReferent(); }'
Note: the configuration keeps the entry point 'com.google.common.cache.LocalCache { com.google.common.cache.LocalCache$ReferenceEntry newEntry(java.lang.Object,int,com.google.common.cache.LocalCache$ReferenceEntry); }', but not the descriptor class 'com.google.common.cache.LocalCache$ReferenceEntry'
Note: the configuration keeps the entry point 'com.google.common.cache.LocalCache { com.google.common.cache.LocalCache$ReferenceEntry copyEntry(com.google.common.cache.LocalCache$ReferenceEntry,com.google.common.cache.LocalCache$ReferenceEntry); }', but not the descriptor class 'com.google.common.cache.LocalCache$ReferenceEntry'
Note: the configuration keeps the entry point 'com.google.common.cache.LocalCache { com.google.common.cache.LocalCache$ReferenceEntry copyEntry(com.google.common.cache.LocalCache$ReferenceEntry,com.google.common.cache.LocalCache$ReferenceEntry); }', but not the descriptor class 'com.google.common.cache.LocalCache$ReferenceEntry'
Note: the configuration keeps the entry point 'com.google.common.cache.LocalCache { com.google.common.cache.LocalCache$ValueReference newValueReference(com.google.common.cache.LocalCache$ReferenceEntry,java.lang.Object,int); }', but not the descriptor class 'com.google.common.cache.LocalCache$ReferenceEntry'
Note: the configuration keeps the entry point 'com.google.common.collect.MapMakerInternalMap { com.google.common.collect.MapMakerInternalMap$ReferenceEntry newEntry(java.lang.Object,int,com.google.common.collect.MapMakerInternalMap$ReferenceEntry); }', but not the descriptor class 'com.google.common.collect.MapMakerInternalMap$ReferenceEntry'
Note: the configuration keeps the entry point 'com.google.common.collect.MapMakerInternalMap { com.google.common.collect.MapMakerInternalMap$ReferenceEntry copyEntry(com.google.common.collect.MapMakerInternalMap$ReferenceEntry,com.google.common.collect.MapMakerInternalMap$ReferenceEntry); }', but not the descriptor class 'com.google.common.collect.MapMakerInternalMap$ReferenceEntry'
Note: the configuration keeps the entry point 'com.google.common.collect.MapMakerInternalMap { com.google.common.collect.MapMakerInternalMap$ReferenceEntry copyEntry(com.google.common.collect.MapMakerInternalMap$ReferenceEntry,com.google.common.collect.MapMakerInternalMap$ReferenceEntry); }', but not the descriptor class 'com.google.common.collect.MapMakerInternalMap$ReferenceEntry'
Note: the configuration keeps the entry point 'com.google.common.collect.MapMakerInternalMap { com.google.common.collect.MapMakerInternalMap$ValueReference newValueReference(com.google.common.collect.MapMakerInternalMap$ReferenceEntry,java.lang.Object); }', but not the descriptor class 'com.google.common.collect.MapMakerInternalMap$ReferenceEntry'
Note: there were 8 unkept descriptor classes in kept class members.
You should consider explicitly keeping the mentioned classes
(using '-keep').
Note: there were 4 accesses to class members by means of introspection.
You should consider explicitly keeping the mentioned class members
(using '-keep' or '-keepclassmembers').
Preparing output jar [/home/seyi/carbon/out/target/common/obj/APPS/DocumentsUI_intermediates/proguard.classes.jar]
Copying resources from program jar [/home/seyi/carbon/out/target/common/obj/APPS/DocumentsUI_intermediates/classes.jar]
target Java: com.android.emailsync (/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/com.android.emailsync_intermediates/classes)
target Static Jar: android-common-chips (/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/android-common-chips_intermediates/javalib.jar)
target Static Jar: libphotoviewer (/home/seyi/carbon/out/target/common/obj/JAVA_LIBRARIES/libphotoviewer_intermediates/javalib.jar)
target Java: Gallery2 (/home/seyi/carbon/out/target/common/obj/APPS/Gallery2_intermediates/classes)
target Dex: LatinIME
target Java: Launcher3 (/home/seyi/carbon/out/target/common/obj/APPS/Launcher3_intermediates/classes)
target Dex: PackageInstaller
target Java: Contacts (/home/seyi/carbon/out/target/common/obj/APPS/Contacts_intermediates/classes)
target Java: Dialer (/home/seyi/carbon/out/target/common/obj/APPS/Dialer_intermediates/classes)
target Java: Mms (/home/seyi/carbon/out/target/common/obj/APPS/Mms_intermediates/classes)
target Java: Settings (/home/seyi/carbon/out/target/common/obj/APPS/Settings_intermediates/classes)
[COLOR="Red"]packages/apps/Settings/src/com/android/settings/profiles/ProfileAirplaneModePreference.java:42: error: cannot find symbol
private ProfileConfig.AirplaneModeItem mAirplaneModeItem;
^
symbol: class AirplaneModeItem
location: class ProfileConfig
packages/apps/Settings/src/com/android/settings/profiles/ProfileAirplaneModePreference.java:105: error: cannot find symbol
public void setAirplaneModeItem(ProfileConfig.AirplaneModeItem airplaneModeItem) {
^
symbol: class AirplaneModeItem
location: class ProfileConfig
packages/apps/Settings/src/com/android/settings/profiles/ProfileAirplaneModePreference.java:155: error: cannot find symbol
public ProfileConfig.AirplaneModeItem getAirplaneModeItem() {
^
symbol: class AirplaneModeItem
location: class ProfileConfig
packages/apps/Settings/src/com/android/settings/profiles/ProfileRingModePreference.java:42: error: cannot find symbol
private ProfileConfig.RingModeItem mRingModeItem;
^
symbol: class RingModeItem
location: class ProfileConfig
packages/apps/Settings/src/com/android/settings/profiles/ProfileRingModePreference.java:105: error: cannot find symbol
public void setRingModeItem(ProfileConfig.RingModeItem ringModeItem) {
^
symbol: class RingModeItem
location: class ProfileConfig
packages/apps/Settings/src/com/android/settings/profiles/ProfileRingModePreference.java:159: error: cannot find symbol
public ProfileConfig.RingModeItem getRingModeItem() {
^
symbol: class RingModeItem
location: class ProfileConfig
packages/apps/Settings/src/com/android/settings/profiles/ProfileConnectionPreference.java:126: error: cannot find symbol
final String[] connectionNames = getContext().getResources().getStringArray(mConnectionItem.mChoices);
^
symbol: variable mChoices
location: variable mConnectionItem of type ConnectionItem
packages/apps/Settings/src/com/android/settings/profiles/ProfileConnectionPreference.java:131: error: cannot find symbol
builder.setSingleChoiceItems(mConnectionItem.mChoices, currentChoice, new DialogInterface.OnClickListener() {
^
symbol: variable mChoices
location: variable mConnectionItem of type ConnectionItem
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.
8 errors[/COLOR]
Related
I have had many successful compiles of CM10 for my device, but all of a sudden I am getting java compile errors
Code:
frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/UsimDataDownloadTest.java:146: cannot find symbol
symbol : class Handler
location: class com.android.internal.telephony.gsm.UsimDataDownloadTest
public void setOnCatSendSmsResult(Handler h, int what, Object obj) {
^
frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/UsimDataDownloadTest.java:150: cannot find symbol
symbol : class Handler
location: class com.android.internal.telephony.gsm.UsimDataDownloadTest
public void unSetOnCatSendSmsResult(Handler h) {
^
frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/UsimDataDownloadCommands.java:35: com.android.internal.telephony.gsm.UsimDataDownloadCommands is not abstract and does not override abstract method unSetOnCatSendSmsResult(android.os.Handler) in com.android.internal.telephony.CommandsInterface
class UsimDataDownloadCommands extends BaseCommands {
^
frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/UsimDataDownloadTest.java:145: method does not override or implement a method from a supertype
@Override
^
frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/UsimDataDownloadTest.java:149: method does not override or implement a method from a supertype
@Override
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
target Java: ImfTestTests (out/target/common/obj/APPS/ImfTestTests_intermediates/classes)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
5 errors
target Java: KeyStoreTests (out/target/common/obj/APPS/KeyStoreTests_intermediates/classes)
make: *** [out/target/common/obj/APPS/FrameworksTelephonyTests_intermediates/classes-full-debug.jar] Error 41
This has put my work to a complete stop.
Hi,
I went through the Android developers tutorial for RenderScript (allows to compute on GPU using C99 and java). I took the code out of the samples and I have a problem with a non recognized function:
In HelloCompute.java main class there is this line:
Code:
mScript.forEach_root()
Eclipse can't find the forEach_root() function.
I looked into the generated java class of the C part, which should be called by the forEach_root() java call:
Code:
package com.example.android.rs.hellocompute;
import android.renderscript.*;
import android.content.res.Resources;
/**
* @hide
*/
public class ScriptC_mono extends ScriptC {
private static final String __rs_resource_name = "mono";
// Constructor
public ScriptC_mono(RenderScript rs) {
this(rs,
rs.getApplicationContext().getResources(),
rs.getApplicationContext().getResources().getIdentifier(
__rs_resource_name, "raw",
rs.getApplicationContext().getPackageName()));
}
public ScriptC_mono(RenderScript rs, Resources resources, int id) {
super(rs, resources, id);
__U8_4 = Element.U8_4(rs);
}
private Element __U8_4;
}
An Idea anyone?
Thanks,
DP
darkPrint said:
Hi,
I went through the Android developers tutorial for RenderScript (allows to compute on GPU using C99 and java). I took the code out of the samples and I have a problem with a non recognized function:
In HelloCompute.java main class there is this line:
Code:
mScript.forEach_root()
Eclipse can't find the forEach_root() function.
I looked into the generated java class of the C part, which should be called by the forEach_root() java call:
Code:
package com.example.android.rs.hellocompute;
import android.renderscript.*;
import android.content.res.Resources;
/**
* @hide
*/
public class ScriptC_mono extends ScriptC {
private static final String __rs_resource_name = "mono";
// Constructor
public ScriptC_mono(RenderScript rs) {
this(rs,
rs.getApplicationContext().getResources(),
rs.getApplicationContext().getResources().getIdentifier(
__rs_resource_name, "raw",
rs.getApplicationContext().getPackageName()));
}
public ScriptC_mono(RenderScript rs, Resources resources, int id) {
super(rs, resources, id);
__U8_4 = Element.U8_4(rs);
}
private Element __U8_4;
}
An Idea anyone?
Thanks,
DP
Click to expand...
Click to collapse
Okay, it was just a corrupted project issue. Loosing so much time for such a stupid issue...
Well, know you know, if you get to this error, clean the project and rebuid, that's it.
Cheers,
DP
Hey Guys trying to build BeanStalk, but I am running into the error below is there a log that will show more info about the warnings and notes?
Note: there were 1 references to unknown classes.
You should check your configuration for typos.
Note: there were 2 accesses to class members by means of introspection.
You should consider explicitly keeping the mentioned class members
(using '-keep' or '-keepclassmembers').
Warning: there were 5 unresolved references to classes or interfaces.
You may need to specify additional library jars (using '-libraryjars'),
or perhaps the '-dontskipnonpubliclibraryclasses' option.
Warning: there were 1 unresolved references to program class members.
Your input classes appear to be inconsistent.
You may need to recompile them and try again.
Alternatively, you may have to specify the options
'-dontskipnonpubliclibraryclasses' and/or
'-dontskipnonpubliclibraryclassmembers'.
Error: Please correct the above warnings first.
make: *** [/root/android/beanstalk/out/target/common/obj/APPS/Email_intermediates/proguard.classes.jar] Error 1
make: *** Waiting for unfinished jobs....
Note: com.google.common.base.FinalizableReferenceQueue accesses a method 'startFinalizer(java.lang.Class,java.lang.Object)' dynamically
Note: com.android.common.SharedPreferencesCompat accesses a method 'apply()' dynamically
Maybe this is library method 'android.app.SharedPreferencesImpl$EditorImpl { void apply(); }'
Maybe this is library method 'android.content.SharedPreferences$Editor { void apply(); }'
Maybe this is library method 'android.media.RemoteControlClient$MetadataEditor { void apply(); }'
Note: com.google.common.base.internal.Finalizer accesses a method 'finalizeReferent()' dynamically
Maybe this is program method 'com.google.common.base.FinalizableReference { void finalizeReferent(); }'
Note: there were 3 accesses to class members by means of introspection.
You should consider explicitly keeping the mentioned class members
(using '-keep' or '-keepclassmembers').
Preparing output jar [/root/android/beanstalk/out/target/common/obj/APPS/Exchange2_intermediates/proguard.classes.jar]
Copying resources from program jar [/root/android/beanstalk/out/target/common/obj/APPS/Exchange2_intermediates/classes.jar]
If you build with a single job, you can usually get a lot better look at the error or warning.
Ok built with a single job and I see the error now below. Any ideas on how to fix the error?
Reading program jar [/root/android/beanstalk/out/target/common/obj/APPS/Calendar_intermediates/classes.jar]
Reading library jar [/root/android/beanstalk/out/target/common/obj/JAVA_LIBRARIES/android_stubs_current_intermediates/classes.jar]
Warning: com.android.ex.chips.RecipientAlternatesAdapter: can't find referenced class android.location.CountryDetector
Warning: com.android.ex.chips.RecipientAlternatesAdapter: can't find referenced class android.location.CountryDetector
Warning: com.android.ex.chips.RecipientAlternatesAdapter: can't find referenced class android.location.Country
Warning: com.android.ex.chips.RecipientAlternatesAdapter: can't find referenced method 'java.lang.String formatNumberToE164(java.lang.String,java.lang.String)' in class android.telephony.PhoneNumberUtils
Warning: com.android.ex.chips.RecipientAlternatesAdapter: can't find referenced class android.location.Country
Warning: com.android.ex.chips.RecipientAlternatesAdapter: can't find referenced class android.location.CountryDetector
Note: android.support.v4.text.ICUCompatIcs: can't find dynamically referenced class libcore.icu.ICU
Note: com.android.timezonepicker.TimeZoneInfo accesses a declared field 'mTransitions' dynamically
Maybe this is program field 'com.android.timezonepicker.TimeZoneInfo { int[] mTransitions; }'
Note: android.support.v4.text.ICUCompatIcs accesses a method 'getScript(java.lang.String)' dynamically
Maybe this is program method 'android.support.v4.text.ICUCompat { java.lang.String getScript(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImpl { java.lang.String getScript(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImplBase { java.lang.String getScript(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImplIcs { java.lang.String getScript(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompatIcs { java.lang.String getScript(java.lang.String); }'
Note: android.support.v4.text.ICUCompatIcs accesses a method 'addLikelySubtags(java.lang.String)' dynamically
Maybe this is program method 'android.support.v4.text.ICUCompat { java.lang.String addLikelySubtags(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImpl { java.lang.String addLikelySubtags(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImplBase { java.lang.String addLikelySubtags(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompat$ICUCompatImplIcs { java.lang.String addLikelySubtags(java.lang.String); }'
Maybe this is program method 'android.support.v4.text.ICUCompatIcs { java.lang.String addLikelySubtags(java.lang.String); }'
I hope this is the right place to ask this. The other sections seem to be more about discussion. I am running into one error that I have not encountered before and have tried quite a bit to find out what is going on.
AndroidStudio said:
Error: (109, 51) error: non-static method getAllContacts() cannot be referenced from a static context
Click to expand...
Click to collapse
Code:
// Class for dealing with the database
package com.testapplication.app;
import ...
public class DataBaseHandler extends SQLiteOpenHelper {
public List<Contact> getAllContacts() {
List<Contact> contListAdapt = new ArrayList<Contact>();
// Becomes non static in a static context if the method becomes static
SQLiteDatabase sql = getWritableDatabase();
Cursor cursor = sql.rawQuery("SELECT * FROM " + TABLE_CONTACTS, null);
if (cursor.moveToFirst()) {
do {
new Contact(Integer.parseInt(cursor.getString(0)), cursor.getString(1), cursor.getString(2), cursor.getString(3), cursor.getString(4), Uri.parse(cursor.getString(5)));
} while (cursor.moveToNext());
}
cursor.close();
sql.close();
return contListAdapt;
}
}
Code:
// The main activity
package com.testapplication.app;
import ...
public class MainActivity extends ActionBarActivity {
List<Contact> contactListAdapter = new ArrayList<Contact>();
@Override
protected void onCreate (Bundle savedInstanceState) {
// There is a class called Contact
// FIXME : non static method in static context
Collection<Contact> coll = DataBaseHandler.getAllContacts();
if(!coll.isEmpty()) {
contactListAdapter.addAll(coll);
}
}
}
As far as I can tell this is all that is involved with this error. If I make getAllContacts() static then I will get the same old error but in a different spot: getWritableDatabase();
Hey all,
I am trying to build CM12.1 from source for Samsung Galaxy Grand Duos i9082..
I've downloaded the source, set up device tree, kernel and the required compatibility patches (required for this device)
Steps I perform:
source build/envsetup.sh
add_lunch_combo cm_i9082-userdebug
lunch (and the select the device)
mka
It starts the building process but after some time I get the following error which I'm unable to resolve:
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/raghav/source/cm/system/out/target/common/obj/JAVA_LIBRARIES/android-support-test-src_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1414: warning: overriding commands for target `clean'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1180: warning: ignoring old commands for target `clean'
GEN /home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ/Makefile
scripts/kconfig/conf --silentoldconfig Kconfig
arch/arm/mach-capri/custom_boards/Kconfig:19:warning: defaults for choice values not supported
arch/arm/mach-capri/custom_boards/Kconfig:25:warning: defaults for choice values not supported
arch/arm/mach-capri/custom_boards/Kconfig:31:warning: defaults for choice values not supported
arch/arm/mach-capri/custom_boards/Kconfig:37:warning: defaults for choice values not supported
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1414: warning: overriding commands for target `clean'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1180: warning: ignoring old commands for target `clean'
GEN /home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
CHK include/generated/utsrelease.h
Using /home/raghav/source/cm/system/kernel/samsung/i9082 as source for kernel
make[3]: `include/generated/mach-types.h' is up to date.
CALL /home/raghav/source/cm/system/kernel/samsung/i9082/scripts/checksyscalls.sh
CHK include/generated/compile.h
GZIP kernel/config_data.gz
IKCFG kernel/config_data.h
CC kernel/configs.o
LD kernel/built-in.o
++++++++++++++++++++++
CONFIG_ISP = n
obj = drivers/char/broadcom/isp
++++++++++++++++++++++
CONFIG_UNICAM = n
obj = drivers/char/broadcom/unicam
++++++++++++++++++++++
CONFIG_V3D = n
obj = drivers/char/broadcom/v3d
++++++++++++++++++++++
CONFIG_VCE = n
obj = drivers/char/broadcom/vce
VCHIQ_PLATFORM_CONFIG = capri-bi
Building for MAP build system
CONFIG_ARCH_KONA = y
echo "(new) Generating drivers/misc/vc04_services/interface/vchiq_arm/vchiq_version.c ..."
(new) Generating drivers/misc/vc04_services/interface/vchiq_arm/vchiq_version.c ...
perl /home/raghav/source/cm/system/kernel/samsung/i9082/drivers/misc/vc04_services/interface/vchiq_arm/vchiq_genversion vchiq /home/raghav/source/cm/system/kernel/samsung/i9082 > drivers/misc/vc04_services/interface/vchiq_arm/vchiq_version.c
Version cad4731a5459c8d522881166c8315b9e3418c687 (tainted)
CC drivers/misc/vc04_services/interface/vchiq_arm/vchiq_version.o
LD drivers/misc/vc04_services/vc-vchiq.o
LD drivers/misc/vc04_services/vc-vchiq-memdrv-kona.o
LD drivers/misc/vc04_services/built-in.o
LD drivers/misc/built-in.o
LD drivers/built-in.o
LD vmlinux.o
MODPOST vmlinux.o
WARNING: modpost: Found 4 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
GEN .version
CHK include/generated/compile.h
UPD include/generated/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
KSYM .tmp_kallsyms1.S
AS .tmp_kallsyms1.o
LD .tmp_vmlinux2
KSYM .tmp_kallsyms2.S
AS .tmp_kallsyms2.o
LD vmlinux
SYSMAP System.map
SYSMAP .tmp_System.map
OBJCOPY arch/arm/boot/Image
Kernel: arch/arm/boot/Image is ready
GZIP arch/arm/boot/compressed/piggy.gzip
SHIPPED arch/arm/boot/compressed/lib1funcs.S
SHIPPED arch/arm/boot/compressed/longlong.h
AS arch/arm/boot/compressed/lib1funcs.o
SHIPPED arch/arm/boot/compressed/divdi3.c
CC arch/arm/boot/compressed/divdi3.o
AS arch/arm/boot/compressed/piggy.gzip.o
LD arch/arm/boot/compressed/vmlinux
OBJCOPY arch/arm/boot/zImage
Kernel: arch/arm/boot/zImage is ready
make[1]: Leaving directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
make -C kernel/samsung/i9082 O=/home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/raghav/source/cm/system/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" dtbs
make[1]: Entering directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1414: warning: overriding commands for target `clean'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1180: warning: ignoring old commands for target `clean'
make[3]: Nothing to be done for `arch/arm/boot/dtbs'.
make[1]: Leaving directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
make -C kernel/samsung/i9082 O=/home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ ARCH=arm CROSS_COMPILE="/home/raghav/source/cm/system/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" modules
make[1]: Entering directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1414: warning: overriding commands for target `clean'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1180: warning: ignoring old commands for target `clean'
GEN /home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ/Makefile
CHK include/linux/version.h
++++++++++++++++++++++
CONFIG_ISP = n
obj = drivers/char/broadcom/isp
Using /home/raghav/source/cm/system/kernel/samsung/i9082 as source for kernel
++++++++++++++++++++++
CONFIG_UNICAM = n
obj = drivers/char/broadcom/unicam
++++++++++++++++++++++
CONFIG_V3D = n
obj = drivers/char/broadcom/v3d
CHK include/generated/utsrelease.h
++++++++++++++++++++++
CONFIG_VCE = n
obj = drivers/char/broadcom/vce
make[3]: `include/generated/mach-types.h' is up to date.
VCHIQ_PLATFORM_CONFIG = capri-bi
Building for MAP build system
CONFIG_ARCH_KONA = y
CALL /home/raghav/source/cm/system/kernel/samsung/i9082/scripts/checksyscalls.sh
++++++++++++++++++++++
CONFIG_ISP = n
obj = drivers/char/broadcom/isp
++++++++++++++++++++++
CONFIG_UNICAM = n
obj = drivers/char/broadcom/unicam
++++++++++++++++++++++
CONFIG_V3D = n
obj = drivers/char/broadcom/v3d
++++++++++++++++++++++
CONFIG_VCE = n
obj = drivers/char/broadcom/vce
VCHIQ_PLATFORM_CONFIG = capri-bi
Building for MAP build system
CONFIG_ARCH_KONA = y
Building modules, stage 2.
MODPOST 6 modules
make[1]: Leaving directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
make -C kernel/samsung/i9082 O=/home/raghav/source/cm/system/out/target/product/i9082/obj/KERNEL_OBJ INSTALL_MOD_PATH=../../system ARCH=arm CROSS_COMPILE="/home/raghav/source/cm/system/prebuilts/misc/linux-x86/ccache/ccache arm-eabi-" modules_install
make[1]: Entering directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1414: warning: overriding commands for target `clean'
/home/raghav/source/cm/system/kernel/samsung/i9082/Makefile:1180: warning: ignoring old commands for target `clean'
INSTALL crypto/md4.ko
INSTALL drivers/char/broadcom/gist.ko
INSTALL drivers/char/broadcom/sigmorph.ko
INSTALL drivers/net/wireless/bcmdhd/dhd.ko
INSTALL drivers/scsi/scsi_wait_scan.ko
INSTALL fs/cifs/cifs.ko
DEPMOD 3.0.101+
Warning: you may need to install module-init-tools
See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt
make[1]: Leaving directory `/home/raghav/source/cm/system/kernel/samsung/i9082'
mdpath=`find /home/raghav/source/cm/system/out/target/product/i9082/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; ko=`find $mpath/kernel -type f -name *.ko`; for i in $ko; do arm-eabi-strip --strip-unneeded $i; mv $i /home/raghav/source/cm/system/out/target/product/i9082/system/lib/modules/; done; fi
mdpath=`find /home/raghav/source/cm/system/out/target/product/i9082/system/lib/modules -type f -name modules.order`; if [ "$mdpath" != "" ];then mpath=`dirname $mdpath`; rm -rf $mpath; fi
#### make failed to build some targets (14:12 (mm:ss)) ####
Can someone please help me resolve this issue? This problem is giving me a headache
Also what does this mean?
"ebtables is disabled on this build"
Temporary Fix Found:
This commit was causing the problem: Check
Deleted folder: frameworks/testing
Deleted line from default.xml: <project path="frameworks/testing" name="platform/frameworks/testing" remote="aosp" revision="android-support-test" />
Build again and this time that error would be gone..
Thanks in Advance
There are multiple people running into this issue:
https://github.com/CyanogenMod/android/commit/ddd855bbe76f07dfee1d25baf2e8eea4cef492f2
http://review.cyanogenmod.org/#/c/106886/3
I guess we will have to wait until it is fixed Unless someone here knows how to get it to build. I asked at the CyanogenMod-dev IRC and no one ran into this issue.
ebtables is a Linux firewall, and that apparantly is disabled for your build.