我是为 Android 构建内核的新手。我遇到了一个问题,好几天都没能解决。错误如下:../kernel/cgroup/cpuset.c:1794:16:错误:声明“str...
我是为 Android 构建内核的新手。我遇到了一个问题,好几天都无法解决。错误如下:
../kernel/cgroup/cpuset.c:1794:16: error: declaration of 'struct cs_target' will not be visible outside of this function [-Werror,-Wvisibility]
struct cs_target tgt, size_t nbytes,
^
../kernel/cgroup/cpuset.c:1794:26: error: variable has incomplete type 'struct cs_target'
struct cs_target tgt, size_t nbytes,
^
../kernel/cgroup/cpuset.c:1794:16: note: forward declaration of 'struct cs_target'
struct cs_target tgt, size_t nbytes,
我该如何解决这个问题? 来源
以下是我的步骤:
cd /home/me/kuroneko_r_mt6765
export ARCH=arm64
export SUBARCH=arm
export CLANG_TRIPLE=aarch64-linux-gnu-
export CROSS_COMPILE=aarch64-linux-gnu-
export CROSS_COMPILE_ARM32=arm-linux-gnueabi-
make blossom_defconfig O=out
make -j4 CC=clang O=out
当 Unity 应用在 Android 设备上运行时,我开始收到错误,在 UnityPurchasing InitializeUnity 2022.3.181、应用内购买 4.12.2、目标 API 34UnityEngine.AndroidJavaException:...
当 Unity 应用在 Android 设备上运行时,我在 UnityPurchasing Initialize 上收到错误
Unity 2022.3.181,应用内购买 4.12.2,目标 API 34
UnityEngine.AndroidJavaException: java.lang.ClassNotFoundException: com.android.billingclient.api.PurchasesUpdatedListener
at UnityEngine.AndroidJNISafe.CheckException () [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.AndroidJNISafe.FindClass (System.String name) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.AndroidJavaClass._AndroidJavaClass (System.String className) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.AndroidJavaProxy..ctor (System.String javaInterface) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Purchasing.GooglePurchaseUpdatedListener..ctor (UnityEngine.Purchasing.Interfaces.IGoogleLastKnownProductService googleLastKnownProductService, UnityEngine.Purchasing.Interfaces.IGooglePurchaseCallback googlePurchaseCallback, UnityEngine.Purchasing.Interfaces.IGooglePurchaseBuilder purchaseBuilder, UnityEngine.Purchasing.IGoogleCachedQueryProductDetailsService googleCachedQueryProductDetailsService, UnityEngine.Pur
我尝试添加自定义 proguard, -keep class com.android.billingclient.** {*; }
但没有任何改变
关于如何修复它有什么提示吗?