无法实例化活动<componentinfo>

时间:2019-03-07 07:01:44

标签: java android

我正在尝试运行此android项目:https://github.com/aykuttasil/CallRecorder,构建成功,但运行会引发以下错误:

Unable to instantiate activity ComponentInfo{com.aykuttasil.callrecorder/com.aykuttasil.callrecorder.MainActivity}: java.lang.ClassNotFoundException: Didn't find class "com.aykuttasil.callrecorder.MainActivity" on path: DexPathList[[zip file "/data/app/com.aykuttasil.callrecorder-1/base.apk", zip file

以下this SO post之后更新了清单文件。清单文件的外观如下:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="com.aykuttasil.callrecorder">

    <application
        android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        tools:ignore="GoogleAppIndexingWarning">
        <activity android:name="com.aykuttasil.callrecorder.MainActivity">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>
    </application>

</manifest>

也有人遇到类似的问题here

我是Android的新手。我在这里想念什么?

0 个答案:

没有答案