Android 简单Helloworld应用程序在实际设备中运行后引发异常

Android 简单Helloworld应用程序在实际设备中运行后引发异常,android,nativescript,Android,Nativescript,我正在安装最新的nativescript 2.5.0和模块, 创建简单的helloworld应用程序, 它在仿真器API 19中工作完美, 但在android 4.4.4的真实设备上失败: “主”线程上发生未捕获的异常。 java.lang.RuntimeException:无法实例化活动 ComponentInfo{org.nativescript.HelloWorld/org.nativescript.HelloWorld.nativescript活动}: java.lang.ClassNo

我正在安装最新的nativescript 2.5.0和模块, 创建简单的helloworld应用程序, 它在仿真器API 19中工作完美, 但在android 4.4.4的真实设备上失败:

“主”线程上发生未捕获的异常。 java.lang.RuntimeException:无法实例化活动 ComponentInfo{org.nativescript.HelloWorld/org.nativescript.HelloWorld.nativescript活动}: java.lang.ClassNotFoundException:未找到类 路径上的“org.nativescript.HelloWorld.nativescript活动”: 路径表

我通过将活动名称删除到:
.NativeScriptActivity
再次出现错误:
metadata.getInt
不是一个函数

我读了所有的论坛,但我的问题仍然没有解决

舱单:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="__PACKAGE__"
    android:versionCode="1"
    android:versionName="1.0">

    <supports-screens
        android:smallScreens="true"
        android:normalScreens="true"
        android:largeScreens="true"
        android:xlargeScreens="true"/>

    <uses-sdk
        android:minSdkVersion="17"
        android:targetSdkVersion="19"/>

    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
    <uses-permission android:name="android.permission.INTERNET"/>

    <application
        android:name="com.tns.NativeScriptApplication"
        android:allowBackup="true"
        android:icon="@drawable/icon"
        android:label="@string/app_name"
        android:theme="@style/AppTheme">

        <activity
            android:name="com.tns.NativeScriptActivity"
            android:label="@string/title_activity_kimera"
            android:configChanges="keyboardHidden|orientation|screenSize"
            android:theme="@style/LaunchScreenTheme">

            <meta-data android:name="SET_THEME_ON_LAUNCH" android:resource="@style/AppTheme" />

            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
        <activity android:name="com.tns.ErrorReportActivity"/>
    </application>
</manifest>


是否已将org.nativescript.HelloWorld.nativescript活动添加到清单中?请尝试清理并生成项目。请参阅此。。。。如果您在清单中没有提到您的软件包名称,您是否可以共享您的AndroidMenifest.xml文件和活动@titцццццццц。活动包的第二个名称是com.tns.NativeScriptActivity,您的日志错误显示了一些不同的包名称。因此,您需要提供所有必需且正确的数据。