Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/199.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android APK文件丢失_Android_Android Manifest - Fatal编程技术网

Android APK文件丢失

Android APK文件丢失,android,android-manifest,Android,Android Manifest,我在数独上创建了一个简单的android应用程序。 有一天我发现我的APK文件不见了。 是否有任何方法可以恢复它? 我尝试过“从本地历史中反驳”,“改变依赖关系和所有可能的解决方案,我可以从所有的博客中找到,但没有用。 有谁能提出解决办法吗。 当我浏览我的logcat时,我能找到的唯一错误是“没有找到处理intent{act=org.example.sudoku.about}的活动” 这是我的清单文件: <?xml version="1.0" encoding="utf-8"?> &

我在数独上创建了一个简单的android应用程序。 有一天我发现我的APK文件不见了。 是否有任何方法可以恢复它? 我尝试过“从本地历史中反驳”,“改变依赖关系和所有可能的解决方案,我可以从所有的博客中找到,但没有用。 有谁能提出解决办法吗。 当我浏览我的logcat时,我能找到的唯一错误是“没有找到处理intent{act=org.example.sudoku.about}的活动”

这是我的清单文件:

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

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

<application
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@style/AppTheme"
     >
    <activity
        android:name="org.example.sudoku.Sudoku"
        android:label="@string/app_name" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name="org.example.sudoku.About"
        android:label="@string/about_title"
        android:theme="@android:style/Theme.Dialog">


    <action android:name=".prefs" 
           android:label="@string/settings_title" />

    </activity>
</application>

</manifest>
关于.xml

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >

<TextView 
    android:id="@+id/about_content"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:text="@string/about_text"/>

</ScrollView>

如果生成工具已更新,请检查SDK管理器。

我不确定。但我认为您可能必须删除以下导入

import org.example.sudoku.R;

然后,再次运行。

再次尝试重建apk,可能会有所帮助。 进入android studio中的菜单,搜索“构建”,然后搜索“构建APk”。
它将再次创建一个apk文件

删除此导入并重建导入org.example.sudoku.R;很抱歉..这将在xml文件中产生错误,并且您的R.java文件将丢失..这不是解决方案。
06-01 07:44:46.890: E/AndroidRuntime(930): android.content.ActivityNotFoundException: No Activity found to handle Intent { act=org.example.sudoku.About }
06-01 07:44:46.890: E/AndroidRuntime(930):  at org.example.sudoku.Sudoku.onClick(Sudoku.java:36)
import org.example.sudoku.R;