Hi @Danilo3 ,
I have resolved this issue and couple of other issues that were occurred during build of release imx-automotive-13.0.0_1.1.0 . You can check below details of issues and fixes . Now I was able to build successfully.
Issue-1:
packages/apps/Car/Dialer/src/com/android/car/dialer/inject/DialerModules.java:36: error: package com.android.car.telephony.calling does not exist
import com.android.car.telephony.calling.InCallServiceManager;
...
packages/apps/Car/Dialer/src/com/android/car/dialer/ui/activecall/InCallViewModel.java:62: error: package AudioRouteLiveData does not exist
private final AudioRouteLiveData.Factory mAudioRouteLiveDataFactory;
^
packages/apps/Car/Dialer/src/com/android/car/dialer/ui/activecall/InCallViewModel.java:63: error: package SupportedAudioRoutesLiveData does not exist
private final SupportedAudioRoutesLiveData.Factory mSupportedAudioRoutesLiveDataFactory;
^
Sol: Understood that package folder “calling” is missing in Nxp release(/home/rakesh/android_build/packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/). And to solve this issue missing folder is copied from the below google android repository and compies to Nxp android code .
https://android.googlesource.com/platform/packages/apps/Car/libs/+/refs/tags/ub-automotive-master-20...
Status: Above errors fixed
Issue-2: Got below new error after Issue-1 is fixed.
packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/calling/InCallServiceManager.java:108: error: cannot find symbol
if (callDetail.isBluetoothCall()) {
^
symbol: method isBluetoothCall()
location: variable callDetail of type CallDetail
packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/calling/SupportedAudioRoutesLiveData.java:52: error: cannot find symbol
boolean isHfpConnection = callDetail.isBluetoothCall();
^
symbol: method isBluetoothCall()
Sol: Understood that symbol is missing “isBluetoothCall” from the class “callDetails.java” . And to solve this issue , compied and overwrittent the “common” folder from below google repository to Nxp code base as it is having above symbol implementation.
https://android.googlesource.com/platform/packages/apps/Car/libs/+/refs/tags/ub-automotive-master-20...
Status: Above error fixed.
Issue-3: Got below new error after Issue-2 is fixed.
packages/apps/Car/libs/car-telephony-common/src/com/android/car/telephony/common/TelecomUtils.java:53: error: cannot find symbol
import com.android.car.telephony.R;
Sol: Fixed with below change in common/TelecomUtils.java file
--import com.android.car.telephony.R;
++import com.android.car.telephony.common.R;
Status:Fixed
Issue-4: After above all 3 issued fixed , got this new error.
DialerApp/android_common/javac/classes && rm -rf "out/soong/.intermediates/packages/apps/Car/Dialer/CarDialerApp/android_common/javac/srcjars"
packages/apps/Car/Dialer/src/com/android/car/dialer/ui/settings/DialerSettingsFragment.java:93: error: method does not override or implement a method from a supertype
@Override
^
packages/apps/Car/Dialer/src/com/android/car/dialer/ui/settings/DialerSettingsFragment.java:101: error: cannot find symbol
super.setupChildFragmentToolbar(preference);
^
symbol: method setupChildFragmentToolbar(Preference)
2 errors
[ 2% 127/5296] //frameworks/native/libs/gui:libgui clang++ FrameTimelineInfo.cpp [arm]
[ 2% 128/5296] //frameworks/native/libs/gui:libgui clang++ GLConsumer.cpp [arm]
[ 2% 129/5296] //packages/apps/Car/Messenger:CarMessengerApp d8 [common]
ninja: build stopped: subcommand failed.
12:37:41 ninja failed with: exit status 1
Sol: Issue is fixed with commenting below code in the file packages/apps/Car/Dialer/src/com/android/car/dialer/ui/settings/DialerSettingsFragment.java
/*
@Override
protected void setupChildFragmentToolbar(@NonNull Preference preference) {
if (mShowSettingsAsToolbarTab) {
ToolbarController toolbar = getPreferenceToolbar(this);
if (toolbar != null) {
toolbar.setNavButtonMode(NavButtonMode.BACK);
}
} else {
super.setupChildFragmentToolbar(preference);
}
}*/
Status:Fixed
Finally after all above issue resolved with above changes , Android auto build imx-automotive-13.0.0_1.1.0 was successful and generated corresponding output files.
Thanks
Rakesh