错误建筑Appcelerator的项目:无法打包的应用程序:错误:错误检索父的项目

问题描述 投票:0回答:1

我想建立其他开发人员创建的应用程序。我已经导入该项目,并更新了依赖到最新版本。当我尝试运行,我收到以下错误:

[ERROR] :  Failed to package application:
[ERROR] :  
[ERROR] :  (skipping file '.gitkeep' due to ANDROID_AAPT_IGNORE pattern '.*')
[ERROR] :      (skipping file '.liveviewapp.js' due to ANDROID_AAPT_IGNORE pattern '.*')
[ERROR] :  E:\Projects\New_workspace\app\build\android\res\values\theme.xml:28: error: Error retrieving parent for item: No resource found that matches the given name '@style/Theme.skitanium'.
[ERROR] Application Installer abnormal process termination. Process exit value was 1

themes.xml文件有以下内容:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <style name="Theme.skitanium" parent="@style/Theme.AppCompat.Light">
        <item name="editTextStyle">@style/editText</item>
        <item name="android:windowBackground">@drawable/background</item>
        <item name="android:windowActionBar">false</item>
        <item name="android:windowNoTitle">true</item>
        <!-- AppCompat Compatibility -->
        <item name="windowActionBar">false</item>
        <item name="windowNoTitle">true</item>
    </style>
    <!-- Text fields -->
    <style name="editText" parent="@android:style/Widget.EditText">
        <item name="android:textCursorDrawable">@null</item>   
        <item name="android:textColor">#000000</item>
        <item name="android:paddingTop">0dp</item>
        <item name="android:paddingBottom">0dp</item>
        <item name="android:gravity">center_vertical</item>
        <item name="android:layout_width">wrap_content</item>
    </style>
</resources>

下面是我使用的版本:

  <manifest android:versionCode="8" android:versionName="1.1.7">
  <uses-sdk android:minSdkVersion="16" android:targetSdkVersion="28"/>

钛SDK版本:7.5.0.GA

Appcelerator的Axway公司工作室,打造:5.1.1.201809051655

有人可以指导我什么是此错误的可能原因是什么?

titanium appcelerator appcelerator-titanium appcelerator-mobile appcelerator-studio
1个回答
0
投票

请查阅文档:https://wiki.appcelerator.org/display/guides2/Android+Themes#AndroidThemes-Androidthemes

你是不是允许命名的主题theme.xml。这将取代内部的主题。所以,如果你将文件重命名它应该工作。

另外,请尝试<style name="Theme.skitanium" parent="Theme.AppCompat.Light">没有@style。有一个在https://docs.axway.com/bundle/Titanium_SDK_allOS_en/page/android_themes.html使用它,没有太多的例子

© www.soinside.com 2019 - 2024. All rights reserved.