Właśnie konfiguruję moją aplikację do gry w telefon i uruchamiam problem "HelloWorld". Ale nie mogę go poprawnie wykonać, ponieważ zawsze powoduje mi następujący błąd.błąd w activity.java dla phonegapa
Cannot reduce the visibility of the inherited method from DroidGap
The import com.phonegap cannot be resolve
I tu jest mój kod w MainActivity.java
package com.example.mobile;
import org.apache.cordova.DroidGap;
import android.os.Bundle;
import android.view.Menu;
import com.phonegap.*;
public class MainActivity extends DroidGap {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
super.loadUrl("file:///android_asset/www/index.html");
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
}
Stworzyłem folder libs i dodał Cordova-2.2.0.jar i dodał do ścieżki bulid. Ale nadal nie mogę rozwiązać problemu, uprzejmie zaproponuj mi rozwiązanie, aby to naprawić.
Dzięki
Oszałamiający człowiek, twój wielki, naprawdę ocalił mój dzień – Harry
Cieszę się, że mogę pomóc :) – Tomer
DroidGap nie może być rozwiązany. pomóż mi rozwiązać ten problem. Proszę –