Error 41 while building CyanogenMod

Discussion in 'Android Hacks and Help' started by JBirdVegas, Apr 27, 2011.

  1. JBirdVegas
    Offline

    JBirdVegas Developer Developer

    Joined:
    Aug 8, 2010
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    0
    I've had no issues building cm7 in the past but now I keep getting the same error. I've spent the last two day googling and haven't had any luck I've checked java points the the right place, set ANDROID_JAVA_HOME=$JAVA_HOME and even deleted the entire repo and re-synced still nothing. Any ideas???

    Code:
    Warning: AndroidManifest.xml already defines minSdkVersion (in http://schemas.android.com/apk/res/android); using existing value in manifest.
    target Java: CMParts (out/target/common/obj/APPS/CMParts_intermediates/classes)
    packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/SoundActivity.java:99: cannot find symbol
    symbol  : variable VIBRATE_IN_CALL
    location: class android.provider.Settings.System
                    Settings.System.VIBRATE_IN_CALL, 1) != 0);
                                   ^
    packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/SoundActivity.java:150: cannot find symbol
    symbol  : variable VIBRATE_IN_CALL
    location: class android.provider.Settings.System
                Settings.System.putInt(getContentResolver(), Settings.System.VIBRATE_IN_CALL,
                                                                            ^
    packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/UIPowerWidgetActivity.java:80: cannot find symbol
    symbol  : variable EXPANDED_HIDE_SCROLLBAR
    location: class android.provider.Settings.System
                    Settings.System.EXPANDED_HIDE_SCROLLBAR, 0) == 1));
                                   ^
    packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/UIPowerWidgetActivity.java:109: cannot find symbol
    symbol  : variable EXPANDED_HIDE_SCROLLBAR
    location: class android.provider.Settings.System
                Settings.System.putInt(getContentResolver(), Settings.System.EXPANDED_HIDE_SCROLLBAR,
                                                                            ^
    packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/UIStatusBarActivity.java:62: cannot find symbol
    symbol  : variable STATUS_BAR_COMPACT_CARRIER
    location: class android.provider.Settings.System
                    Settings.System.STATUS_BAR_COMPACT_CARRIER, 0) == 1));
                                   ^
    packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/UIStatusBarActivity.java:82: cannot find symbol
    symbol  : variable STATUS_BAR_COMPACT_CARRIER
    location: class android.provider.Settings.System
                Settings.System.putInt(getContentResolver(), Settings.System.STATUS_BAR_COMPACT_CARRIER,
                                                                            ^
    packages/apps/CMParts/src/com/cyanogenmod/cmparts/activities/WidgetActivity.java:120: cannot find symbol
    symbol  : variable widget_max_buttons
    location: class com.cyanogenmod.cmparts.R.string
                    Toast.makeText(this, R.string.widget_max_buttons, Toast.LENGTH_LONG).show();
                                                 ^
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    7 errors
    make: *** [out/target/common/obj/APPS/CMParts_intermediates/classes-full-debug.jar] Error 41
    
  2. SithDroid2187
    Offline

    SithDroid2187 New Member

    Joined:
    Apr 28, 2011
    Messages:
    94
    Likes Received:
    0
    Trophy Points:
    0
    Have you ran make clobber before recompiling? Perhaps something from your last compile is messing with it.
  3. JBirdVegas
    Offline

    JBirdVegas Developer Developer

    Joined:
    Aug 8, 2010
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    0
    Yes I did after you suggested it and no luck still the same errors. Thank you but I still have the same problem.
  4. cush2push
    Offline

    cush2push Premium Member Premium Member Developer

    Joined:
    Jul 21, 2010
    Messages:
    673
    Likes Received:
    6
    Trophy Points:
    0
    Location:
    Albuquerque NM
    from the looks of it the class name is missing or misspelled
  5. JBirdVegas
    Offline

    JBirdVegas Developer Developer

    Joined:
    Aug 8, 2010
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    0
    Took a while to figure out but a post from cyanogen led me in the right direction. For my rom I forked the frameworks_base_core and the move to 2.3.4 uses variables defined in the frameworks that didn't previously exist. Merging up to day frameworks_base_core and android_build (to include nfc) fixed the problem.

    Sent from my DROID2 using Tapatalk
  6. JBirdVegas
    Offline

    JBirdVegas Developer Developer

    Joined:
    Aug 8, 2010
    Messages:
    107
    Likes Received:
    0
    Trophy Points:
    0
    But thank you for the help.

    Sent from my DROID2 using Tapatalk
  7. actngrezy
    Offline

    actngrezy New Member Developer

    Joined:
    Mar 21, 2010
    Messages:
    1,074
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    delaware
    Make sure you have the corresponding lines in the Settings.java file. That may be the issue.
    Settings.java is located beow (bare with me I'm at work on the phone so the directory may be wrong)
    Frameworks/base/core/java/com/android/provider/Settings.java
Search tags for this page
android error 41
,

android make error 41

,
classes-full-debug.jar
,

classes-full-debug.jar error 41

,

classes-full-debug.jar] error 41

,
compile error make clobber cyanogenmod
,
error 41 classes-full-debug.jar
,
error 41 make
,
intermediates/classes-full-debug.jar] error 41
,

make error 41

,

make: *** [out/target/common/obj/apps/settings intermediates

,
make: *** error 41
,
make: classes-full-debug.jar] error 41
,
make[2]: *** [out/target/common/obj/apps/settings intermedia
,
out/target/common/obj/apps/settings intermediates/classes-fu