Hello.
I'm tryng to compile latest cm 7 source for g1/dream but i get these errors:
Code:
packages/apps/Settings/src/com/android/settings/widget/buttons/WimaxButton.java:118: cannot find symbol
symbol : variable ic_appwidget_settings_wimax_off
location: class com.android.settings.R.drawable
currentIcon = R.drawable.ic_appwidget_settings_wimax_off;
^
packages/apps/Settings/src/com/android/settings/widget/buttons/WimaxButton.java:121: cannot find symbol
symbol : variable ic_appwidget_settings_wimax_on
location: class com.android.settings.R.drawable
currentIcon = R.drawable.ic_appwidget_settings_wimax_on;
^
packages/apps/Settings/src/com/android/settings/widget/buttons/WimaxButton.java:130: cannot find symbol
symbol : variable ic_appwidget_settings_wimax_on
location: class com.android.settings.R.drawable
currentIcon = R.drawable.ic_appwidget_settings_wimax_on;
^
packages/apps/Settings/src/com/android/settings/widget/buttons/WimaxButton.java:132: cannot find symbol
symbol : variable ic_appwidget_settings_wimax_off
location: class com.android.settings.R.drawable
currentIcon = R.drawable.ic_appwidget_settings_wimax_off;
^
packages/apps/Settings/src/com/android/settings/widget/WidgetSettings.java:600: cannot find symbol
symbol : variable ic_appwidget_settings_wimax_on
location: class com.android.settings.R.drawable
return R.drawable.ic_appwidget_settings_wimax_on;
^
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.
5 errors
make: *** [out/target/common/obj/APPS/Settings_intermediates/classes-full-debug.jar] Errore 41
make: *** Attesa per i processi non terminati....
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Can someine help me? Thanks.
Hi,
I am building my new CM9 rom for Shakira but on linux mint 14 I have a big problem with this error :
http://pastebin.com/kpprcWcA
I used MiniCM surouces
pastebin not open :S
frameworks/base/media/libstagefright/OMXCodec.cpp:2546: warning: enumeral mismatch in conditional expression: '<anonymous enum>' vs 'OMX_COLOR_FORMATTYPE'
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec:nEvent(OMX_EVENTTYPE, OMX_U32, OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3333: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec:nCmdComplete(OMX_COMMANDTYPE, OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3513: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'bool android:MXCodec::flushPortAsync(OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3828: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec::drainInputBuffers()':
frameworks/base/media/libstagefright/OMXCodec.cpp:3963: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In function 'const char* android::colorFormatString(OMX_COLOR_FORMATTYPE)':
frameworks/base/media/libstagefright/OMXCodec.cpp:5427: warning: comparison between 'enum OMX_COLOR_FORMATTYPE' and 'enum OMX_QCOM_COLOR_FORMATTYPE'
make: *** [out/target/product/shakira/obj/SHARED_LIBRARIES/libstagefright_intermediates/OMXCodec.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected] ~/cm9 $
This is error code
I had a similar problem except that I did not want to load at all
"frameworks / base / media / libstagefright / OMXCodec.cpp: In member function 'bool android :: eek: MXCodec :: flushPortAsync (OMX_U32)'"
and stopped and also used to use Linux, so we tried it on ubuntu and there was no problem with you more, but this is different ...
can do it on ubuntu like me
I do not want to install a new system ...
Everything can be solved without re installation - I know this from experience!
Does anyone else have any other ideas?
Have a look here Soniakos
Try using make -j1
Ubuntu rullez i know it
Yeah Thanks !
I build CM9
surouces for my CM9 is posted on my team github
github.com/MimiTeam
Hey cool,
What solved the error?
Not working yet !
I thinked working but I see this error now :/
Soniakos said:
frameworks/base/media/libstagefright/OMXCodec.cpp:2546: warning: enumeral mismatch in conditional expression: '<anonymous enum>' vs 'OMX_COLOR_FORMATTYPE'
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec:nEvent(OMX_EVENTTYPE, OMX_U32, OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3333: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec:nCmdComplete(OMX_COMMANDTYPE, OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3513: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'bool android:MXCodec::flushPortAsync(OMX_U32)':
frameworks/base/media/libstagefright/OMXCodec.cpp:3828: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In member function 'void android:MXCodec::drainInputBuffers()':
frameworks/base/media/libstagefright/OMXCodec.cpp:3963: warning: comparison between signed and unsigned integer expressions
frameworks/base/media/libstagefright/OMXCodec.cpp: In function 'const char* android::colorFormatString(OMX_COLOR_FORMATTYPE)':
frameworks/base/media/libstagefright/OMXCodec.cpp:5427: warning: comparison between 'enum OMX_COLOR_FORMATTYPE' and 'enum OMX_QCOM_COLOR_FORMATTYPE'
make: *** [out/target/product/shakira/obj/SHARED_LIBRARIES/libstagefright_intermediates/OMXCodec.o] Error 1
make: *** Waiting for unfinished jobs....
[email protected] ~/cm9 $
This is error code
Click to expand...
Click to collapse
No this is not error... This is only warning....
The real error here:
Code:
target thumb C++: libstagefright <= frameworks/base/media/libstagefright/SurfaceMediaSource.cpp
frameworks/base/media/libstagefright/OMXCodec.cpp:2351:2: error: #endif without #if
and here:
Code:
frameworks/base/media/libstagefright/OMXCodec.cpp:2340: error: 'kRequiresStoreMetaDataBeforeIdle' was not declared in this scope
I hope how this help If not, I will see your repos, but first try to fix you..
Ok but now I installed Ubuntu 10.04 (On this I created my first rom Ice Elite CM9) on this Ubuntu I haven't errors...
And now I have some next problems but now with libusbx :/
I installed Ubuntu and I want to install flashtool... but I have a error with libusb, but I installed in termianl is :
[email protected]:/home/zodex/ft# ./FlashTool
Running as root.
JAVA_HOME not set. Using default value : ./x10flasher_lib/linjre64
Libusb not found. Minimum libusb version is 1.0.14
It can be downloaded on http://www.libusbx.org
Can you help me now ?
Soniakos said:
Ok but now I installed Ubuntu 10.04 (On this I created my first rom Ice Elite CM9) on this Ubuntu I haven't errors...
And now I have some next problems but now with libusbx :/
I installed Ubuntu and I want to install flashtool... but I have a error with libusb, but I installed in termianl is :
[email protected]:/home/zodex/ft# ./FlashTool
Running as root.
JAVA_HOME not set. Using default value : ./x10flasher_lib/linjre64
Libusb not found. Minimum libusb version is 1.0.14
It can be downloaded on http://www.libusbx.org
Can you help me now ?
Click to expand...
Click to collapse
http://www.libusbx.org
Visit the site, download the source, then build lubusbx
install it then restart pc...
I installed this :/
But error is :/
And I have next error :
[email protected]:~/cm9$ repo init -u git://github.com/zodex/android.git -b ics
fatal: git 1.7.2 or later required
OMG ! Why errors ?
Soniakos said:
I installed this :/
But error is :/
And I have next error :
[email protected]:~/cm9$ repo init -u git://github.com/zodex/android.git -b ics
fatal: git 1.7.2 or later required
OMG ! Why errors ?
Click to expand...
Click to collapse
needed newer version of git...
sudo apt-get install git-core
if says how the latest version installed:
https://launchpad.net/~git-core/+archive/candidate
install 1.8 from here
I have error !
Bro help me please...
make: *** [out/target/product/shakira/obj/SHARED_LIBRARIES/libstagefright_intermediates/OMXCodec.o] Error 1
make: *** Waiting for unfinished jobs....
This is not like me ...
Can u help me ?
In frameworks/base/media/libstagefright/OMXCodec.cpp find this: (Line 2337-2351)
Code:
#if !defined(QCOM_LEGACY_OMX) && !defined(STE_HARDWARE)
if ((mFlags & kStoreMetaDataInVideoBuffers)
#else
if (!(mQuirks & kRequiresStoreMetaDataBeforeIdle)
&& (mFlags & kStoreMetaDataInVideoBuffers)
#endif
&& portIndex == kPortIndexInput) {
LOGW("Trying to enable metadata mode on encoder");
err = mOMX->storeMetaDataInBuffers(mNode, kPortIndexInput, OMX_TRUE);
if (err != OK) {
LOGE("Storing meta data in video buffers is not supported");
return err;
}
}
#endif
Then replace with this:
Code:
#ifndef QCOM_LEGACY_OMX if ((mFlags & kStoreMetaDataInVideoBuffers)
&& portIndex == kPortIndexInput) {
LOGW("Trying to enable metadata mode on encoder");
err = mOMX->storeMetaDataInBuffers(mNode, kPortIndexInput, OMX_TRUE);
if (err != OK) {
LOGE("Storing meta data in video buffers is not supported");
return err;
}
}
#endif
Very Thanks bro !
Sorry bro's but I have new problem :/
in console :
running: java -Xmx512m -jar out/host/linux-x86/framework/signapk.jar -w build/target/product/security/testkey.x509.pem build/target/product/security/testkey.pk8 /tmp/tmpNRP2MT out/target/product/shakira/cm_shakira-ota-eng.zodex.zip
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2798)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:111)
at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:178)
at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:135)
at java.util.zip.ZipOutputStream.write(ZipOutputStream.java:289)
at com.android.signapk.SignApk.copyFiles(SignApk.java:422)
at com.android.signapk.SignApk.main(SignApk.java:490)
ERROR: signapk.jar failed: return code 1
make: *** [out/target/product/shakira/cm_shakira-ota-eng.zodex.zip] Error 1
I know... This is java problem but I can't fix it :/
Can you help me ?
You can get OOM errors if you don't have a big enough swap partition when compiling.
Use 6GB swap on a build machine..
Your error may be from something else, i'm just pointing out another possible cause..
Hello everyone
I am trying to convert SemcClock.apk (the one from Honami) from white to black.
I edited the styles.xml and so far everything is ok.
When i try to recompile the apk i get this error:
C:\AndroidMultitool\Decompiled_apk\SemcClock\res\layout\alarm_alert.xml:5: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
C:\AndroidMultitool\Decompiled_apk\SemcClock\res\layout\alarm_alert.xml:5: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
C:\AndroidMultitool\Decompiled_apk\SemcClock\res\layout\alarm_alert.xml:6: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
C:\AndroidMultitool\Decompiled_apk\SemcClock\res\layout\alarm_alert_tablet_horizontal.xml:6: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
C:\AndroidMultitool\Decompiled_apk\SemcClock\res\layout\alarm_alert_tablet_vertical.xml:8: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
C:\AndroidMultitool\Decompiled_apk\SemcClock\res\layout\alarm_alert_tablet_vertical.xml:18: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
C:\AndroidMultitool\Decompiled_apk\SemcClock\res\layout\alarm_digital_clock.xml:2: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
C:\AndroidMultitool\Decompiled_apk\SemcClock\res\layout\alarm_time.xml:2: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
C:\AndroidMultitool\Decompiled_apk\SemcClock\res\layout\alarm_time_delete.xml:2: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
C:\AndroidMultitool\Decompiled_apk\SemcClock\res\layout\alarm_week.xml:2: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
C:\AndroidMultitool\Decompiled_apk\SemcClock\res\layout\context_menu_header.xml:2: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
C:\AndroidMultitool\Decompiled_apk\SemcClock\res\layout\current_time_tablet.xml:2: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
C:\AndroidMultitool\Decompiled_apk\SemcClock\res\layout\current_time_tablet.xml:5: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
C:\AndroidMultitool\Decompiled_apk\SemcClock\res\layout\desk_clock_ics.xml:2: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
C:\AndroidMultitool\Decompiled_apk\SemcClock\res\layout\desk_clock_ics.xml:8: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
C:\AndroidMultitool\Decompiled_apk\SemcClock\res\layout\desk_clock_tablet.xml:2: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
C:\AndroidMultitool\Decompiled_apk\SemcClock\res\layout\desk_clock_tablet.xml:5: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
and many other lines (errors only in res/layout)!
Tried with apktool also but same problem!
I get this error even if i just decompile and recompile the apk without making any changes.
Anyone can help me please?
Thanks in advance!
You must use 4.2 framework-res for decompiling and compiling.
Number 3 (locale based direction) was added in 4.2.
Or change all lines to "ltr" (left to right).
peetr_ said:
You must use 4.2 framework-res for decompiling and compiling.
Number 3 (locale based direction) was added in 4.2.
Or change all lines to "ltr" (left to right).
Click to expand...
Click to collapse
To many lines bro to change from "3" to "ltr".
Do you have the 4.2 framework?
Thanks!
I am on phone. Take 4.2 framework-res from Z.
peetr_ said:
I am on phone. Take 4.2 framework-res from Z.
Click to expand...
Click to collapse
I was just doing that! Thanks!
DaRk-L0rD said:
I was just doing that! Thanks!
Click to expand...
Click to collapse
@peetr_ worked! Thanks mate!
peetr_ said:
You must use 4.2 framework-res for decompiling and compiling.
Number 3 (locale based direction) was added in 4.2.
Or change all lines to "ltr" (left to right).
Click to expand...
Click to collapse
DaRk-L0rD said:
To many lines bro to change from "3" to "ltr".
Do you have the 4.2 framework?
Thanks!
Click to expand...
Click to collapse
hi , i write this because i just want let you know , because you are in wrong way
i am from XPERIA Arc and i want to fully port Honami SemcClock.apk for my phone
i have below 37 errors
C:\Users\DELL\Desktop\SemcClock\res\layout\lap_item_tablet.xml:2: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
and one more error here
C:\Users\DELL\Desktop\SemcClock\res\layout\main.xml:4: error: Error: Integer types not allowed (at 'layoutDirection' with value '0').
i replaced all the "3" to "locale"
and replaced the "0" to "ltr"
and i compile it without any errors
it is because we can't use numbers , i noticed this from here : http://developer.android.com/reference/android/view/View.html
you can search for "android:layoutDirection" so you will find this:
Code:
android:layoutDirection
Defines the direction of layout drawing. This typically is associated with writing direction of the language script used. The possible values are "ltr" for Left-to-Right, "rtl" for Right-to-Left, "locale" and "inherit" from parent view. If there is nothing to inherit, "locale" is used. "locale" falls back to "en-US". "ltr" is the direction used in "en-US". The default for this attribute is "inherit".
Must be one of the following constant values.
Constant Value Description
ltr 0 Left-to-Right
rtl 1 Right-to-Left
inherit 2 Inherit from parent
locale 3 Locale
This corresponds to the global attribute resource symbol layoutDirection.
Related Methods
setLayoutDirection(int)
now i have this errors , can you help?
C:\Users\DELL\Desktop\clock\cib+SemcClock\res\layout\desk_clock_ics.xml:14: error: No resource identifier found for attribute 'fontFamily' in package 'android'
C:\Users\DELL\Desktop\clock\cib+SemcClock\res\layout\desk_clock_ics_night_mode.xml:14: error: No resource identifier found for attribute 'fontFamily' in package 'android'
C:\Users\DELL\Desktop\clock\cib+SemcClock\res\layout\timer_time_picker.xml:5: error: No resource identifier found for attribute 'textAlignment' in package 'android'
C:\Users\DELL\Desktop\clock\cib+SemcClock\res\layout\timer_time_picker.xml:7: error: No resource identifier found for attribute 'textAlignment' in package 'android'
EAGLEBOOY said:
hi , i write this because i just want let you know , because you are in wrong way
i am from XPERIA Arc and i want to fully port Honami SemcClock.apk for my phone
i have below 37 errors
C:\Users\DELL\Desktop\SemcClock\res\layout\lap_item_tablet.xml:2: error: Error: Integer types not allowed (at 'layoutDirection' with value '3').
and one more error here
C:\Users\DELL\Desktop\SemcClock\res\layout\main.xml:4: error: Error: Integer types not allowed (at 'layoutDirection' with value '0').
i replaced all the "3" to "locale"
and replaced the "0" to "ltr"
and i compile it without any errors
it is because we can't use numbers , i noticed this from here : http://developer.android.com/reference/android/view/View.html
you can search for "android:layoutDirection" so you will find this:
Code:
android:layoutDirection
Defines the direction of layout drawing. This typically is associated with writing direction of the language script used. The possible values are "ltr" for Left-to-Right, "rtl" for Right-to-Left, "locale" and "inherit" from parent view. If there is nothing to inherit, "locale" is used. "locale" falls back to "en-US". "ltr" is the direction used in "en-US". The default for this attribute is "inherit".
Must be one of the following constant values.
Constant Value Description
ltr 0 Left-to-Right
rtl 1 Right-to-Left
inherit 2 Inherit from parent
locale 3 Locale
This corresponds to the global attribute resource symbol layoutDirection.
Related Methods
setLayoutDirection(int)
Click to expand...
Click to collapse
Thanks mate. I alredy solved the problem using framework-res.apk from honami. I was able to theme it also without any problems
Arc has jb or ics mate?
DaRk-L0rD said:
Thanks mate. I alredy solved the problem using framework-res.apk from honami. I was able to theme it also without any problems
Arc has jb or ics mate?
Click to expand...
Click to collapse
ics
can you help me about the above 4 errors?
i don't want to change my framework because i want to use it for my arc and also don't want to change my arc framework
i hope you can help me
I'm trying to compile the OliverG96 sources to work with Paranoid and i have error, maybe someone have it and know a solution?
Code:
target Dex: CalendarProvider
frameworks/opt/telephony/../../../device/samsung/golden/ril/SamsungU8500RIL.java:434: cannot find symbol
symbol : variable RIL_REQUEST_ENTER_DEPERSONALIZATION_CODE
location: class com.android.internal.telephony.SamsungU8500RIL
case RIL_REQUEST_ENTER_DEPERSONALIZATION_CODE: ret = responseInts(p); break;
^
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.
1 error
make: *** [/home/projects/android/system/out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes-full-debug.jar] Error 41
make: *** Waiting for unfinished jobs....
So I just upgraded an ADT project to Android Studios, I've spent the day learning about Gradle and converting all the old imported libraries to compile lines, however I seem to be stuck on one final issue. The class:
public abstract class MainActivity extends ActionBarActivity
Is resulting in 21 Errors. The first 4 are
Error: (14, 17) error: cannot access SupportParentable class file for android.support.v4.app.TaskStackBuilder$SupportParentable not found
Error: (31, 3) error: cannot find symbol variable super
Error: (42, 3) error: cannot find symbol variable super
Error: (47, 2) error: method does not override or implement a method from a supertype
(Rest available if anyone thinks they're relevant)
I have support-v4 and appcompat-v7 compiled:
compile "com.android.support:support-v4:22.2.1"
compile "com.android.support:appcompat-v7:22.2.1"
I've synced, cleaned and ran in all combinations. I'm not sure what step I'm missing here.
Yes I do know that ActionBarActivity has been depricated in place of AppCompatActivity, however switching to AppCompatActivity results in no noticeable changes. My focus right now is to get the project running as is and I'll look into modernizing after that.
bump