build/core/pathmap.mk:79: *** 对函数“addsuffix”的未终止的调用:遗漏“)”。

本文提供了解决Android源码包下/build/core/pathmap.mk文件问题的方法,通过删除并重新复制该文件来解决相关路径映射问题。

解决方法:将源码包下的/build/core/pathmap.mk 删除,重新复制一份进去。

#
# Copyright (C) 2008 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

#
# A central place to define mappings to paths, to avoid hard-coding
# them in Android.mk files.
#
# TODO: Allow each project to define stuff like this before the per-module
#       Android.mk files are included, so we don't need to have a big central
#       list.
#

#
# A mapping from shorthand names to include directories.
#
pathmap_INCL := \
    bluedroid:system/bluetooth/bluedroid/include \
    bluez:external/bluetooth/bluez \
    glib:external/bluetooth/glib \
    bootloader:bootable/bootloader/legacy/include \
    corecg:external/skia/include/core \
    dbus:external/dbus \
    frameworks-base:frameworks/base/include \
    graphics:external/skia/include/core \
    libc:bionic/libc/include \
    libdrm1:frameworks/base/media/libdrm/mobile1/include \
    libhardware:hardware/libhardware/include \
    libhardware_legacy:hardware/libhardware_legacy/include \
    libhost:build/libs/host/include \
    libm:bionic/libm/include \
    libnativehelper:dalvik/libnativehelper/include \
    libpagemap:system/extras/libpagemap/include \
    libril:hardware/ril/include \
    libstdc++:bionic/libstdc++/include \
    libthread_db:bionic/libthread_db/include \
    mkbootimg:system/core/mkbootimg \
    recovery:bootable/recovery \
    system-core:system/core/include

#
# Returns the path to the requested module's include directory,
# relative to the root of the source tree.  Does not handle external
# modules.
#
# $(1): a list of modules (or other named entities) to find the includes for
#
define include-path-for
$(foreach n,$(1),$(patsubst $(n):%,%,$(filter $(n):%,$(pathmap_INCL))))
endef

#
# Many modules expect to be able to say "#include <jni.h>",
# so make it easy for them to find the correct path.
#
JNI_H_INCLUDE := $(call include-path-for,libnativehelper)/nativehelper

#
# A list of all source roots under frameworks/base, which will be
# built into the android.jar.
#
# Note - "common" is included here, even though it is also built
# into a static library (android-common) for unbundled use.  This
# is so common and the other framework libraries can have mutual
# interdependencies.
#
FRAMEWORKS_BASE_SUBDIRS := \
	$(addsuffix /java, \
	    core \
	    graphics \
	    location \
	    media \
	    opengl \
	    sax \
	    telephony \
	    wifi \
	    vpn \
	    keystore \
	    voip \
	 )

#
# A version of FRAMEWORKS_BASE_SUBDIRS that is expanded to full paths from
# the root of the tree.  This currently needs to be here so that other libraries
# and apps can find the .aidl files in the framework, though we should really
# figure out a better way to do this.
#
FRAMEWORKS_BASE_JAVA_SRC_DIRS := \
	$(addprefix frameworks/base/,$(FRAMEWORKS_BASE_SUBDIRS))



[HBuilder] 20:31:54.071 文件查找失败:'pages/tabbar/authorityManagement/authorityManagement.vue?mpType=page' at pages.json:1 [HBuilder] 20:31:54.076 文件查找失败:'pages/tabbar/authorityManagement/menuManagement.vue?mpType=page' at pages.json:1 [HBuilder] 20:31:54.081 文件查找失败:'pages/tabbar/authorityManagement/roleManagement.vue?mpType=page' at pages.json:1 [HBuilder] 20:31:54.086 文件查找失败:'pages/tabbar/authorityManagement/userManagement.vue?mpType=page' at pages.json:1 [HBuilder] 20:31:54.091 文件查找失败:'pages/tabbar/index/index.vue?mpType=page' at pages.json:1 [HBuilder] 20:31:54.097 文件查找失败:'pages/tabbar/login/accountBinding.vue?mpType=page' at pages.json:1 [HBuilder] 20:31:54.102 文件查找失败:'pages/tabbar/login/login.vue?mpType=page' at pages.json:1 [HBuilder] 20:31:54.106 文件查找失败:'pages/tabbar/storageManagement/OrderInfo.vue?mpType=page' at pages.json:1 [HBuilder] 20:31:54.113 文件查找失败:'pages/tabbar/storageManagement/OrderList.vue?mpType=page' at pages.json:1 [HBuilder] 20:31:54.118 文件查找失败:'pages/tabbar/storageManagement/newOrder.vue?mpType=page' at pages.json:1 [HBuilder] 20:31:54.122 文件查找失败:'pages/tabbar/storageManagement/outBoundOperation.vue?mpType=page' at pages.json:1 [HBuilder] 20:31:54.128 文件查找失败:'pages/tabbar/storageManagement/selectGoodsOrder.vue?mpType=page' at pages.json:1 [HBuilder] 20:31:54.132 文件查找失败:'pages/tabbar/storageManagement/selectOrderList.vue?mpType=page' at pages.json:1 [HBuilder] 20:31:54.138 文件查找失败:'pages/tabbar/userInfo/userInfo.vue?mpType=page' at pages.json:1
11-21
import { createRouter, createWebHistory, type RouteRecordRaw } from 'vue-router' import { useAuthStore } from '@/stores/auth' import { useTagsViewStore } from '@/stores/tagsView' // 定义路由元信息类型 declare module 'vue-router' { interface RouteMeta { isShow?: boolean title?: string icon?: string roles?: string[] // 添加角色权限控制 } } // 公共路由(无需登录) export const constantRoutes: RouteRecordRaw[] = [ { path: '/login', name: 'login', component: () => import('@/views/LoginView.vue'), meta: { title: '登录', isShow: false } }, { path: '/403', name: 'forbidden', component: () => import('@/views/ForbiddenView.vue'), meta: { title: '无权限', isShow: false } }, { path: '/:pathMatch(.*)*', redirect: '/404', meta: { isShow: false} } ] // 异步路由(需要权限控制) export const asyncRoutes: RouteRecordRaw[] = [ { path: '/', redirect: '/flow', component: () => import('@/layout/MainLayout.vue'), meta: { requiresAuth: true }, children: [ { path: '/flow', name: 'flow', component: () => import('@/views/ProcessFlow.vue'), meta: { isShow: true, title: 'Flow', icon: 'Menu', roles: ['user', 'admin'] // 允许用户和管理员访问 } }, { path: '/viewList', name: 'viewList', meta: { isShow: true, title: 'OverView', icon: 'List', roles: ['user', 'admin'] // 允许用户和管理员访问 }, children: [ { path: '/viewList/ocrList', name: 'ocrList', component: () => import('@/views/OCRDecView.vue'), meta: { title: 'OCR', icon: 'Filter', roles: ['user', 'admin'] // 允许用户和管理员访问 } }, { path: '/viewList/orderDetails', name: 'orderDetails', component: () => import('@/views/MaterialOrderDetailsView.vue'), meta: { title: 'OrderDetails', icon: 'Filter', roles: ['user', 'admin'] // 允许用户和管理员访问 } } ] }, { path: '/config', name: 'config', meta: { isShow: true, title: 'Config', icon: 'Setting', roles: ['admin'] // 仅管理员可访问 }, children: [ { path: '/config/users', name: 'userConfig', component: () => import('@/views/UserManagement.vue'), meta: { title: 'Users', icon: 'User', roles: ['admin'] // 仅管理员可访问 } }, { path: '/config/materialBase', name: 'materialBase', component: () => import('@/views/MaterialBase.vue'), meta: { title: 'Materials', icon: 'Plus', roles: ['admin'] // 仅管理员可访问 } }, { path: '/config/materialOrder', name: 'materialOrder', component: () => import('@/views/MaterialOrder.vue'), meta: { title: 'Orders', icon: 'Plus', roles: ['admin'] // 仅管理员可访问 } }, { path: '/config/materialFormat', name: 'materialFormat', component: () => import('@/views/MaterialFormat.vue'), meta: { title: 'Formats', icon: 'Brush', roles: ['admin'] // 仅管理员可访问 } } ] } ] } ] const router = createRouter({ history: createWebHistory(), routes: constantRoutes }) // 路由守卫 - 权限控制 router.beforeEach(async (to,from) => { console.log(`[路由守卫] 从 ${from.path} 导航到 ${to.path}`) const authStore = useAuthStore() // 无需认证的页面 if (!to.meta.requiresAuth) return true // 检查登录状态 if (!authStore.token) { // 保存目标路径以便登录后重定向 return { path: '/login', query: { redirect: to.fullPath } } } // 已登录但初始化用户信息 if (!authStore.isInitialized) { try { await authStore.initialize() // 初始化后重定向到原始请求 return { ...to, replace: true } } catch (error) { authStore.logout() return '/login' } } // 检查权限 if (to.meta.roles && !authStore.hasPermission(to.meta.roles)) { return '/403' // 无权限页面 } return true }) router.afterEach((to) => { const tagsViewStore = useTagsViewStore() if (!to.meta.noTagsView) tagsViewStore.addView(to) }) export default router vue-router.mjs:1611 Uncaught RangeError: Maximum call stack size exceeded at vue-router.mjs:1611:47 at Array.find (<anonymous>) at Object.resolve (vue-router.mjs:1611:32) at resolve (vue-router.mjs:3206:38) at pushWithRedirect (vue-router.mjs:3295:51) at pushWithRedirect (vue-router.mjs:3303:20) at pushWithRedirect (vue-router.mjs:3303:20) at pushWithRedirect (vue-router.mjs:3303:20) at pushWithRedirect (vue-router.mjs:3303:20) at pushWithRedirect (vue-router.mjs:3303:20)
08-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值